OpenGarage Forums OpenGarage Firmware Second Sensor for One Door 2 Car Reply To: Second Sensor for One Door 2 Car

#827

lawrence_jeff
Participant

I would get 1 GPIO Distance sensing work as an easy first step that makes all the code 1:1 as far as open GPIO to devices – I haven’t had any issues in my setup and it shouldn’t be a current issue since the code won’t power both sensors at the same time.

So starting with a single Ultrasonic sensor – you connect power and GND and the GPIO to both trig and echo.
When you run this you get back 0 for a distance?