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
 
LinkBack Thread Tools Display Modes
Old 8th February 2005, 11:08 PM   (permalink)
Default photodiode

hi
i want to make a line follower with pic16f84...
i use photodiodes for detecting the line... but i d'ont understand how can i capture with the pic the voltage that came out from the photodiodes... can you explain it to me?

tnx
UnD3aD is offline  
Old 9th February 2005, 12:07 AM   (permalink)
Default

You may have to uas an Analog to Digital converter converter as the F84 doesnt have one , but other inexpensive models do have an A/D converter..
williB is offline  
Old 9th February 2005, 06:39 AM   (permalink)
Default Re: photodiode

Quote:
Originally Posted by UnD3aD
hi
i want to make a line follower with pic16f84...
i use photodiodes for detecting the line... but i d'ont understand how can i capture with the pic the voltage that came out from the photodiodes... can you explain it to me?
As williB has already mentioned, the 84 isn't a good choice, it's also obselete, and you should use a modern PIC instead. The 16F819 and 16F88 are pin compatible, and have internal analogue to digital converters.

However, for line following you can easily do without analogue inputs, use comparators to generate a switching signal from the photodiodes, you can make the other input of the comparator adjustable so you get a reliable switching signal from the line detection.

If you use the 16F628 (the 84's direct replacement), it already has internal comparators, and an analogue output for use with the comparators.
__________________
PIC programmer software, and PIC Tutorials at:
http://www.winpicprog.co.uk
Nigel Goodwin is online now  
Old 9th February 2005, 07:30 AM   (permalink)
Default

can you tell me some comparators that work for line follower?
UnD3aD is offline  
Old 9th February 2005, 09:03 AM   (permalink)
Default

Quote:
Originally Posted by UnD3aD
can you tell me some comparators that work for line follower?
Any comparator, or even any opamp (back to the 741) would work fine.
__________________
PIC programmer software, and PIC Tutorials at:
http://www.winpicprog.co.uk
Nigel Goodwin is online now  
Old 9th February 2005, 10:54 PM   (permalink)
Default

i bought today a LM2901 comparator... and it works.... but the output voltage is not the V+, it is <1V
why?
Attached Images
File Type: jpg scheme.jpg (12.9 KB, 1036 views)
UnD3aD is offline  
Old 9th February 2005, 11:11 PM   (permalink)
Default

Quote:
Originally Posted by UnD3aD
i bought today a LM2901 comparator... and it works.... but the output voltage is not the V+, it is <1V
why?
That circuit seems lacking in many of the essential components, I wouldn't expect it to work at all!.
__________________
PIC programmer software, and PIC Tutorials at:
http://www.winpicprog.co.uk
Nigel Goodwin is online now  
Old 10th February 2005, 12:43 AM   (permalink)
Default

comparators typically have open-drain outputs. that is, for a low output, they pull it to ground normally, but for a high output, they act as an open-circuit. you need to use a pull-up resistor with it most likely.
evandude is offline  
Old 10th February 2005, 07:06 AM   (permalink)
Default

so i have to put a 4k7 resistor from 5v to output?
UnD3aD is offline  
Old 10th February 2005, 08:47 AM   (permalink)
Default

Eh UnD3aD,
It looks like you haven't had much to do with opamps or the like here is a link to some tutorials, I find them very informative and I always refer back to them when I don't know where to go next in my designs
http://www.uoguelph.ca/~antoon/index.htm

Cheers Bryan1
bryan1 is offline  
Old 10th February 2005, 04:08 PM   (permalink)
Default

http://cache.national.com/ds/LM/LM139.pdf
check out the Typical applications pages 7 - 15..
williB is offline  
Old 10th February 2005, 09:13 PM   (permalink)
Default

it's working.. not for that scheme .... ty guys.....
UnD3aD is offline  
Reply

Bookmarks

Thread Tools
Display Modes





All times are GMT. The time now is 04:15 PM.


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

eXTReMe Tracker