Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Categories > Micro Controllers


Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc.

Reply
 
Thread Tools Display Modes
Old 23rd September 2003, 02:45 PM   (permalink)
Default Digitizing AC sine wave by voltage measurament

Hi!, I need help to digitize an AC sine wave by voltage measurament of a half cycle in a 60 Hz AC wave form. My project consist in operating while I have a sine waveform in my AC power line and to stop if any other type of waveform is detected. Any suggestions or ideas. thank you... This is not an easy task. I have tried the PIC 16F876 by converting the voltage to DC. not fast enough for what I need. In conclusion I need to detect the sine wave. Thank you in advance...
Miguel Gonzalez is offline   Reply With Quote
Old 23rd September 2003, 04:46 PM   (permalink)
Default

Detecting signal other than sine wave??? :shock:

This is going to be difficult because after capturing the signal, you need to characterize it and on basis of that detect if it is sine or not.

For digitizing the signal, first of all you require an ADC which can support sampling rate of atleast 60*2 = 120 Samples per second. This is according to sampling theorem. But for characterizing sine wave, this is very less. You need atleaset 10-20 data points per cycle. That comes out to be 60*20 = 1200 samples per second. This is not considered as very high sampling rate. Most cheap and common ADCs can do it very well. Remember more the sampling rate, more will be your detection accuracy.

For characterizing sine wave, I have a trick. Check it out if it works.
First of all, convert the incoming signal to unity amplitude i.e. 1V(peak to peak) using scaling. In your code make a lookup table consisting of sine values of 1V(p-p) signal sampled at same interval as incoming signal. Compare the incoming signal values to that with the look-up table values. These may not be exactly same so you need to do some math stuff over here. If values matches by a percentage say 85% (or whatever you desire), then the wave is a sine wave.
How does it sound?
__________________
"There is no way to peace, peace is the way!"
kinjalgp is offline   Reply With Quote
Old 23rd September 2003, 05:30 PM   (permalink)
Default

Thanks for your help! We are going to do 8 sampling in 4.133ms. Same as your technique peak to peak but at a different voltage.
Miguel Gonzalez is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes




All times are GMT. The time now is 07:06 AM.


Electronic Circuits  |  Electronics Wiki
Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.