Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

Read Smooth AD

Status
Not open for further replies.

Suraj143

Active Member
I'm going to read analog voltage through this circuit using a PIC.I need to sense the varying 230VAC indirectly from this circuit.

Can somebody tell me how often shall I take a sample?I cannot see any time constant in this & I don't know how much the ripple is??
 

Attachments

  • AD.JPG
    AD.JPG
    14.3 KB · Views: 155
Is this for a home project or commercial application? What exactly are you trying to do? Reason for asking is any instantenous change on the AC mains will not show up on the DC output. You have a 220 uF cap in there that will not follow change very quickly. Additionally you will have AC ripple. The greater the cap value the less ripple but the slower to respond to AC mains changes. While the circuit will work it is not the best way to go about things. The cap will also charge to E peak so if you want the RMS value you will I assume calibrate for RMS with your pot? How fast you sample is just a matter of how fast you want to update the data as you are dealing with a DC level that is in theory proportional to an AC signal level. All of this also assumes a true sine wave being measured.

There are much better ways to condition the signal, some costly and some not as costly depending on exactly what you want and what the goal is.

Ron
 
Not a useful circuit because two forward bias diode drops subtract from 1.4*9V, making the resulting DC output highly non-linear with respect to the peak AC input voltage.

I would use the 9V transformer, but run it through an opamp precision rectifier. Provides rapid peak acquisition, accuracy, and controllable decay.
 
Last edited:
I cannot see any time constant in this & I don't know how much the ripple is??
The discharge time constant is the 13.2k ohm resistance in parallel with the 220uF capacitor, or 2.9 seconds.
 
Remove the capacitor.No need any capacitors.So now you get unsmoothed low level DC voltage.

Make a zero cross detection circuit (you can do with a single transistor).Detect every ZX & turn ON a timer for 5mS.Every middle in the semi period you will get the peak value.Read AD at this time & compare the results.
 
Use an opamp precision rectifier as Mike suggested. If you desire DC you can run that signal through an RC filter, which will give the average value (better than measuring the peak since it's less affected by waveform distortion and line spikes).

If you want true RMS then you will need to sample the waveform multiple times over each cycle and perform the RMS calculation with the micro (square each sample, sum the samples, and then take the square root of the sum).
 
Status
Not open for further replies.

New Articles From Microcontroller Tips

Back
Top