A program that demonstrates the development of library, using as an example an ultrasonic distance sensor HC-SR04.
Dependencies: mbed HCSR04 AutomationElements
The purpose of this program is to encourage students to develope their own classes. Instructions how to follow the development of this program and class HCSR04 for ultrasonic distance measurement are given here.
Changes
Revision | Date | Who | Commit message |
---|---|---|---|
6:bca0839e8295 | 2016-12-10 | tbjazic | Filtering with Ticker object corrected. |
5:889566fb3a85 | 2015-12-07 | tbjazic | Example of filtering the distance with PT1 filter. |
4:052ac3f5c938 | 2015-12-07 | tbjazic | PT1 filter added |
3:3297ea6e3ae1 | 2015-12-07 | tbjazic | Setting and displaying sensor ranges added. Displaying the distance in mm. |
2:f86b1e3609b3 | 2015-12-05 | tbjazic | Library HCSR04 created. |
1:22043b67c31c | 2015-12-04 | tbjazic | A class HCSR04 implemented within the main.cpp file. |
0:ebee649c5b1b | 2015-12-03 | tbjazic | Revision 1: Solution in the main program, without class. |