Skip to main content
FMech
Associate
June 13, 2022
Question

STM32F4 - HAL or Matlab Simulink? - Sensor data processing - ADC -> USB/Ethernet -> PC

  • June 13, 2022
  • 3 replies
  • 1858 views

Hello Community,

I am currently working on a project about "Digitization of sensor signals". The sensor signal is to be digitized with an ADC and passed on to the PC via an interface, e.g. USB or Ethernet. Ideally, the ADC works in continuous mode at 2 megasample/s and 12 bit. The amount of data that occurs during continuous digitization will probably only be manageable via Ethernet. Alternatively, discontinuous recording with 5ms recording each and a pause of 45ms.

Currently I use a Nucleo-F429ZI. Programming can be done via HAL or Matlab/Simulink. Matlab Simulink provides a suitable GUI for programming, among other things for Ethernet. However, the GUI is not available for all Nucleo boards. Unfortunately, the F429ZI is not supported.

I am currently considering how best to implement the project. I would like to process the digitized data afterwards also by Matlab. In this respect, it would make sense to carry out the programming in Simulink. For this I would also be willing to switch to another board.

I already have experience with Matlab, but less with programming in HAL. What would you advise me? Do you have any other tips?

Thank you very much!

This topic has been closed for replies.

3 replies

Andrew Neil
Super User
June 14, 2022

"I already have experience with Matlab"

does that include writing embedded microcontroller code using Matlab?

Writing embedded microcontroller code using Matlab is a pretty niche area - you're probably going to have to go to the Matlab forums for help with that...

A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.
FMech
FMechAuthor
Associate
July 6, 2022

No, this only concerns programming with Matlab Simulink. You are right, it is rather a marginal topic. For this reason I use the classical programming with C language.

Thanks for your answer!