0

I'm a beginner in STM32 MCU's and I need to record an ECG signal with 1000 Hz sampling rate.

As an autonomous student, I have been reading a lot of online tutorials, but I can't understand what are the best practices to do this...I mean, should I continue learning the basics of STM32 with HALs library? And how people change the sampling rate of a signal? What are the right steps (the best practices)?

I'm a little confused about all the information that I have been learning on the internet.

2
  • Do you have an amplifier for the ECG signal? Commented Nov 15, 2019 at 13:42
  • yes, I have ECG module I only need read with ADC Commented Nov 15, 2019 at 21:48

2 Answers 2

1

Should I continue learning the basics of STM32 with HALs library? Yes, otherwise you would get into details of the ADC registers that are not that relevant to you.

What are the right steps (the best practices)? No sure about right steps but here some useful ones:

  1. Use STM32CubeMX

  2. Get a basic program working , blink led or reading a button...etc

  3. Implement a simple ADC program by Enabling your ADC module trough STM32CUbeMX , read a constant voltage and store it in a variable that you can read using debug mode.

  4. Implement a simple Timer program

  5. Combine them both timer providing your sample rate and ADC sampling your EKG channels

Once you start doing progress more specific questions would pop up, then you can continue asking on this site :)

Recommend readings Mastering STM32 by Carmine Noviello and STM32 user manual

Sign up to request clarification or add additional context in comments.

Comments

0

Use timer event to trigger the ADC conversion. It is 100% precise.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.