HC-SR04 Rangefinder

Posted on Apr 4 2017 - 7:46am by piddler

How to setup a HC-SR04 sensor with the Raspberry Pi.

PARTS:
RPI 3 – https://goo.gl/CdVNoH
4 Amp Power Adapter – https://goo.gl/js4Uc7
16GB Micro SD – https://goo.gl/FDqZal
120 pcs jumper cable: https://goo.gl/spWoaC
HC-SR04 Sensors – https://goo.gl/3Szn0u
Resistor Assortment – https://goo.gl/0Yg9Ao
HC-SR04 Brackets (optional) – https://goo.gl/SkpphB

SCHEMATIC:

CODE: