how to cable IR sensor on off ?

Post here about your Arduino projects, get help - for Adafruit customers!

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
karistouf
 
Posts: 27
Joined: Tue Apr 30, 2013 12:16 pm

how to cable IR sensor on off ?

Post by karistouf »

Hi, i m quite puzzled with the https://www.adafruit.com/products/2349 kit
usuallay, adafruit documentation is fully usable, here, there is NOTHING

I have one simple question, how to cable it to the arduino ?

I have found some information about similar products: http://www.spikenzielabs.com/Catalog/in ... cts_id=967

but this is not sorting any valuable result

thanks

User avatar
adafruit_support_bill
 
Posts: 88093
Joined: Sat Feb 07, 2009 10:11 am

Re: how to cable IR sensor on off ?

Post by adafruit_support_bill »

The circuit from the Spikenzielabs link should work. It is a very similar device.
Wire the 470 ohm resistor in series with the LED side (the left side in the photo). Use the 10K as a pullup for the collector on the phototransistor side.


Image

User avatar
karistouf
 
Posts: 27
Joined: Tue Apr 30, 2013 12:16 pm

Re: how to cable IR sensor on off ?

Post by karistouf »

hi bill
hum this is not working.

i m supposed to receive levels on analog or digital ?

inner pins are groudn, right ?

could you provide a schema of wiring ?

User avatar
adafruit_support_bill
 
Posts: 88093
Joined: Sat Feb 07, 2009 10:11 am

Re: how to cable IR sensor on off ?

Post by adafruit_support_bill »

You can use it as either an analog or digital input. The analog input will not be very linear, so it is not a precision rangefinder. But it will give you an idea of how close the object is.

The center pins should be ground. Post a photo of your wiring and we'll take a look.

User avatar
karistouf
 
Posts: 27
Joined: Tue Apr 30, 2013 12:16 pm

Re: how to cable IR sensor on off ?

Post by karistouf »

Here it is !

i want to use them just as on off, no distance precise measurement
ON OFF.jpg
ON OFF.jpg (64.08 KiB) Viewed 363 times

User avatar
adafruit_support_bill
 
Posts: 88093
Joined: Sat Feb 07, 2009 10:11 am

Re: how to cable IR sensor on off ?

Post by adafruit_support_bill »

You have both grounds connected through the resistor. The phototransistor side should connect direct to ground.

User avatar
karistouf
 
Posts: 27
Joined: Tue Apr 30, 2013 12:16 pm

Re: how to cable IR sensor on off ?

Post by karistouf »

ah yes ! left - right ad upper michmach
thanks a lot.

here is the diagram correct, but it would be really nice you add it in the page of the product
IR.png
IR.png (189.58 KiB) Viewed 350 times

User avatar
adafruit_support_bill
 
Posts: 88093
Joined: Sat Feb 07, 2009 10:11 am

Re: how to cable IR sensor on off ?

Post by adafruit_support_bill »

Thanks, I'll forward the suggestion to the web team.

User avatar
karistouf
 
Posts: 27
Joined: Tue Apr 30, 2013 12:16 pm

Re: how to cable IR sensor on off ?

Post by karistouf »

yep, please, i think we are a lot to buy adafruit for the aspect: wiring + code + library aside the product

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

Return to “Arduino”