Skip to content

Autovelox

elRaulito edited this page Nov 18, 2020 · 4 revisions

Autovelox

The autovelox exploits the ultrasonic module HCSR-04 to detect the speed of an object.

As shown below a pulse of 10us is applied to the pin trigger of the sensor, then an ultrasonic pulsed is emitted, the echo pin goes high until the pulse come back. Measuring the time of the echo pulse it is possible to evaluate the distance of an object.

Resolution of esp32 in time is capable of measuring fraction of cm of distance, for other application a microcontroller with a clock speed higher could be used to achieve the capability of measuring small distances.

Timing ultrasonic

The limit of ultrasonic sensor is the surface of the object, curved object may give wrong measurements. A mean average digital filter is applied to the incoming data, in this way any spike is filtered and avoided.

The speed of the object, the picture (compressed) and the limit speed parameter chosen by the user will be pubblished on the tangle if threeshold is reached.

Clone this wiki locally