loblab / ultrasonic

Ultrasonic height meter

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Ultrasonic Height Meter

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

Ultrasonic with Raspberry Pi

Ultrasonic sensor (HC-SR04)

HC-SR04 has TRIG (CH0) & ECHO (CH1) pin

Waveform overview

distance = pluse width * sonic speed / 2

Waveform details

(waveform above) = 2.8924 / 1000 * 343 / 2 = 0.496 (m)

History

  • 0.1 (10/22/2017) : Basic distance measurement, multi-threading

About

Ultrasonic height meter

License:Apache License 2.0


Languages

Language:Python 100.0%