cancel
Showing results for 
Search instead for 
Did you mean: 

Sampling a signal from brigde ?

antonius
Senior

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

4 REPLIES 4
T J
Lead

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...

antonius
Senior

any code for reference ?

T J
Lead

You should be able to find the DMA ADC example for the board you have.

antonius
Senior

I use nucleo STM32L011, where can I find the example codes ? thanks