Getting Started: This is the Most Suitable Option
Have you ever searched for “microcontroller development boards” on Taobao, only to be confused by the myriad of models? 51, STM32, ESP32, AVR… what secrets lie behind these seemingly mysterious codes? As an engineer with over a decade of experience in the microcontroller field, I will clarify these for you today.
I still remember my freshman year when I bought my first 51 development board with my saved living expenses; the excitement is unforgettable. As project needs arose, I gradually encountered more types of microcontrollers and took many detours along the way. Today, I will share these experiences without reservation.
The Three Mainstream Microcontrollers, Each with Its Own Strengths
51 Microcontroller: The “Training Car” of the Electronics World
If we compare the microcontroller world to a driving school, the 51 is the best training car. It may not have a flashy appearance or powerful performance, but it is easy to operate and affordable, making it perfect for beginners to build a solid foundation.
I often tell beginners that the 51 microcontroller is like learning to ride a bicycle—starting with the simplest tasks allows for a deep understanding of the principles behind each instruction. Its development environment is simple, and resources are abundant; almost every school’s microcontroller course starts with it.
STM32: The “Family Sedan” with Strong Performance
Once you are familiar with the basics, the STM32 is like a well-equipped family car. Based on the ARM architecture, it boasts powerful performance and a rich set of peripherals, capable of meeting the needs of most complex projects.
What I love most about STM32 is its complete ecosystem. The standard library and HAL library make development easy, and the strong community support means that the problems you encounter have likely already been solved by someone else. From smart homes to industrial control, STM32 is ubiquitous.
ESP32: The “New Energy Vehicle” of the Microcontroller World
The ESP32 is the “newcomer” in the microcontroller realm, akin to the currently popular new energy vehicles. Its biggest highlight is the integration of Wi-Fi and Bluetooth functionality, making IoT development a breeze.
Last year, when I worked on a smart home project, I chose the ESP32. It can connect to the internet without additional modules, greatly simplifying circuit design. If you are interested in IoT, the ESP32 is definitely for you.
How to Choose Your First Microcontroller?
Consider the Application Scenario
Do you want to do simple control, like an LED flowing light or temperature collection? The 51 microcontroller is more than sufficient.
Need to process complex data and drive a color screen? The STM32 would be more suitable.
Planning to do an IoT project that requires networking capabilities? The ESP32 is the best choice.
Evaluate Learning Costs
The learning materials for the 51 microcontroller are the most systematic, with straightforward register configurations, making it suitable for understanding underlying principles.
The STM32’s library functions offer high development efficiency but require a certain level of programming foundation.
Although the ESP32 is powerful, it may not be friendly enough for beginners; it is recommended to have some foundation before trying it.
Weigh Development Costs
The 51 development board can usually be purchased for just a few dozen yuan, and a debugger is not necessary.
The STM32 requires a compatible ST-Link debugger, with a total investment of around a hundred yuan.
The ESP32 development board offers great value, with feature-rich models available for under a hundred yuan.
For Beginners, Why Do I Recommend the STC89C52RC?
Among many microcontrollers, I particularly recommend beginners start with the STC89C52RC. This classic 51 microcontroller can be considered the mentor for countless engineers.
Extremely Affordable
You can buy a chip for less than ten yuan, and a compatible development board is around thirty yuan. At this price, even if you accidentally burn the chip, it won’t hurt too much.
Simple Development Environment
Using the classic Keil software, along with a common downloader, you can set up the development environment in just a few minutes. No complex configurations are needed, allowing you to focus on learning programming concepts.
Abundant Learning Resources
Whether it’s school textbooks, online tutorials, or open-source projects, resources for the 51 microcontroller are the most abundant. When you encounter problems, a quick search will often yield solutions.
Helps Build a Solid Foundation
Learning with the 51 microcontroller allows you to truly understand core concepts such as register operations and timing control. With this foundation, learning other microcontrollers becomes much easier.
Among the interns I have mentored, those who started with the 51 often have a stronger foundation and learn STM32 more quickly. In contrast, students who jump straight into advanced microcontrollers tend to remain at the level of library usage and struggle with underlying issues.
Practice Makes Perfect
Theory is all well and good, but nothing beats hands-on experience. I have a small task for you: use the most basic 51 microcontroller to implement a breathing light.
This project, while simple, encompasses several important concepts such as GPIO control, delay functions, and PWM modulation. When you see the LED slowly brighten and then dim, the sense of achievement will make you fall in love with microcontroller programming.
In the next issue, we will look at what you need to prepare to learn about microcontrollers.
Don’t forget to follow “Linking Things Chip Workshop” to explore more exciting content in the world of electronics!
Thought Question:
If you were to design a smart flower pot that could monitor soil moisture and automatically water the plants, which microcontroller would you choose? Why? Feel free to share your thoughts in the comments!