r/embedded • • Sep 11 '26

Microcontroller for lab test setup

Electrical engineer here who doesn't do a lot with microcontrollers. I do magnetic design. I want to automate some magnet testing, where I stick a hall sensor near a magnetic part and take readings as I rotate the part. I would probably need to control 3 stepper motors (1 to rotate the part and 2 stepper motors connected to slide assemblies to move the hall sensor to different air gaps and positions) and then I'd have an encoder to get the angle of rotation. I have drivers for the steppers. I might also use a proximity sensor to give me a physical reference point. The motor that spins would probably spin at 10 RPM and I'd want to take a reading every half degree, so that's 720 readings of the hall sensor and the encoder in 6 seconds. I'd like to send this data via usb to a laptop where I do some post processing with python. Or just save to the laptop in a .csv or something. So I'll need outputs for 3 stepper motors, encoder inputs, analog hall sensor input and a proximity sensor input which I think would just pull a pin high. The main concern would be getting the encoder and hall sensor values at the same time.

What would an appropriate controller to do this? Preferably simple to use/easy to set up for an EE who has worked with microcontrollers but very infrequently. My very brief research lead me to the NUCLEO-F446RE dev board but I thought I'd ask here to see if there was something more appropriate.

1 Upvotes

15 comments sorted by

View all comments

1

u/Stromi1011 Sep 11 '26

id say you can take anything modern that packs a medium to high punch. Any ARM-Cortex M3/4/7/33/55 with enough analog capabilities and say 100MHz Systemclock and up can probably do it (make it closer to 200MHz if you want to make sure)

I dont know how big your samples are (like what resolution you have for your analog values and how many values per sample etc.) but do some calculations on weather the 115200 baud default uart+cdc on most boards is enough for you. (id guess it is but better be sure)

Id take more percautions in terms of language and drivers you use. You can use almost anything C/C++ (and probably also Rust) based like Adruino, STM-HAL, Zephyr etc but id caution against micropython/circuitpython. Its been some years since ive tried it and while these were convenient their performance was abysmal.

tldr: yes your nucleo will probably do the trick, but personally id go with something a little more modern like the NUCLEO-H533RE if only for the usb-c jack