Circuit Documentation
Summary
This document provides a detailed overview of a circuit that includes an STM32F4 BlackPill microcontroller, a GPS NEO 6M module, an MPU-6050 accelerometer and gyroscope, a BMP280 barometric pressure sensor, and an HMC5883L compass. The circuit is designed to interface these components with the microcontroller for data acquisition and processing.
Component List
STM32F4 BlackPill
- Description: A powerful microcontroller board based on the STM32F4 series.
- Pins: 5V, GND, 3.3V, B10, B2, B1, B0, A7, A6, A5, A4, A3, A2, A1, A0, R, C15, C14, C13, VB, B9, B8, B7, B6, B5, B4, B3, A15, A12, A11, A10, A9, A8, B15, B14, B13, B12, SCK, DIO
GPS NEO 6M
- Description: A GPS module for obtaining location data.
- Pins: VCC, RX, TX, GND
MPU-6050
- Description: A 6-axis accelerometer and gyroscope.
- Pins: VCC, GND, SCL, SDA, XDA, XCL, AD0, INT
BMP280
- Description: A barometric pressure sensor.
- Pins: SDO, CSB, SDA, SCL, GND, VCC
HMC5883L Compass
- Description: A 3-axis digital compass.
- Pins: DRDY, SDA, SCL, GND, VCC
Wiring Details
STM32F4 BlackPill
- B9: Connected to SDA of BMP280, HMC5883L compass, and MPU-6050
- B8: Connected to SCL of BMP280, HMC5883L compass, and MPU-6050
- A10: Connected to TX of GPS NEO 6M
- A9: Connected to RX of GPS NEO 6M
GPS NEO 6M
- TX: Connected to A10 of STM32F4 BlackPill
- RX: Connected to A9 of STM32F4 BlackPill
MPU-6050
- SDA: Connected to B9 of STM32F4 BlackPill
- SCL: Connected to B8 of STM32F4 BlackPill
BMP280
- SDA: Connected to B9 of STM32F4 BlackPill
- SCL: Connected to B8 of STM32F4 BlackPill
HMC5883L Compass
- SDA: Connected to B9 of STM32F4 BlackPill
- SCL: Connected to B8 of STM32F4 BlackPill
Documented Code
STM32F4 BlackPill Code
void setup() {
// put your setup code here, to run once:
}
void loop() {
// put your main code here, to run repeatedly:
}
HMC5883L Compass Code
void setup() {
// put your setup code here, to run once:
}
void loop() {
// put your main code here, to run repeatedly:
}
This documentation provides a comprehensive overview of the circuit, including the components used, their wiring details, and the code for the microcontrollers.
