Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.
greetings, i have designed my own ZMPT101B to detect AC voltage, but I got some problem with reading the signal, here's the waveform using arduino plotter
does any one of you know how to only detect VPP of the signal ?
By evaluating the min and max value as Klaus suggested should usually do the job. Unfortunatly your signal can be interpreted as two sinewaves ("two channels") with an offset.
I'm more curious why your signal doesn't looks as it should, namely a sinewave. What's the signal frequency? I think the maximum arduino (uno) ADC sample frequency is 125 kHz. Do you acquire a whole array (set of samples) at once befor they are sent to the PC?
greets
- - - Updated - - -
Ok, by using analogRead() the arduino ADC sample rate is even lower:
On ATmega based boards (UNO, Nano, Mini, Mega), it takes about 100 microseconds (0.0001 s) to read an analog input, so the maximum reading rate is about 10,000 times a second.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.