Hi guys, I´m trying to build a robot with UNO, but I need more pins. I´m using the hc-sr04 sensors. The sensors have four pins:
- The VCC pin
- The GND
- The ECHO pin
- The TRIG pin
I thought that if I connected the Trig pin to the same pin, and firts I turned it HIGH and I read the signal of the ECHO pin of sensor one, and later I turned it LOW, and HIGH again and read the signal of ECHO pin of sensor two I could save one pin but when I did that last night the sensors gave me some errors reading distances (for example sometimes i says that the distance was 0 when there was nothing in front of the sensor)
What could be hapening? Is correct to do what I have done?