STM32 vs Arduino
How Arduino and STM32 differ: Arduino’s simple libraries and easy start against STM32’s focus on engineering practice, with advice on which to learn first.
On this page
STM32 vs Arduino
Arduino favors creative projects. It hides the hardware detail behind very simple functions and syntax.
Most Arduino boards use an AVR microcontroller. Its code is highly encapsulated, so a program takes fewer lines and software development is easier.
Getting started is relatively easy: a little knowledge of hardware and C++ is enough to begin developing.
Most functions have well-built libraries, which keeps it simple to use, but you have less control once a function gets more complicated.
STM32
STM32 is aimed at engineering practice. It suits simple factory instruments such as temperature controllers, ordinary motor controllers and low-end PLCs, as well as consumer products such as toys, game controllers, wired keyboards and mice, and other peripherals.
STM32 is mainly for professional developers. It requires some professional knowledge, and writing code to implement a function is relatively complicated. For example, outputting a simple string on the serial port may take about 10 lines in a new Arduino project, but hundreds of lines or more with STM32 development tools such as Keil.
On open source: a project built on STM32 can be published as open source or kept private, as you choose.
Conclusion
Here are some suggestions for choosing:
If you are a student below university level without a deep understanding of programming languages, start with Arduino. Starting on STM32 with weak C skills makes it easy to give up early.
If you are studying only for employment, choose the STM32 microcontroller.
If you are learning for fun, are not an electronics major and have no confidence, choose Arduino.
If you have good programming skills, choose STM32. Once you know it, you can look at projects from the Arduino open-source community and build the same things on STM32.
You can also learn both. The basic features of Arduino generally take less than a week to learn, and Arduino code can later be ported to MCU platforms such as STM32.
The two are aimed at slightly different uses. Arduino is the choice of electronics hobbyists and DIY projects, while STM32 is often used to develop and manufacture actual products.
Frequently asked questions
What is the main difference between STM32 and Arduino?
Is Arduino or STM32 easier for beginners?
Why does STM32 take more code than Arduino?
Which should I learn if I am studying for employment?
Can I move Arduino code to STM32 later?
New engineering articles by email.
Keep reading
Embedded Display Modules Explained
Embedded DisplaysDisplay Controller and Driver ICs
Embedded DisplaysChoosing a Display for Raspberry Pi: HDMI vs. MIPI DSI, Bridge Chips and Native Panels
Control Boards & EmbeddedRaspberry Pi Prototype to Production: Choosing a Display Path
Control Boards & EmbeddedThe Mini-PC: Small Footprint, Serious Versatility
Control Boards & EmbeddedHow to Estimate Battery Life for Your Device – Even with Sleep Modes
Have a display project in mind?
Talk to an engineer about the display your application needs.