Skip to main content
antonius
Associate III
November 6, 2018
Question

Sampling a signal from brigde ?

  • November 6, 2018
  • 4 replies
  • 710 views

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

    This topic has been closed for replies.

    4 replies

    T J
    Senior III
    November 6, 2018

    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
    antoniusAuthor
    Associate III
    November 7, 2018

    any code for reference ?

    T J
    Senior III
    November 7, 2018

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

    antonius
    antoniusAuthor
    Associate III
    November 7, 2018

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