thannara123
Advanced Member level 5
- Joined
- Jan 7, 2010
- Messages
- 1,602
- Helped
- 122
- Reputation
- 244
- Reaction score
- 116
- Trophy points
- 1,353
- Activity points
- 10,636
Hi,
Firstly saying this question is the part of desgin of a sinewave inverter by an STM32 controller
A Feed back volt is given to the ADC of the controller after , Scaling and necessory process as said in a previous thread .
Thorugh the internet , most of detecting by " in between the adc values at the zero level of the signal "
like wise
if (adc_value >=1400 && adc_value <=1600){ Zero crossing detected }
Here am reading 400 samples (each conversion takes 25 us) for 10 millisecond one half cycle which is saving to an array[400] by DMA
Hello experts
Here i am requesting the logic or sample code to detect the zero crossing Also how detect the positive or negative cycles
( I am doing this project for learning purpose , Error and accuracy may change it will correct after understanding the basics.And after making a working proto type so this project hasnt any accuracy ,error etc deal binding )
Firstly saying this question is the part of desgin of a sinewave inverter by an STM32 controller
A Feed back volt is given to the ADC of the controller after , Scaling and necessory process as said in a previous thread .
Thorugh the internet , most of detecting by " in between the adc values at the zero level of the signal "
like wise
if (adc_value >=1400 && adc_value <=1600){ Zero crossing detected }
Here am reading 400 samples (each conversion takes 25 us) for 10 millisecond one half cycle which is saving to an array[400] by DMA
Hello experts
Here i am requesting the logic or sample code to detect the zero crossing Also how detect the positive or negative cycles
( I am doing this project for learning purpose , Error and accuracy may change it will correct after understanding the basics.And after making a working proto type so this project hasnt any accuracy ,error etc deal binding )