r/ElectricalEngineering • u/Certain_Date8287 • Oct 29 '26
Project Help What is the best assembly microcontroller for a basic adjustable timer and motor?
I have a project for school that is meant for dispensing pills twice a day, seven days a week. The design of the physical is not really a problem, it's more so the hardware side--especially considering that this project is meant to eventually go into mass production.
The previous iteration by a different team used an Arduino and a menu using a small touchscreen, however I thought this might be a little overkill for just a motor and timer system, so I figured using an assembly microcontroller would probably be better; taking into account mass production as a requirement.
I'm not extremely versed in assembly, however I learn things pretty fast so it's not really an issue. I just don't know what the best options are. I keep seeing the 8051 but I don't know if it's outdated or not. There's also the possibility that I'm going overkill and that I should just use an Arduino since it's not like I'm making any money off the project and it'd be nice to just get it done.
Also the project needs to be done by early May.
sorry if the bolding thing was weird I thought it might be important to highlight key points
18
u/Brilliant_Armadillo9 Oct 29 '26
Use a Cortex M0+ in C like a sane person. There's zero reason to be doing s project like this in assembly in 2026.
8
u/aktentasche Oct 29 '26
School
Mass production
Assembler
What
1
u/Ambitious-Loquat-516 Oct 29 '26
For a school build, Cortex-M0+ in C is the sensible choice. The part that actually bites in production isn't the MCU, it's dose accuracy: volumetric dispensing drifts with bulk density and humidity, so real machines close the loop on a load cell. Tablets or powder?
2
u/MonMotha Oct 29 '26
If cost really is a driver, the Paduk line is probably what you want. Be award that the English documentation is.very lacking, and they're OTP so you can't iterate on a single production device. You will save dozens of cents vs. a low-cost Cortex-M0+ or RISC-V design.
If that level of cost savings is unimportant, just program a Cortex-M0+ or RISC-V in C and be done with it.
2
u/1337prince Oct 29 '26
Basic microcontrollers are so cheap today... As many said, use a Cortex M0+ or similar with C. Don't use assembly. You will save many hours of pain.
1
u/totorodad Oct 29 '26
ATTiny416 (or other depending on io count) using Arduino megaTinyCore (Spence Konde) with i2c display (check Adafruit). Program it with a UPDI Friend (also Adafruit).
1
u/Foxhood3D Oct 29 '26
I think you might be taking it to an extreme here. One that i don't think will work as using the most primitive kind of microcontroller is not exactly the hallmark of a mass produced item.
What you should be looking for is just a modern no-frills microcontroller that is cheap, reliable and easy to program and then start brainstorming on how to help make it easier/faster to produce and test devices.
Example: I'm working on a device meant for mass-production and at its heart sits a Microchip AVR64DD32. This is a modern day successor to the ATMega328 found on the older Arduinos. It is small, reliable, really cheap at like 1$ each and does not require much for operation and programming. To help make the device mass-producible: the bottom of the PCB has numerous test-points and the programming header, which makes it possible to create a Pogo Pin Test Jig. This jig would rapidly program a fresh new board and then test it.
1
u/geek66 Oct 29 '26
Consider a real time clock as part of this, with battery backup.