How to connect a 24V photocell to a microcontroller input?

Status
Not open for further replies.

1icarus1

Junior Member level 3
Joined
Aug 1, 2007
Messages
28
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,526
photocell and micro

Hi there,

How would you connect a comercial 24V npn photocell to a microcontroller input (Vcc = 5V). Also, would you debounce the signal in order to avoid the very fast noise pulses and also to have a fast enough system.

Does anybody have the experience on photocells?


Thanks,
Michael


Note: I am not talking about components as a phototransistor, photodiode or photoresistance. I am talking about automation components known as intermatic photocells (if I am right).
 

Re: photocell and micro

Hi,
Attenuate the voltage using two resistors and connect to Micro. Is bouncing specified? For high frequency noise, if any, you could use a small capacitive filter.
Regards,
Laktronics
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…