Building Wall-E: How can I split an HC-SR04 into 2 eyes?

Hi all - Newbie maker here. I'm building this: https://wired.chillibasket.com/3d-printed-wall-e/

Today I attempted to desolder the transducers from an HC-SR04 to make two eyes - one to transmit, the other receive. No luck - when I connected them back to the board w/ wires, they failed to tell the distance.

Could I use 2 intact boards? One to transmit, the other receive? Any other ideas? Thanks.

Josh

PS. My soldering skills are atrocious so that could certainly be the culprit.

I just found this homemade version but the schematic is over my head: Homemade ultrasonic distance sensor Arduino

This too: How to Make a Proximity Sensor Using Piezoelectric Ultrasonic Transmitters and Receivers - Maker, DIY - Engineering and Component Solution Forum - TechForum │ Digi-Key

Non-trivial stuff.

No, Read the HC-SR04 documentation. It has a microcontroller that does all the work of pulsing the transmitter several times and then switching to receive. The two processes cannot be shared between two boards.
Have you searched for other sensors to do what you want?

Thanks @Paul_KD7HB. The only one I've found is: https://www.amazon.com/Maxbotix-MB1010-LV-MaxSonar-EZ1-Ultrasonic-Finder/dp/B00A7YGVJI/ref=rvi_5/147-6775015-2918518

But hoping not to drop $30 on something that might still not work.

Life is full of such decisions!

Yes, sort of: de-solder the transmitter from the receive board (or block it off so its ping doesn't foul things up). Trigger both boards at the same time (connect both trigger pins to the same Arduino trigger pin), but read only the echo pin from the receive board.

1 Like

Link to an extended thread on a related problem that demonstrates the approach DaveEvans suggests.

https://forum.arduino.cc/t/communication-between-2-ultrasonic-sensors/433986/21

Then maybe you connected them incorrectly, or messed up the wiring or soldering.

Thanks @DaveEvans and @MrMark! I'll give it a try. An yes aarg, I had a very hard time getting the transducers off and had to pry them so easily could have broken them.

I see one major issue with the Idea to use the sender seperately to the receiver...

The HC-SR04 is sending out an ultrasonic wave and the receiver should receive it.
By measuring the time between sending and receiving the signal back, the distance will be calculated - but this means, that both elements needs to be EXACTLY on the same level.

By using a wire, you can probably place the sender behind the receiver, which will then give a false time back - and therefore, a wrong distance would be calculated.

This might need to be fixed within your code then.
I would just use the area I've highlighted red and put the HC-SR04 there...

2022-02-09_16h39_37_1

Thanks @cchris - yes I think I've bitten off more than I can chew on this idea. The model is scaled down too far for it to fit there, but I think I can put it to the side intact which makes this whole thing WAY easier.

As a side benefit, Wall-E could then turn his head in autonomous mode w/o worrying about running into things. Anyway thanks all for your input!

1 Like

Then perhaps you should look at this

Oh that's perfect! Thanks @JohnRob - will update here once I get it to work.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.