aq_mishu
Full Member level 4
schematic monitoring 220vac to adc
guys,
please help me in this regard...
I want to use mega8/32/128 (any one). Programming will be done through bascom compiler. And all most all of the ADCs will be used for some other job thus no way to use those ADC. Now what i have to do is, I have to sense the live 220AC and on the presense of that, i have to drive a relay, say for the presense of 220AC, the relay will be off. Relay is a power relay driven by say 12vdc. So my planning is to use optocoupler for safety of the mcu and i need to know first the wirings and also a code snippet for the sensing say at A.0, 220 presense means optocoupler gives signal high means A.0 is getting high and it will sense it and then will set A.1 to low (and vice versa) so optocoupler at A.1 will be low and the relay will be open. Please help me...
Mishu~
guys,
please help me in this regard...
I want to use mega8/32/128 (any one). Programming will be done through bascom compiler. And all most all of the ADCs will be used for some other job thus no way to use those ADC. Now what i have to do is, I have to sense the live 220AC and on the presense of that, i have to drive a relay, say for the presense of 220AC, the relay will be off. Relay is a power relay driven by say 12vdc. So my planning is to use optocoupler for safety of the mcu and i need to know first the wirings and also a code snippet for the sensing say at A.0, 220 presense means optocoupler gives signal high means A.0 is getting high and it will sense it and then will set A.1 to low (and vice versa) so optocoupler at A.1 will be low and the relay will be open. Please help me...
Mishu~