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

Adafruit Ethernet, Motor, Proto, Wave, Datalogger, GPS Shields - etc!

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
camila787
 
Posts: 3
Joined: Sat Oct 18, 2014 1:55 pm

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

Post by camila787 »

I DO NOT HAVE ANY EXPERIENCE IN WIRING, PLEASE, HELP. I JUST NEED TO FIGURE OUT WHERE DO THE WIRES GO.
I managed to put together the wavshield because there is a very visual tutorial that showed me how.
COULD ANYONE PLEASE HELP ME, EITHER BY A PICTURE, OR SHOWING ME STEP BY STEP HOW TO WIRE IT?
Attachments
My IR sensor
My IR sensor
10754867_10152769488757789_284189993_n.jpg (54.89 KiB) Viewed 473 times
My Wavshield
My Wavshield
10754792_10152769488137789_1396651251_n.jpg (45.01 KiB) Viewed 473 times

User avatar
Franklin97355
 
Posts: 23910
Joined: Mon Apr 21, 2008 2:33 pm

Re: CONNECT A IR Distance Sensor (GP2Y0A710K0F) TO A WAV SHI

Post by Franklin97355 »

Here is the datasheet. http://www.adafruit.com/datasheets/gp2y0a710k.pdf Pin 1 goes to ground, pin 2 goes to 5v and pin 4 goes to one of the analog pins 0 to 3. You then need to code the Arduino to read the value and do something with it.

User avatar
camila787
 
Posts: 3
Joined: Sat Oct 18, 2014 1:55 pm

Re: CONNECT A IR Distance Sensor (GP2Y0A710K0F) TO A WAV SHI

Post by camila787 »

I had seen the data sheet, but I do not understand it. There are 5 cables. What do I do with the other two>?
Can you explain it to me with a picture? I'm sorry, I thought mounting this would be simpler, like the wavshield.
I want the code to play a file on the sd card every time a person pases by. Do you know where can I find such code?
I just started to learn about this and c++ all the help will be very appreciated.

User avatar
Franklin97355
 
Posts: 23910
Joined: Mon Apr 21, 2008 2:33 pm

Re: CONNECT A IR Distance Sensor (GP2Y0A710K0F) TO A WAV SHI

Post by Franklin97355 »

Start with the example code for the wave shield and you will learn as you go along. The data sheet has pin numbers. You only need to hook up the ones I called out. Do nothing with any other wires.

User avatar
camila787
 
Posts: 3
Joined: Sat Oct 18, 2014 1:55 pm

Re: CONNECT A IR Distance Sensor (GP2Y0A710K0F) TO A WAV SHI

Post by camila787 »

I'm sorry, I really don't understand. Sorry for being so dense, but I could really use a diagram.

User avatar
Franklin97355
 
Posts: 23910
Joined: Mon Apr 21, 2008 2:33 pm

Re: CONNECT A IR Distance Sensor (GP2Y0A710K0F) TO A WAV SHI

Post by Franklin97355 »

What pins on the Arduino are you going to use for the sensor? Do you have code already? If so post it. Please use the code button "</>" or

Code: Select all

 tags when posting code to the forums.
Attachments
IR wiring.jpg
IR wiring.jpg (60.03 KiB) Viewed 437 times

Locked
Please be positive and constructive with your questions and comments.

Return to “Arduino Shields from Adafruit”