Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Categories > Robotics Chat


Robotics Chat Specific to discussions about robots and the making of.

Reply
 
Thread Tools Display Modes
Old 1st March 2008, 04:47 AM   (permalink)
Default Photodiode

Hi , i got a photodiode somewhere and i dont have its datasheet i connected it as a common emitter , used a 10k resistor , illuminated it with red led . i want to use it as a line follower sensor , to detect white and green surfaces , i used an LM324 for this purpose , i found that the distance between the reflected surface and the photo diode while using the red led is so small less than a cm , dont know what to change ? reduce the 10k ? also the swing voltage from a full room light and with my hands conver the photodiode is so small like 33mV .. is this a good swing ?
ahmedragia21 is offline   Reply With Quote
Old 1st March 2008, 05:08 AM   (permalink)
Default

Try using a green diode to detect a green line. Green won't reflect a lot of red light back for the photo diode. I don't know about the swing, but 33mV sounds like you can easily amplify if you need to.

Are you trying to detect a green line on a white surface? Please explain more about the white and green surfaces.
dknguyen is offline   Reply With Quote
Old 1st March 2008, 05:16 AM   (permalink)
Default

Thanks for reply
im trying to detect white line (3cm width ) on a green surface.
why the distance between the surface and the pair (Tx,Rx ) is so small ? also the thershold in the LM324 is so small even , which means the difference between green and white is so small in voltage right ?
ahmedragia21 is offline   Reply With Quote
Old 1st March 2008, 05:39 AM   (permalink)
Default

Well the easiest thing to detect is black and white. No matter what colour LED you shine at it, the white will reflect all the light back and the black will absorb all the light.

Now with a green and white, it's not as clear since the green will reflect back green light and the white will reflect back ALL light. If you are shining a red light onto it, then the green will only reflect back the small amount of green light that the LED is shining in the first place while the white will reflect back all the light. So it probably would still work, but you can probably imagine the difference between the two is much smaller than with black and white.

(NOw that I've typed this out, it seems that a green LED might not necessarily improve things since the green line will become stronger since it will reflect back the green light, but the white would do the same. It just depends on which one increases more.) Also, if you used a green LED you would have to make sure the photo-diode responds to green (which I think it does if it's cadmium sulphide). You'd have to look at the datasheet to know what wavelengths of light it responds to.

I don't think you would decrease the 10K resistor to increase the amplifcation of the CE circuit. WOuldn't you increase the resistor? I read the photodiode work as a current source. So V=IR means larger resistor means larger V. I have no idea what kinds of current the photodiode will output and since you don't have the datasheet maybe just mess around with the resistor value?

It could also be the LED is a bit weak so your photodiode output is also low (and requires a close distance). You could increase LED power but it's probably easier just to increase the CE amp resistor value.

Last edited by dknguyen; 1st March 2008 at 05:58 AM.
dknguyen is offline   Reply With Quote
Old 1st March 2008, 05:54 AM   (permalink)
Default

Its the first time i use a photodiode , i were using LDRs and they were working very nice with green- white surfaces .. just connected them to the LM324 as a compartor ... but im still didnt know how to increase the distance between the tx,rx to the surface ? its still too low , less than a cm !! how to increase it ? because if that's the distance , the sensor might touch the floor then ...
ahmedragia21 is offline   Reply With Quote
Old 1st March 2008, 05:59 AM   (permalink)
Default

How much less than a cm? Don't line followers hug the floor realy closely anyways? It's not like they are travelling over dirt full of mounds and rocks. It's usually a hard flat floor.

Maybe you need to place your LED and LDR closer together. Or maybe it realy is the colour of the lines. Does it work better with black and white?

Here are some line follower websites with diagrams about the distance between each sensor and the ground so you have something to compare to:

Sensors 5mm apart from each other, 4.5mm from the ground
http://www.seattlerobotics.org/encod...cle2/index.php

Sensors 2.5mm apart, 1.5cm from the ground
http://www.kmitl.ac.th/~kswichit%20/LFrobot/LFrobot.htm

And remember you can always amplify it with another op-amp before feeding it into a comparator. THis would let you increase the distance from the floor.

Last edited by dknguyen; 1st March 2008 at 06:06 AM.
dknguyen is offline   Reply With Quote
Old 1st March 2008, 06:20 AM   (permalink)
Default

Amplifiying it would increase the output voltage of the photodiode or what ? would you please post a simple schematic for the op-amp ampilifier idea ? i know it but dont want to do mistakes ..etc
ahmedragia21 is offline   Reply With Quote
Old 1st March 2008, 07:21 AM   (permalink)
Default

Quote:
Originally Posted by ahmedragia21
Amplifiying it would increase the output voltage of the photodiode or what ? would you please post a simple schematic for the op-amp ampilifier idea ? i know it but dont want to do mistakes ..etc
What you need is a non-inverting amplifier (or an inverting amplifier). It doesn't realy matter since it will just reverse the output of your comparator. BUt change the mess around with the resistor value in CE amplifier first. Try and use that amplifier if you can.
dknguyen is offline   Reply With Quote
Old 1st March 2008, 05:09 PM   (permalink)
Default

A small, short-focus converging lens with the photodiode placed at its focal point will also improve your detection range by increasing its light-gathering power.
IČR is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Latest
What exactly is a photodiode? Souper man Electronic Projects Design/Ideas/Reviews 7 12th May 2007 09:16 PM
Measuring Current recieved from a Photodiode crush Electronic Projects Design/Ideas/Reviews 3 9th November 2006 06:39 PM
How to choose the right photodiode for my application Electrolinux Electronic Projects Design/Ideas/Reviews 2 4th September 2006 06:46 PM
Photodiode lights a LED Lightbar Uman Electronic Projects Design/Ideas/Reviews 6 17th November 2004 04:34 AM
Infrared Photodiode Sensor Circuits Leon.h Electronic Projects Design/Ideas/Reviews 12 23rd April 2004 12:25 PM



All times are GMT. The time now is 05:39 AM.


Electronic Circuits  |  Electronics Wiki
Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.