Hello guys, I'm working on my college final project and I have to make a automatic cleaning robot and I have a kinda big problem. :confused:
For controlling the motors i used L293D on top of arduino, it has to do something with it?
I have 4x ultrasonic sensors HC-SR04 connected at digital pins 2,3,4,5, ECHO and TRIG are connected together to use less pins. But my readings are innacurate. Every once in a while I get 0 value and don't know what to do. I used bigger delay but nothing changes. Even if i disconnect other sensors the readings remain like this. I get values like this:
12 12 12 0 12 12 12 0 12 11 12 0 11 11 0
For reading the values i used ping_cm from newping library. Thank you!