theryaz / precipitation-io

Python code for rain barrel project
2 stars 0 forks source link

Wire up ultrasonic sensor to Pi #3

Closed theryaz closed 1 year ago

theryaz commented 1 year ago

https://www.raspberrypi.com/documentation/computers/os.html#gpio-and-the-40-pin-header

theryaz commented 1 year ago

image

This chart didn't end up being helpful. Instead just the output of the pinout command on the pi provides that model's pin numbers

theryaz commented 1 year ago

Got this working on pins 7/8 by following this guide: https://www.youtube.com/watch?v=xACy8l3LsXI

This one was also helpful: https://www.youtube.com/watch?v=uV0Q2ha7Eh8

Hooked up Pin 1 (3.3v) to the input Pin 7 to Trig Pin 8 to Echo GRD to GRD