Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Categories > Micro Controllers


Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc.

Reply
 
Thread Tools Display Modes
Old 5th October 2005, 12:51 PM   (permalink)
Experienced Member
emufambirwi is on a distinguished road
Default Infrared Light sensing with PIC16F877

In scenario where I am supposed to detemine if two rectangular planar objects are aligned exactly, I decide to use an infrared led and phototransistor on each of two diagonally opposite corners on the two rectangular objects.

what will be effect of the width of the beam on the resulting signal into the PIC?


Will it not show alignement before fully aligning?
__________________
People perish because of lack of knowledge
emufambirwi is offline   Reply With Quote
Old 12th October 2005, 06:43 PM   (permalink)
New Member
 
DJ_ReL@X! is on a distinguished road
Default

The phototransistor won't give you a 5 V output. So you may want to use a comparator and adjust it to give 5 V when the objects are fully aligned.

You could use an external LM311 or one of the comparators included in 16F877A.
DJ_ReL@X! is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes




All times are GMT. The time now is 10:55 PM.


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