Coder Social home page Coder Social logo

onaralili / pothole-detector Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 0.0 218 KB

Simple example of pothole detection on the roads ๐Ÿ›ฃ using accelerometer on X-NUCLEO-IKS01A2, board NUCLEO-F401RE and mbed OS

C++ 100.00%
iot internet-of-things stm32 nucleo lsm6dsl mbed accelerometer board sensor

pothole-detector's Introduction

This simple example demonstares pothole detection using accelerometer and free-fall interrupt. Date and time is also displayed using real-time clock.

The project is forked from mbed os examples and modified.

Used board and sensor

The application uses X-NUCLEO-IKS01A2's built-in LSM6DSL accelerometer sensor on top of the NUCLEO-F401RE board.

Dependencies

The example uses The official mbed C/C++ SDK and the library for X-NUCLEO-IKS01A2 (MEMS Inertial & Environmental Sensors) Expansion Board.

Build

The easiest way is to use online IDE provided by Mbed : https://os.mbed.com/. After creating account for the online IDE on the website follow following steps:

  1. Create a new file main.cpp and copy the code from here to the new created main.cpp
  2. Add above dependecies
  3. Use Compile menu to build and download the binary file (automatically started)
  4. Connect your device
  5. Drag and drop the downloaded binary file to the device
  6. Use terminal tools such as CoolTerm to the connect serial port

Notes

The real-time clock is using unix time, you can convert time to the unix time using this website and set the time to desired time by changing following value set_time(1524497278); on the main.cpp file

References

https://os.mbed.com/teams/ST/code/FreeFall_IKS01A2/file/3aa150c1a624/X_NUCLEO_IKS01A2.lib/

pothole-detector's People

Contributors

onaralili avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.