Use Ultrasonic sensor (HC-SR04) to measure/monitor height
- Platform: Raspberry Pi (Debian 9.x), HC-SR04
- Ver: 0.1
- Updated: 10/22/2017
- Created: 10/15/2017
- Author: loblab
HC-SR04 has TRIG (CH0) & ECHO (CH1) pin
distance = pluse width * sonic speed / 2
(waveform above) = 2.8924 / 1000 * 343 / 2 = 0.496 (m)
- 0.1 (10/22/2017) : Basic distance measurement, multi-threading