2018-11-06 01:24 PM
Dear ST Community Members,
I'm using ST Nucleo and STM32CubeMX, and want to sample an output signal from bridge rectifier,
it has 100Hz Freq, I'm thinking in between peak, I sample 10 times ?
Any method or ideas ? I use ADC0 or ADC1 for this purpose
Thanks
2018-11-06 02:14 PM
use the DMA ADC Automated and interrupting, offers a consistent stream without issues
update every mS
thats 20 samples for 1 cycle at 50Hz
Dont forget that if you sample 20x in 20mS you may miss the peak by 0.5mS
so your peak read value is not likely to be the peak value...
2018-11-06 11:29 PM
any code for reference ?
2018-11-07 01:46 AM
You should be able to find the DMA ADC example for the board you have.
2018-11-07 04:52 AM
I use nucleo STM32L011, where can I find the example codes ? thanks