Search code examples
arduinomp3sensorsproximity

CONNECT A IR Distance Sensor (GP2Y0A710K0F) TO A WAV SHIELD


I AM TRYING TO CONNECT A GP2Y0A710K0F IR Distance Sensor TO A Adafruit Wave Shield for Arduino Kit - v1.1

I DO NOT HAVE ANY EXPERIENCE IN WIRING, PLEASE, HELP. I JUST NEED TO FIGURE OUT WHERE DO THE WIRES GO. THE IMAGE BELOW IS THE ONLY REFERENCE THAT I HAVE AND I DON'T UNDERSTAND IT. COULD ANYONE PLEASE HELP ME, EITHER BY A PICTURE, OR SHOWING ME STEP BY STEP HOW TO WIRE IT?


Solution

  • This question does not belong here, because it doesn't involve programming.

    That said, the Wave Shield is for playing mp3s, and it doesn't make sense to connect the IR sensor to it.

    The IR sensor needs to be connected to the GND and 5V supply of the Arduino, and the Vo output connect to one of the Arduino pins. Read the voltage on the output pin with analogRead(). The result from 0 to 1023 is related the 1/distance.