Raspberry Pi 5-Based Multi-Sensor IMU System with MPU-6050 and LSM303c
View and Edit Project In Cirkit Designer
Circuit Documentation
Summary
This document provides a detailed overview of a circuit that integrates various sensors and a Raspberry Pi 5 microcontroller. The circuit includes an MPU-6050 accelerometer and gyroscope, an LSM303c 6DOF IMU, and other components. The Raspberry Pi 5 serves as the central microcontroller, interfacing with the sensors and other peripherals.
Component List
Raspberry Pi 5
- Description: A powerful microcontroller with multiple GPIO pins, USB ports, and other interfaces.
- Pins: Type-C, Micro HDMI 1, Micro HDMI 2, Camera 1, Camera 2, PoE, Fan, PCIe, USB 3.0, USB 2.0, Ethernet, 5V, GND, 3.3v, GPIO 14, GPIO 15, GPIO 18, GPIO 23, GPIO 24, GPIO 25, GPIO 8, GPIO 7, GPIO 1, GPIO 12, GPIO 16, GPIO 20, GPIO 21, GPIO 2, GPIO 3, GPIO 4, GPIO 17, GPIO 27, GPIO 22, GPIO 10, GPIO 9, GPIO 11, GPIO 0, GPIO 5, GPIO 6, GPIO 13, GPIO 19, GPIO 26
LSM303c 6DOF IMU
- Description: A 6 Degrees of Freedom Inertial Measurement Unit.
- Pins: GND, VDD_IO, SDA/SDI/SDO, SCL/SCLK, INT_XL, DRDY_MAG, !CS_XL, VCC, !CS_MAG, INT_MAG
MPU-6050
- Description: A 3-axis accelerometer and 3-axis gyroscope.
- Pins: VCC, GND, SCL, SDA, XDA, XCL, AD0, INT
Adafruit APDS-9960
- Description: A sensor that provides ambient light, RGB color, proximity, and gesture detection.
- Pins: VIN, 3.3V, GND, SCL, SDA, INT
BNO055
- Description: A 9-axis absolute orientation sensor.
- Pins: Vin, 3vo, GND, SDA, SCL, RST, PS0, PS1, INT, ADR
PIR Sensor
- Description: A passive infrared sensor used for motion detection.
- Pins: GND, VCC, Data
Power Supply
- Description: Provides power to the circuit.
- Pins: +, -
3D DEPTH CAMERA
- Description: A camera that provides depth information.
- Pins: USB PORT
Wiring Details
Raspberry Pi 5
- 5V is connected to VCC of MPU-6050.
- GND is connected to GND of MPU-6050.
- GPIO 21 is connected to SDA of MPU-6050.
- GPIO 22 is connected to SCL of MPU-6050.
- GND is connected to GND of LSM303c 6DOF IMU.
- 3.3v is connected to VCC of LSM303c 6DOF IMU.
LSM303c 6DOF IMU
- GND is connected to GND of Raspberry Pi 5.
- VCC is connected to 3.3v of Raspberry Pi 5.
MPU-6050
- VCC is connected to 5V of Raspberry Pi 5.
- GND is connected to GND of Raspberry Pi 5.
- SDA is connected to GPIO 21 of Raspberry Pi 5.
- SCL is connected to GPIO 22 of Raspberry Pi 5.
Documented Code
Raspberry Pi 5 Code
void setup() {
// put your setup code here, to run once:
}
void loop() {
// put your main code here, to run repeatedly:
}
Adafruit APDS-9960 Code
void setup() {
// put your setup code here, to run once:
}
void loop() {
// put your main code here, to run repeatedly:
}
This document provides a comprehensive overview of the circuit, including the components used, their wiring details, and the code for the microcontrollers.