Hello guys and good day!
I am currently doing the prototyping session of my ultrasonic sensors (HC-SR04) and I used 4 of them (actually, I need to have 5 of these sensors, but I cannot place it all "nicely" on my breadboard), which is being connected to my arduino UNO through a breadboard. I used this method
to save the number of I/O pins to be utilized for my upcoming project, a sumobot . So perhaps you have now the idea what could be other parts I would be using then.
I need to minimize the usage of other I/O pins so I can add different other needed parts.
So what I did was I followed the schematic diagram for each of the 5 sensors, as well as the program. It worked fine and accurate actually to all my sensors, simultaneously, and I settled a threshold of 10cm to light up my LED whenever it reaches down to such distance.
It is indeed working fine the same like how a 4 pin operated ultrasonic sensor does. However, only when it is unmoved or disturbed. Whenever I tilt or change the position of the breadboard(where the M - M jumper wires, and ultrasonic sensors are connected to each other and to arduino), it triggers the LED to turn ON - which should not be happening since there is no object in front of it.
Btw, I used 12V, 800mAH DC Plug adapter for my power source.
I suspect that this might be from the inconsistency of current flow through the wire connections and breadboard as I move the prototype.
And by the way, I just want to use ultrasonic sensors rather than IR proximity sensors for some reasons.
I hope for your response and I do really appreaciate your time and effort of reading this. Thanks!
This is the image address for my set up: