Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

Infrared Light sensing with PIC16F877

Status
Not open for further replies.
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?
 
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.
 
Status
Not open for further replies.

Latest threads

New Articles From Microcontroller Tips

Back
Top