HC-SR04 and Instant Robot Shield w/ Arduino
March 2, 2013
Hi, I'm following along in the start here but doing everything in Arduino. I have a Arduino Uno3 with the Instant Robot Shield setup. Everything is working fine (Motors, servo, etc) EXCEPT the Ultrasonic sensor. I don't know if using this sensor makes a difference, because the labeling on the IRS says SR05F. I have connected the wires to the correct pins based on the SRF05, leaving out the mode pin.
I tried setting the Trig to pin 13 and Echo to 12 in the Arduino code, but nothing is returning in the serial monitor. I'm lost on what pins to use in my code, or whether or not I can hook up the Ultrasonic sensor like this.