HC-SR04 Obstacle Avoiding #71
SentryCoderDev
started this conversation in
Ideas
Replies: 3 comments 3 replies
-
Definitely a possibility, you can use a multiplexer to reduce the number of pins used for the collection of sensors. |
Beta Was this translation helpful? Give feedback.
2 replies
-
They do make i2c versions of that module.
Scott Winslow
… On Jan 7, 2024, at 2:43 AM, Emir HAMURCU ***@***.***> wrote:
HC-SR04
|
Beta Was this translation helpful? Give feedback.
1 reply
-
According to this chat board, you can change the address in software. I have not tried it though to confirm.How to change I2C Address from Ultrasonic Sensor SU04discuss.ardupilot.orgAlthough to be honest, I’m not totally sure why you would need more than one. A single unit mounted on the main body between the legs should give a decent “view angle” for obstructions. You might want to look at the tmf8820 laser “3d sensor” it’s so much smaller than the ultrasonic devices and doesn’t make the annoying humming noise when active. It looks like although they have a locked i2c address normally, they have an enable pin that can switch between multiple scanners. Of course that may get you back to a multiplexer again. Ha ha! But maybe just a single enable pin instead of the trigger and receive pins. Personally I’m working on integrating an OAK-D lite camera system from Luxonis for facial recognition, object detection and distance to object calculation. It allows me to offload the heavy processing to the camera’s built in processors, and has been working fairly smoothly with the pi4. Scott On Jan 8, 2024, at 11:22 AM, Dan Nicholson ***@***.***> wrote:
It's a pretty simple concept that uses one or more pins as selectors so that you can use a single input pin to read from multiple sensors.
The number of selector pins increases with the number of 'channels', but it's still less than connecting those channels to input pins on your microcontroller.
For example, you can connect 16 devices with 4 selector pins and a single input pin.
https://www.electronics-tutorials.ws/combination/comb_2.html
https://www.mouser.co.uk/ProductDetail/SparkFun/BOB-09056
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you commented.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello Community, an idea suddenly came to my mind. Why don't we add an HC-SR04 to the robot? It is a fact that we need to activate the walking function so that it can automatically move away when it gets too close to a place or a person.
My opinion is that since the piece (hip) that connects the two feet looks directly at the ground, if there was a HC-SR04 there, it would see the obstacles in front of it while walking, with the HC-SR04 in the hip and the HC-SR04 in the part where the neck and body are.
Maybe it would be a good idea to add left and right
Sounds like a useful idea once the walking function is activated.
I'm curious about your thoughts and advice.
Beta Was this translation helpful? Give feedback.
All reactions