Alexandru Savin
Newbie level 2
Hi I am working on a project analyzing the ac power line and I need to detect the zero-crossing point using an 16bit ADC, is there a smarter/better way of doing this than
if(last_sample==<== adc_average&==&== current_ sample> adc_average)
I sample 128 times per period and I'm calculating the adc_average every period, by using the method above I'm still having some jitter when detecting the zero-crossing.
if(last_sample==<== adc_average&==&== current_ sample> adc_average)
I sample 128 times per period and I'm calculating the adc_average every period, by using the method above I'm still having some jitter when detecting the zero-crossing.