In today’s era, new technologies are emerging one after another. In the field of electronics, especially in automation and intelligent control, traditional control systems made of discrete components or digital logic circuits are being replaced at an unprecedented speed by microcontroller-based intelligent control systems. Most higher engineering schools have already introduced microcontroller courses. Microcontrollers have advantages such as small size, strong functionality, low cost, and wide application. It can be said that the core of intelligent control and automatic control is the microcontroller. Currently, there is a surge in learning and applying microcontroller technology in factories, schools, and enterprises. Engineers and technicians who were accustomed to the traditional electronics field are now facing new challenges. If they cannot learn microcontroller technology in a short period, they will inevitably be left behind by the times. Only by bravely facing reality, challenging themselves, strengthening their learning, and striving to master microcontroller technology in a short time can they keep pace with the times. However, many learners (including students) often find it difficult to grasp the essentials. Their initial enthusiasm for learning dwindles into frustration and abandonment, leading to a love-hate relationship with microcontrollers. Learning microcontrollers is not as intuitive as learning traditional digital or analog circuits because, in addition to hardware, there is also a software factor. This ‘software’ factor makes it difficult for many beginners to understand the working process of microcontrollers. They cannot comprehend why sending a few numbers back and forth can control a light to turn on/off or control a motor’s speed. This creates a sense of ‘mystique’, ‘awe’, and even ‘fear’ towards microcontrollers, hindering their enthusiasm and interest in learning. Hence, there is a saying in society that ‘microcontrollers are hard to learn’. The author has interacted with numerous electronics enthusiasts and students over the years and understands the difficulties they face when learning microcontrollers. Moreover, the author has also grown from an electronics enthusiast to an engineer, experiencing the learning, exploration, practice, and progress that is a natural part of this process. Therefore, the author deeply understands that the difficulty in learning microcontrollers primarily lies in not grasping the essentials and struggling to get started. Once a shortcut to learning is found, and one can initially master programming techniques and achieve practical results, confidence will inevitably increase. Subsequently, when advancing into new depths and breadths, one will feel less anxious and more at ease, able to expand their knowledge step by step. Based on the author’s experience, here are some methods and techniques for learning microcontrollers and how to master them in a short time. The most effective way to learn microcontrollers is to balance theory and practice. For a beginner in microcontrollers, if they follow a textbook-style learning method, starting with a pile of instructions and terms, they may spend a long time without understanding the functions of these instructions or the practical effects they can produce. This may lead to boredom and abandonment within a few days. Therefore, combining learning with practice is a good approach. Learning and practicing simultaneously, progressing gradually, will allow one to understand and internalize the necessary instructions in no time, embedding them deeply in their mind. In other words, after learning a few instructions (the quantity is not important, understanding is key), the next step should be to conduct experiments. Through experimentation, one can see the control effects of the instructions just learned (the light) and hear the results (sound), leading to a deeper understanding of how instructions are transformed into signals to control electronic products. To put it bluntly, microcontroller skills are not so much learned as they are honed through experimentation, which is also a learning process. Therefore, the method of learning while practicing is particularly effective. Many readers have developed simple products (such as neon light advertising board control, accumulators, etc.) after 3 to 6 months of study. Learning microcontroller technology requires reasonable time management and perseverance. Consistent learning is essential; one cannot ‘fish for three days and sunbathe for two’. There must be the perseverance and determination to continue learning. After mastering a few instructions, one should promptly conduct experiments to integrate knowledge rather than waiting days or weeks to experiment, as this leads to poor results and forgetting previous learning. Additionally, one must be mentally prepared for a ‘protracted battle’, not just studying for a few days when interested and then taking weeks off when uninterested. A crucial aspect of learning microcontrollers is persistence. Learning microcontrollers should also utilize a cyclical learning method to deepen understanding. The author has previously held a lecture on ‘Hands-On Learning of Microcontrollers’ in other publications. This lecture started at a low entry point, and many friends found it easy to learn, quickly completing and understanding the entire lecture. However, a few months later, when developing products, they found they had forgotten some specific functions of the instructions. According to modern scientific research, knowledge learned briefly is only slightly better than superficial understanding. Therefore, a better method is to revisit the material after some time (1-2 months) to reinforce understanding through repeated cycles. It is said that if one could read ‘Water Margin’ ten times, the stories and characters would be unforgettable for life. Learning microcontrollers requires appropriate investment in experimental equipment and reference materials. Microcontroller technology is a highly valuable skill, and once mastered, it offers significant returns in benefits, whether seeking employment or starting a business. Therefore, during the learning process, it is necessary to invest appropriately in essential learning and experimental equipment. Additionally, frequent visits to technology bookstores to purchase suitable books for learning and improvement is advisable. In summary, without sowing seeds in spring, how can there be a harvest in autumn? Considering learning costs, beginners can adopt the method of ‘software simulation after program completion → microcontroller program burning → experimental board powered experiments’ (nowadays, flash microcontrollers can have their programs burned over 1000 times). The entire set of experimental equipment (excluding the PC) costs only a few hundred yuan, which is affordable for most hobbyists who are already working. Those with better economic conditions may consider using online simulators (ICE) for experiments, as this provides a better visual learning experience. In conclusion, this is the author’s personal experience. We hope to guide beginners into the world of microcontrollers with the most practical methods and easiest techniques, enabling those who only slightly understand hardware principles to understand the role of software through practice. They should realize that in systems composed of microcontrollers, the distinction between hardware and software is not absolute; generally, what hardware can do, software can also achieve, and hardware functions can often be replaced by software. Once they have initially learned microcontroller software design, they can delegate tasks typically performed by hardware to software, significantly reducing the system’s size, power consumption, and cost, while enhancing and increasing functionality. This will make those accustomed to traditional circuit design feel an inexplicable sense of regret for not having discovered microcontrollers sooner, as they truly find an ideal component and experience the immense power of modern microcontrollers, thus immersing themselves in the field of microcontrollers. As long as you are willing to work hard, put in the effort, and practice more, you will definitely succeed.
Long press the following QR code to follow!
Let’s walk together on the road of electronics!