paridhi jain
New Member
How to detect power in 8051 using optocoupler ?
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Measure voltage, measure current, multiply...How to detect power in 8051 using optocoupler ?
So you want to know how much power the micro controller is using??Actually I am making a real time project and I want to know how to detect power in microcontroller.
Not really!Did you understand my question
These words can be interpreted in dozens of ways. A micro, an octocoupler and a diode, that's all I understood. And you said something about power and AC. Mains power monitor via microcontroller, no?Is not the ans.
I think u cant understand my ques...
suppose u have a frequency 50Hz, after 20ms there is no power at diode input then my optocoupler detect that their is power cut but actually power is not cut... How can I detect actually power is cut.
Is not the ans.
I think u cant understand my ques...
suppose u have a frequency 50Hz, after 20ms there is no power at diode input then my optocoupler detect that their is power cut but actually power is not cut... How can I detect actually power is cut.
...suppose u have a frequency 50Hz, after 20ms there is no power at diode input then my optocoupler detect that their is power cut but actually power is not cut... How can I detect actually power is cut.
can u please send me ur circuitHi,
It sounds like all you want to do is detect the "voltage" not the power. The voltage to the uC chip.
If so, then your description sounds strange because normally you would have a filtered and regulated power source to power the uC chip with, and that would not go to zero just because the line frequency happens to go through zero every 1/2 cycle.
If you do it that way however, then you need to use another rectifier and filter cap to filter the power to the chip and then measure that with the opto coupler. That will tell you for sure if the power is lost to the chip. To filter it digitally, set a timer to time the amount of time it is seeing an 'off' condition. If it stays 'off' for more than say 50ms without coming back 'on' then it is off for good. If it comes back on within that time frame, then start the timer counter over again.