I'm trying to detect the presents of foods in my cats food container using an IR phototransistor which then the signal will be fed to my 8051 for refilling purpose.
This is my plan. Will it work? (if not, what do i need to modify?) **broken link removed**
My plan was to use 8051 pin1.2 to detect the high & low. If the pin detects a HIGH, then refilling will be done automatically. Otherwise it wont.
You should connect the left side of the bottom resistor to Vcc instead of to the LED. Then you will have a better high than the mere 1.2V from the forward voltage drop of the LED.
You should connect the left side of the bottom resistor to Vcc instead of to the LED. Then you will have a better high than the mere 1.2V from the forward voltage drop of the LED.
As it is it won't work, the phototransistor will pick up ambient room light as well as the LED, if sun directly hits the bowl it'll likley over fill it pretty bad. You'd have to use an modulated light source and only trigger when that was received. Something like an IR remote module would work pretty easily, just use the 8051 to send a pulse every few seconds to check to see if the receiver see's anything.
As it is it won't work, the phototransistor will pick up ambient room light as well as the LED, if sun directly hits the bowl it'll likley over fill it pretty bad.
Yep, that's the idea. The 8051 would be used to generate the frequency the IR detector needs for a brief period every few seconds, when you star receiving pulses on the IR receiver you know you have a signal.
Yep, that's the idea. The 8051 would be used to generate the frequency the IR detector needs for a brief period every few seconds, when you star receiving pulses on the IR receiver you know you have a signal.
I'm trying to detect the presents of foods in my cats food container using an IR phototransistor which then the signal will be fed to my 8051 for refilling purpose.
This is my plan. Will it work? (if not, what do i need to modify?) **broken link removed**
My plan was to use 8051 pin1.2 to detect the high & low. If the pin detects a HIGH, then refilling will be done automatically. Otherwise it wont.