An Introduction to Embedded System Programming with Python

An Introduction to Embedded System Programming with Python

An Introduction to Embedded System Programming with Python Introduction With the rapid development of the Internet of Things (IoT) and smart devices, embedded system programming has become increasingly important. Python, as an easy-to-learn and user-friendly programming language, is gradually gaining widespread application in embedded development. This article will guide you through an initial exploration of … Read more

In-Depth Analysis of ESP32 Hardware Interfaces: The All-in-One IoT Solution Behind 34 GPIOs

In-Depth Analysis of ESP32 Hardware Interfaces: The All-in-One IoT Solution Behind 34 GPIOs

🌟 In-Depth Analysis of ESP32 Hardware Interfaces: The All-in-One IoT Solution Behind 34 GPIOs How to leverage sensors, screens, motors, and even AI with a cost of just ÂĄ10? 🔌 1. Overview of Hardware Interfaces: The Infinite Possibilities of 34 GPIOs The ESP32 featuresup to 34 programmable GPIOs, which can be flexibly reconfigured as UART, … Read more

STM32CUBEMX Tutorial 2 — Using GPIO for Input/Output

STM32CUBEMX Tutorial 2 — Using GPIO for Input/Output

Previous article links:Detailed installation tutorial for STM32CUBEMXSTM32CUBEMX Tutorial 1 — Environment Configuration and New Project CreationWhen learning and using any MCU, the initial step often starts with GPIO. Learning how to configure IO allows you to output the desired voltage levels and read the voltage levels from the IO ports.This article introduces the GPIO of … Read more

MicroPython: The Mini Power of Embedded Systems!

MicroPython: The Mini Power of Embedded Systems!

â–Ľ Click the card below to follow me â–˛ Click the card above to follow me MicroPython is a lightweight Python interpreter designed specifically for embedded systems. Its emergence allows us to run Python code on microcontrollers, opening another window to the world of hardware. Imagine being able to control an LED, read sensor data, … Read more

Part 2 of Smart Home Project: Using LCD Screens

Part 2 of Smart Home Project: Using LCD Screens

This image was generated by AI For project use, I won’t discuss the specific principles here. Let’s directly introduce the interface. BL—————-》Backlight pin CS—————-》Chip select pin DC—————-》Command pin RST—————》Reset pin SDA—————》Data pin SCL—————》Clock line VCC—————》Power pin GND—————》Ground pin BL: Backlight pin, there are two common ways to set it, one is to supply power directly … Read more

STM32 vs Arduino: Why Won’t Your LED Light Up?

STM32 vs Arduino: Why Won't Your LED Light Up?

Received feedback from many readers: “Clearly following the tutorial, but the STM32 board’s LED won’t light up?” This phenomenon hides hardware differences in embedded development that are easily overlooked, the connection method of the onboard LED and GPIO pins, is the most common “pitfall” for beginners transitioning from Arduino to STM32. Every line of code … Read more

Why Use Open-Drain Output and Pull-Up Resistors in I2C?

Why Use Open-Drain Output and Pull-Up Resistors in I2C?

Why do we need pull-up resistors in I2C? Because it uses open-drain output. Why is it open-drain output? The I2C protocol supports multiple master devices and multiple slave devices on a single bus. If push-pull output is used instead of open-drain output, it could lead to short circuits between master devices. Therefore, the bus generally … Read more

The Secret of Microcontroller GPIO Driving Capability: Why ‘Sinking’ is More Powerful than ‘Sourcing’?

The Secret of Microcontroller GPIO Driving Capability: Why 'Sinking' is More Powerful than 'Sourcing'?

In embedded system design, we often need to use the General Purpose Input/Output (GPIO) pins of microcontrollers (MCUs) to drive peripheral devices such as LEDs and relays. I still remember that my first code in college was to control the blinking of an LED using the 8051 microcontroller. I wonder if the current university courses … Read more

Detailed Explanation of GPIO Operations for 32-bit Microcontrollers

Detailed Explanation of GPIO Operations for 32-bit Microcontrollers

32 Single Chip Microcontroller I O When it comes to the IO of the 32-bit microcontroller, taking the F1 series as an example, we first need to mention: 1 initialization function: void GPIO_Init(GPIO_TypeDef* GPIOx, GPIO_InitTypeDef* GPIO_InitStruct); 2 functions to read input levels: uint8_t GPIO_ReadInputDataBit(GPIO_TypeDef* GPIOx, uint16_t GPIO_Pin); uint16_t GPIO_ReadInputData(GPIO_TypeDef* GPIOx); 2 functions to read output … Read more

C++ Embedded Development: Basics and Practices of Hardware Programming

C++ Embedded Development: Basics and Practices of Hardware Programming

C++ Embedded Development: Basics and Practices of Hardware Programming Introduction With the rapid development of the Internet of Things and smart devices, the demand for embedded systems is increasing. C++, as an efficient and flexible programming language, is widely used in embedded development. This article will introduce the basic concepts of C++ in embedded development, … Read more