Design of short-range wireless data transmission system based on STM32F103 and nRF24L01

In recent years, with the rapid advancement of wireless communication technologies, the integration of wireless devices has significantly increased. This paper presents a specific approach to designing a short-range wireless data transmission system using a high-performance, low-power 32-bit microcontroller, STM32F103, and the nRF24L01 RF transceiver chip. The system is designed for efficient and reliable short-range communication in various applications. **1 System Design** The short-range wireless data transmission system consists of three main components: the power management module AMC7635, the microcontroller STM32F103, and the RF transceiver nRF24L01. Each component plays a critical role in ensuring the system's stability, efficiency, and performance. Below are the key circuits that make up the system. **1.1 Power Circuit** The system is powered by a 3.7V lithium battery, which is regulated down to 3.0V using the low-dropout power management chip AMC7635. This ensures stable power supply to both the STM32F103 microcontroller and the nRF24L01 transceiver. Figure 1 illustrates the power supply circuit used in the system.

Design of short-range wireless data transmission system based on STM32F103 and nRF24L01

Figure 1: System Power Supply Circuit

**1.2 Microcontroller Circuit** The STM32F103 microcontroller, based on the ARM Cortex-M3 core, is chosen for its high performance, low power consumption, and ease of development. It features a wide range of peripherals, making it ideal for embedded applications. The microcontroller communicates with the nRF24L01 via the SPI interface, which includes signal lines such as SPICS, MOSI, MISO, and SCK, along with control lines CE and INT0. Additionally, the STM32F103 provides an RS232 port and eight GPIOs for expansion. Figure 2 shows the microcontroller circuit.

Design of short-range wireless data transmission system based on STM32F103 and nRF24L01

Figure 2: Microcontroller Circuit

**1.3 RF Transceiver Circuit** The nRF24L01 operates in the 2.4–2.5 GHz ISM band and integrates multiple functions such as a frequency synthesizer, power amplifier, crystal oscillator, and modulator. It supports enhanced ShockBurst technology, allowing for programmable output power and channel configuration. With low power consumption—only 9 mA when transmitting at -6 dBm and 12.3 mA during reception—it is well-suited for battery-powered systems. The nRF24L01 connects to the STM32F103 via the SPI and GPIO interfaces. Figure 3 shows the RF transceiver circuit.

Design of short-range wireless data transmission system based on STM32F103 and nRF24L01

Figure 3: RF Transceiver Circuit

**2 System Programming** The system can be implemented with the UCOSII real-time operating system (RTOS) running on the STM32F103. The software is divided into three main parts: system initialization, user interface handling, and RF transceiver control. Figure 4 shows the overall program flow.

Design of short-range wireless data transmission system based on STM32F103 and nRF24L01

Figure 4: System Program Flow Chart

Porting UCOSII to STM32F103 is straightforward, as the manufacturer provides example code. The key challenge lies in implementing SPI communication between the microcontroller and the nRF24L01. Below is a sample code snippet for initializing the SPI interface: ```c void SPI_Init(void) { // SPI initialization code } ``` While the SPI interface can also be implemented through GPIO emulation, this method is more complex and less efficient. A general implementation of SPI communication via GPIO is provided below. **3 Conclusion** Field testing has confirmed that the wireless data transmission system described in this paper offers advantages such as low cost, high speed, and reliable performance. The nRF24L01 can be configured in one-to-one, one-to-many, or many-to-many topologies, making the system versatile for various applications. It is suitable for use in wireless measurement and control, file transfer, home automation, and industrial control systems. The design demonstrates the potential of combining STM32 and nRF24L01 for efficient and practical wireless communication solutions.

Air Glow

original Air glow vape, many new style ,direct factory wholesale,High quality,new design.
popular in many maofferrtket.
offer sample for you check,please contact with me.

Air Glow Blastoff

Shenzhen Ousida Technology Co., Ltd , https://en.osdvape.com