On Sat, 23 Jun 2001, Jeethu Rao wrote: > > So, the voltage I'll be getting will be the peak voltage. How do I get the > RMS Voltage ? > Any ready made algorithms on PICList would be great. Of course you dont need any PIC algorithm to decrease a voltage with 1.41 ( sqrt 2 ) from initial value. You need just a potentiometer or two resistors. And keep your electronics isolated from the 220...240V mains. Else you'll can't talk with other devices only through optoisolated devices: RS232/485 etc. Vasile > > > If you rectify the 230VAC first you can use a very non-perfect > rectifier. The errors will be insignificant vs. the 300VDC result. > Then use a resistive divider to reduce the 300V to 5V for the PIC A/D. > > The will give you the average voltage level. If you are looking for > single cycle dropouts you will have to do something faster, probably > synchronized to the power line frequency. > > Do you need to isolate the PIC ground from the AC mains? > > Sherpa Doug > > -- > http://www.piclist.com hint: The list server can filter out subtopics > (like ads or off topics) for you. See http://www.piclist.com/#topics > > -- > http://www.piclist.com hint: The PICList is archived three different > ways. See http://www.piclist.com/#archives for details. > > -- http://www.piclist.com hint: To leave the PICList mailto:piclist-unsubscribe-request@mitvma.mit.edu