© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
DevHeads IoT Integration ServerDIIS
DevHeads IoT Integration Server•2y ago•
3 replies
aymen ammari

Human following robot with raspberry pi 4 and H BRIDGE L293D and 2 ultrasound sensors HC-SR05

Hi Devs, I'm building this human following robot with raspberry pi 4 and H BRIDGE L293D and 2 ultrasound sensors HC-SR05
so my colleague asked me put 10k resistor between trig and echo pins for each sensor
My question is.. Why did we implement this resistor, is it for 5v tolerance for raspberry pins or data filtration?? #pcb-and-analog #hardware-design-chat
Solution
Hey putting 10k resistor is not that very necessary here. Raspberry pi gpio operates at 3.3v DC and the Ultrasonic sensor outputs 5v at the ECHO pin that's connected to the Pi. What you need to do is to create a voltage divider circuit here at the ECHO pin so that it will be btw 3v to 3.3v which the Pi can handle. If not there might be damage caused on the gpio of the Pi board.

This also will help you.

https://thepihut.com/blogs/raspberry-pi-tutorials/hc-sr04-ultrasonic-range-sensor-on-the-raspberry-pi
The Pi Hut
HC-SR04 Ultrasonic Range Sensor on the Raspberry Pi
In previous tutorials we've outlined temperature sensing, PIR motion controllers and buttons and switches, all of which can plug directly into the Raspberry Pi's GPIO ports. The HC-SR04 ultrasonic range finder is very simple to use, however the signal it outputs needs to be converted from 5V to 3.3V so as not to damage
HC-SR04 Ultrasonic Range Sensor on the Raspberry Pi
Jump to solution
DevHeads IoT Integration Server banner
DevHeads IoT Integration ServerJoin
The DevHeads IoT Integration Server accelerates technology engineering by helping pro devs learn, share and collaborate.
2,984Members
Resources
Was this page helpful?

Similar Threads

Recent Announcements

Similar Threads

How to Interface a 4-Wire Vacuum Suction Motor from a Vacuum Robot with a Raspberry Pi?
DevHeads IoT Integration ServerDIISDevHeads IoT Integration Server / 🟩-pcb-and-analog
2y ago
Need help with Raspberry Pi Camera
DevHeads IoT Integration ServerDIISDevHeads IoT Integration Server / 🟩-pcb-and-analog
3y ago
Network Configuration of a Raspberry Pi in LAN and WAN
DevHeads IoT Integration ServerDIISDevHeads IoT Integration Server / 🟩-pcb-and-analog
3y ago
How to Optimize Control Pins for Basic Movement Functions in a Robot Using L298N Dual H-Bridge?
DevHeads IoT Integration ServerDIISDevHeads IoT Integration Server / 🟩-pcb-and-analog
2y ago