Society of Robots - Robot Forum
Electronics => Electronics => Topic started by: Hawaii00000 on April 04, 2009, 05:13:31 PM
-
I have one of these ( http://hueyjann.manufacturer.globalsources.com/si/6008814971720/pdtl/Photodiode/1001325624/3-Pin-Photodiodes.htm (http://hueyjann.manufacturer.globalsources.com/si/6008814971720/pdtl/Photodiode/1001325624/3-Pin-Photodiodes.htm) ) that detects infrared light and I need to know how I'd wire it to get a value from it. I'm trying to make an ir range finder out of it.
-
to wire it up if you have the side with the bubble facing you and the legs poking out to the right from top to bottom:
|---------|---------signal
| (-) |---------gnd
|---------|---------vcc man that took a while to get right lol. here you go. just in future check the data sheet first before asking. if you cant find em google the part number data sheet http://akamai.globalsources.com.edgesuite.net/f/593/3445/5d/pdt.static.globalsources.com/IMAGES/PDT/SPEC/624/K1001325624.pdf (http://akamai.globalsources.com.edgesuite.net/f/593/3445/5d/pdt.static.globalsources.com/IMAGES/PDT/SPEC/624/K1001325624.pdf)
-
Most of these work on about 5v, right?
-
Key Specifications/Special Features:
* IR receiver pre-amp module (IR2638)
* IR receiver pre-amp module for remote control, TV, home applications
* Feature: small type, 3-pin
* Supply voltage: 4.5 to 5.5V
* Please refer to Huey Jann's catalogue on pages 11
read the page silly.
-
oh I get it! I didn't know how ready the thing. I did look at it.
-
hehe, are you just trying to make something that can go 'oop wall over there dont know how far tho' or do you want yours to be able to tell distance?
-
Probably more of the " 'oop wall over there" one.
-
so its like a non-contact bumper switch?
-
Actually now that I think about, it it does have to have to be able to measure distance to some degree. It just doesn't have to be mega accurate. Its going to be running a program like the one that Stampy does; the one where it follow what's in front of it.
-
that may be hard to do as an ir rangefinder has complicated electronics in it that allow it to measure an angle. at least i think they do?
-
why not just purchase an IR rangefinder or sonar? check this out:
http://www.societyofrobots.com/robotforum/index.php?topic=968.0 (http://www.societyofrobots.com/robotforum/index.php?topic=968.0)
-
i figured that would be a bit more expensive but way easier to connect/start running.
-
Hawaii00000, how were you going to wire this thing? schematics?
-
probably something like this perhaps? http://www.societyofrobots.com/schematics_infraredemitdet.shtml (http://www.societyofrobots.com/schematics_infraredemitdet.shtml)
-
i figured that would be a bit more expensive but way easier to connect/start running.
based on what Hawaii00000 wants to do ( 'oop wall over there' , lets go a different direction...sorta thing) a IR rangefinder or better (for this purpose), a sonar would be ideal. You can find Sharp IR rangefinders from as little as ~$9 (USD) and a sonar from about ~$25.
cheak out these sites:
http://www.roboticsconnection.com/c-4-robot-sensors.aspx (http://www.roboticsconnection.com/c-4-robot-sensors.aspx)
look for GP2D120 or GP2D12
http://www.sparkfun.com/commerce/product_info.php?products_id=8959 (http://www.sparkfun.com/commerce/product_info.php?products_id=8959)
this would probably be the best for your bot in terms of ir rangefinders
for a sonar rangefinder, check this out:
http://www.parallax.com/Store/Sensors/ObjectDetection/tabid/176/ProductID/92/List/1/Default.aspx?SortField=ProductName,ProductName (http://www.parallax.com/Store/Sensors/ObjectDetection/tabid/176/ProductID/92/List/1/Default.aspx?SortField=ProductName,ProductName)
-
The only reason I'm doing it this way is because I already have the parts. Unfortunately it starting to get frustrating, because I'm getting so weird readings.
-
Can you guy help me out? I programed it to turn on an led when the level when below 810 and the wire signal is in an analog. It worked perfectly at first, but it started reading positive all the time, then it would switch back to normal. AND it still worked when I covered the sensor!!!!!!!!
-
have you tried it in the dark as ambient light may affect it?
have you tried replacing components? checked orientation of your components?
-
how do you have it wired? (again)
do you have its output wired directly to the analog input?
-
|---------|---------signal
| (-) |---------gnd
|---------|---------vcc as i said, gnd is wired to common gnd, vcc is +5V and signal is to a pin on your mcu.
-
is that how you have it wired or is that how the OP has it wired? either way there needs to ba a potential divider stage before it goes to the microcontroller.
(I wasnt asking for the pinouts I was asking how he actually had it connected. Connecting straight to an adc wouldnt produce a real reading).
The page where you linked to also mentions other devices for amplifying the signal, are these definately present on the device?
-
Are we sure that has an analog out?
-
have you tried it in the dark as ambient light may affect it?
yep
have you tried replacing components?
Unfortunately I don't have any replacements right now.
checked orientation of your components?
I think its right, but maybe I should check.
is that how you have it wired or is that how the OP has it wired? either way there needs to ba a potential divider stage before it goes to the microcontroller.
Could you explain or maybe give ma a link? Right now its just connected straight to the board.
The weird thing is that WAS working, but I covered it up and it STILL worked.
Then it just went crazy and alway read positive.
-
The weird thing is that WAS working, but I covered it up and it STILL worked.
It might have just been a noisy signal or other interference lulling you into believing that it was working....
To connect it for reading variable voltages is easy. Just place a resistor between the photodiode output and gnd. the connection to the analog pin should come from between the photodiode output and the resistor. You could use a potentiometer instead of a resistor so you can vary the output.
If you find the output is too low like this, you might have to use a transistor too but I think that photoresistor has an internal amplifier.
You can do the sums to find the best resistor for the job but a general 1k2 resistor should give you some resolution of results. A potentiometer again would let you manually calibrate the output.
-
Ok I'll give it a try and report back it a day or two.