Adding Driver Files and Compilation Paths in STM32F103 Using CubeIDE

Adding Driver Files and Compilation Paths in STM32F103 Using CubeIDE

When adding driver files for peripherals such as the MPU6050 sensor and TOF sensor, it is necessary to include the corresponding onboard driver support package and add the compilation path. The steps are as follows:1. Create a new project and complete the basic configuration. You can refer to the STM32F103 microcontroller programming environment setup, the … Read more

i2cdevlib: A Collection of Libraries for Common I2C Devices

i2cdevlib: A Collection of Libraries for Common I2C Devices

In simple terms: i2cdevlib is a collection of libraries written for common I2C devices. Each device (such as MPU6050, HMC5883, BMP085, etc.) has a “device class,” and these device classes rely on a common I2C abstract class called I2Cdev. What are the benefits? The device classes only handle the “human-friendly interface” (like readAccelX()), while the … Read more

i2cdevlib: A Collection of Ready-to-Use, Uniform Libraries for Common I2C Devices

i2cdevlib: A Collection of Ready-to-Use, Uniform Libraries for Common I2C Devices

i2cdevlib is a collection of ready-to-use, uniform libraries that encapsulate the registers, read/write operations, initialization, and common functions of common I2C devices (such as MPU-6050, BMP, AK8963, etc.). It consists of two layers: • I2Cdev: A generic I2C read/write abstraction layer (the platform-specific layer) • Device classes: A class for each specific sensor, allowing direct … Read more

Gesture-Controlled Lighting System Based on STM32 and MPU6050

Gesture-Controlled Lighting System Based on STM32 and MPU6050

In the applications of smart homes and the Internet of Things, gesture control is an interactive method that provides a great user experience—no need to press switches, just wave your hand to control the lights.The MPU6050 is a six-axis sensor that integrates a three-axis accelerometer and a three-axis gyroscope, which can obtain the motion posture … Read more

Arduino Sensors: Gyroscope Module

Arduino Sensors: Gyroscope Module

01Basic UnderstandingModel:HS-S48PName:MPU6050 Gyroscope ModuleSeries:SensorDescription:This is a 6 degrees of freedom (6DOF) motion sensor module that integrates a three-axis accelerometer and a three-axis gyroscope. It has a built-in digital motion processor (DMP) that can simultaneously detect the acceleration (linear motion) and angular velocity (rotational motion) of an object, outputting digital signals via I2C communication. It features … Read more

Mastering SPI Driver from Scratch: Practical Communication between STM32 and Sensors

Mastering SPI Driver from Scratch: Practical Communication between STM32 and Sensors

Implementing the SPI (Serial Peripheral Interface) driver on the STM32 microcontroller for communication with sensors. The content includes SPI initialization, data transmission, error handling, debugging techniques, and the use of logic analyzers. The code is based on the STM32Cube HAL library, suitable for the STM32F4 series (such as STM32F407), and uses a generic sensor (like … Read more

Driver for MPU6050 on RK3588S

Driver for MPU6050 on RK3588S

1. Main Registers of MPU6050 1.1 Initialization Registers and Their Settings 1.2 Data Registers 2. Hardware Connections 3. Device Tree Configuration 4. Writing Driver Code 4.1 i2c_mpu6050.h 4.2 mpu6050.c 5. Timing Observations of Initialization Functions in Probe 5.1 Overall Timing 5.2 CLK 5.3 Host Writing One Byte to Slave 5.4 Host Reading One Byte from … Read more

STM32 Microcontroller #11.5 I2C Communication (Hardware Read/Write)

STM32 Microcontroller #11.5 I2C Communication (Hardware Read/Write)

Main reference materials: Bilibili @ Jiangxie Technology STM32 Beginner Tutorial – 2023 Edition Detailed Explanation with Chinese Subtitles Development materials download link: https://pan.baidu.com/s/1h_UjuQKDX9IpP-U1Effbsw?pwd=dspb Microcontroller kit: STM32F103C8T6 development board microcontroller C6T6 core board experimental board minimum system board kit Introduction to I2C Peripherals • The STM32 integrates hardware I2C transceiver circuits, which can automatically execute clock … Read more

Innovative Design of Bluetooth Mouse and Keyboard!

Innovative Design of Bluetooth Mouse and Keyboard!

In the first task of the sixth episode of Funpack Season 2, our requirement was to set up a composite device of a Bluetooth keyboard and mouse, achieving the functionality of mouse clicks and key inputs. However, the project I want to share today goes beyond just meeting the project requirements. Let’s take a look … Read more

Young Innovator Creates Affordable Drone Using Chopsticks, Receives 130,000 Likes!

Young Innovator Creates Affordable Drone Using Chopsticks, Receives 130,000 Likes!

Reporter: Liang YajiaNews Hotline: 0771-5690127Tip-off Email: [email protected] Recently, A young man from Dezhou, Shandong, born in the 1990s, named Zhao posted a video of a drone he made using chopsticks as the body, which attracted the attention of netizens. The drone costs only a few dozen yuan, and Zhao completed it in just 3 days … Read more