along this line of thread..
I want to make a PIC sensor circuit which detects the quality of the Mains power - so it would use the ADC input on the PIC to measuring between 220Vac and 250Vac. the measuring range would be 30Vac - the 30Vac above 220Vac of course.
I'm planning to sample it every 0.5 seconds for 15 minutes and if the 240Vac mains remains within a continuous respectable healthy limit ± from 240Vac then I'll perform an action.
thinking back to my theory.. if you take 240VAC and run it through a bridge diode rectifier and then smooth it right out with some caps would you measure 240VDC ?
Also from my understanding the ADC sample input on the PICAXE cannot be greater than Vcc for the PICAXE - so somehow I need to make a range of 30Vdc equate to 0-5VDC as the input to the ADC pin on the PICAXE.
Hope that makes sense.. this is something I'm just thinking about at the moment.. would appreciate any ideas anyone has on the few hurdles I need to jump.
Thanks!
I want to make a PIC sensor circuit which detects the quality of the Mains power - so it would use the ADC input on the PIC to measuring between 220Vac and 250Vac. the measuring range would be 30Vac - the 30Vac above 220Vac of course.
I'm planning to sample it every 0.5 seconds for 15 minutes and if the 240Vac mains remains within a continuous respectable healthy limit ± from 240Vac then I'll perform an action.
thinking back to my theory.. if you take 240VAC and run it through a bridge diode rectifier and then smooth it right out with some caps would you measure 240VDC ?
Also from my understanding the ADC sample input on the PICAXE cannot be greater than Vcc for the PICAXE - so somehow I need to make a range of 30Vdc equate to 0-5VDC as the input to the ADC pin on the PICAXE.
Hope that makes sense.. this is something I'm just thinking about at the moment.. would appreciate any ideas anyone has on the few hurdles I need to jump.
Thanks!