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

DIY Smartphone-Controlled Drone: A Cool Experience from Theory to Practice

DIY Smartphone-Controlled Drone: A Cool Experience from Theory to Practice

Introduction In today’s rapidly advancing technology landscape, drones are no longer a novelty. Once merely a quirky toy for niche enthusiasts, they have transformed into valuable assistants in fields such as photography, agriculture, and defense. The price range is vast, from entry-level toys costing a few dozen yuan to professional high-end equipment worth millions, leaving … Read more

Raspberry Pi | Angular Velocity and Acceleration Sensors

Raspberry Pi | Angular Velocity and Acceleration Sensors

Click the above“Mechanical and Electronic Engineering Technology” to follow us Angular velocity sensors and acceleration sensors are common inertial sensors, often used to measure the rotation and linear motion of objects. The angular velocity sensor (Gyroscope) is used to measure the rotational speed or angular velocity of an object around three axes (X, Y, Z). … Read more

I2C and SPI Bus Analysis and Applications

I2C and SPI Bus Analysis and Applications

” KE CHUANG YANG FAN “ “I2C and SPI Bus Analysis and Applications” ——I2C and SPI Bus Analysis and Applications In order to inspire students’ enthusiasm for technology and help them better understand and learn about serial communication knowledge, the Student Science and Technology Association of the School of Automation and Information Engineering (hereinafter referred … Read more

Hands-On Guide to STM32 I2C Bus

Hands-On Guide to STM32 I2C Bus

●IIC Bus 1. Concept of IIC I²C stands for Inter-Integrated Circuit, using two bidirectional lines: one Serial Data Line (SDA) and one Serial Clock (SCL). SCL: The rising edge inputs data into each EEPROM device; the falling edge drives the EEPROM device to output data (edge-triggered). SDA: The bidirectional data line is an open-drain configuration, … Read more

PyQt5 Example: Raspberry Pi + MPU6050 Data Collection

PyQt5 Example: Raspberry Pi + MPU6050 Data Collection

Click the above“Mechanical and Electronic Engineering Technology” to follow us System Configuration: Raspberry Pi 3B+, Operating System Raspbian-stretch, Python version is python3.5.3 Functional Requirements: Design a QT interface to collect data, with a start collection button that begins data collection when clicked, and a stop button that stops data collection when clicked. The data should … Read more