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.

History

Filtering with Ticker object corrected. default tip

2016-12-10, by tbjazic [Sat, 10 Dec 2016 08:28:06 +0000] rev 6

Filtering with Ticker object corrected.


Example of filtering the distance with PT1 filter.

2015-12-07, by tbjazic [Mon, 07 Dec 2015 11:45:44 +0000] rev 5

Example of filtering the distance with PT1 filter.


PT1 filter added

2015-12-07, by tbjazic [Mon, 07 Dec 2015 10:44:07 +0000] rev 4

PT1 filter added


Setting and displaying sensor ranges added. Displaying the distance in mm.

2015-12-07, by tbjazic [Mon, 07 Dec 2015 09:38:35 +0000] rev 3

Setting and displaying sensor ranges added. Displaying the distance in mm.


Library HCSR04 created.

2015-12-05, by tbjazic [Sat, 05 Dec 2015 09:07:15 +0000] rev 2

Library HCSR04 created.


A class HCSR04 implemented within the main.cpp file.

2015-12-04, by tbjazic [Fri, 04 Dec 2015 17:38:02 +0000] rev 1

A class HCSR04 implemented within the main.cpp file.


Revision 1: Solution in the main program, without class.

2015-12-03, by tbjazic [Thu, 03 Dec 2015 15:43:54 +0000] rev 0

Revision 1: Solution in the main program, without class.