Freenove / Freenove_4WD_Smart_Car_Kit_for_Raspberry_Pi

Apply to FNK0043
Other
133 stars 148 forks source link

How to integrate more ultrasonic sensors? #38

Closed Sharath-Lokesh closed 1 year ago

Sharath-Lokesh commented 1 year ago

Hi, I am trying to add 2 more ultrasonic sensors. There is only one trigger pin, echo pin. Is there a way to add 2 more sensors to the bot?

Thanks in advance for your help.

Sharath-Lokesh commented 1 year ago

I designed a voltage divider to downscale the voltage from echo pin (5 to 3 V) and used other available GPIO pins to integrate the sensors.

imadjamil commented 6 months ago

I designed a voltage divider to downscale the voltage from echo pin (5 to 3 V) and used other available GPIO pins to integrate the sensors.

What is the purpose of the voltage divider as the ultrasonic modules work with 5v, no?

Sharath-Lokesh commented 6 months ago

The voltage from the echo pin of the ultrasonic sensor is 5v. However, the board GPIO pins were operated at 3.3v (5v GPIO pins were already occupied). So, I used a voltage divider to reduce the output from echo pin to 3v.