How do you know when your IR sensor fried?

westaust55

Moderator
Welcome to the PICAXE forum.

You have not given folks here much to work with.

Can you provide a link to the sensor you are using?

Please provide the schematic diagram for the circuit you have connected. Please include ALL components including pull-up and pull-down resistors, decoupling capacitors, etc.
Maybe post your program code as well so we have the complete picture.

If it is a TSOP4838 or similar device then what makes you think it is fired?
Was it ever known to be working?
What is the source of the IR signal you are trying to detect. The TSOP4838 and similar devices require a 38 kHz (or 40 kHz) modulated signal from the IR LED.
 

HarryLee

Member
Sensor

I am using Sharp Analog? IR sensor, when I use the editor to test the sensor, seems the number changed really weird, how do you know if it can detect? Is it the number under the "decimal" column in the editor?
 
Last edited:

SAborn

Senior Member
Well thats a big help, as there is no IR sensor on the board that i can see.

If you dont give use some information to work with, how can we help you.
My crystal ball has become faulty, i hope to get a new Chinese made one for Christmas, until then you will need to provide more details.
 

HarryLee

Member
Home » Robots » Robot Kits » Robot Construction Kits » Lynxmotion Erector Set
Sharp IR Range Sensor - 10cm to 80cm W / Cable
Product code : RB-Lyn-468

Click to enlarge


Price :
USD $14.95


Quantity :







You may also be interested in



Brainlink Universal IR Bluetooth I / O Sensor Interface



DFRobot Adjustable Infrared Sensor Switch



Infrared Reflective Sensor - QRD1114
Description
Overview
What's included
Useful links
 

westaust55

Moderator
Sorry but I cannot see how the IR sensor is connected.

there are some words there:
The IR-area

This is a quite undocumented feature on the board! It is used if you want to use standard TV-remote control-protocols to send to your microcontroller.

You can hook up IR ins-and out to anything, to measure IR, for instance to see if something is near or far, or white or black.. but you will have to do with analouge levels of signal and similar, you will not be able to transmit "signals" that can be translated to numbers such as TV romotes does. Most IR remote controls use 38 KHz sub-carrier, and this area let´s you hook up to that quite simply. You should only use it for that!
an area to the right of the digital inputs is circled in light green. But I see no indication of actual connections.

Can you try and draw a diagram even in MS Paint (and save as a jpg file) showing how you have the connections
including what extra components you have included.
Do you know the type of IR sensor device you are using? Is it like this: http://html.alldatasheet.com/html-pdf/199626/VISHAY/TSOP3838/217/1/TSOP3838.html

Have a look at the connection sketch in PICAXE manual 2 on page 125 for the IRIN command: http://www.picaxe.com/docs/picaxe_manual2.pdf
 

HarryLee

Member
Thank you so much for telling such a great thing about IR sensor. Here is the sensor I have "http://www.robotshop.com/productinfo.aspx?pc=RB-Lyn-468&lang=en-US"
 

HarryLee

Member
I am doing exact same connection as the tutorial website indicated, here is the website: http://letsmakerobots.com/start

I already post some pictures about my project, Can't you see that? I am not sure... I am using the iPhone app for the forum.
 

westaust55

Moderator
Okay seems this is the IR sensor:http://www.robotshop.com/sharp-gp2d12-ir-range-sensor-cable-4.html

You do need to learn to give proper links to web pages. I coul;d not follow your "instructions and had to do a google search on "lynxmotion" + "RB-Lyn-468"


Here is the datasheet: http://www.robotshop.com/content/PDF/user-guide-sir-01.pdf
Its a Sharp GP2D12/GP2D15 device

EDIT:
Have a loook at this past thread on the PICAXE forum (there are others) which may help you:
http://www.picaxeforum.co.uk/showthread.php?21186-Rangefinding-project-(a-little-help-required)&highlight=GP2D
 

HarryLee

Member
Yep.... It is a little bit hard to explain from the forum, can I have your Skype or anything and I can explain better... Cuz I am using a cell phone right now, but thanks for helping me, I am really appreciate that, I am a high school student and I am really interested in that.
 

SAborn

Senior Member
Provides an analog voltage
It says that on the website... I don't know what that means....
This means the output voltage will vary between 0 and 5 volts, this will depend on the distance to the object it is detecting.

To read the sensor you will need to use the " Readadc" command with the picaxe, then you should see the value in the variable change up and down from 0 to 255 as you bring an object towards or away from the sensor.
 

SAborn

Senior Member
Ahhr, correction it looks that the output voltage will be from about 0.4 volts to 2.4 volts, but you read it just the same.
 

HarryLee

Member
Yes... I use the editor to read the variables from my computer... but number shows on the computer is weird, I don't know where I can see the distance...
 

SAborn

Senior Member
So is that means my voltage cannot over 2.4 volt ?
No that means the sensor output voltage wont go over 2.4 volts, the supply voltage to the sensor is 5 volts.
 
Last edited:

westaust55

Moderator
Ground is the centre pin on the IR module.
The datasheet does not show wire or their colours. Go by the datasheet to ensure you connect it correctly.
 
Last edited:

SAborn

Senior Member
Its not real clear to find on the data sheet, but this is what it shows.

Ir pinouts.JPG


pin 1 = voltage out
pin 2 = ground
pin 3 = 4.5 to 5.5v+
 

MPep

Senior Member
This sensor, GP2D12 is a Distance Output Type, the output is variable, dependent on the distance.
What exactly are you trying to do??
 
Top