On this page

STM32 vs Arduino

Check out our Control Board!

 

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?

Arduino is aimed at electronics hobbyists and DIY projects, with simple functions and syntax. STM32 is aimed at engineering practice and is often used to develop and manufacture actual products.

Is Arduino or STM32 easier for beginners?

Arduino. A little knowledge of hardware and C++ is enough to begin, and most functions have well-built libraries. STM32 is mainly for professional developers and requires some professional knowledge.

Why does STM32 take more code than Arduino?

Arduino code is highly encapsulated and has well-built libraries, so a program takes fewer lines, while writing code to implement a function on STM32 is relatively complicated. Outputting a simple string on the serial port may take about 10 lines on Arduino, but hundreds of lines or more with STM32 tools such as Keil.

Which should I learn if I am studying for employment?

Choose STM32 if you are studying only for employment or already have good programming skills. Choose Arduino if you are a student below university level, or learning for fun, not an electronics major and lacking confidence.

Can I move Arduino code to STM32 later?

Yes. 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. You can also learn both.

New engineering articles by email.

Keep reading

Have a display project in mind?

Talk to an engineer about the display your application needs.