Arduino UNO-Based Wireless Sensor System with MPU6050 and NRF24L01
View and Edit Project In Cirkit Designer
Circuit Documentation
Summary
This document provides a detailed overview of a circuit that includes an Arduino UNO microcontroller, an InvenSense MPU6050 accelerometer and gyroscope, an NRF24L01 wireless transceiver, and a 9V battery. The circuit is designed to interface the MPU6050 and NRF24L01 with the Arduino UNO, powered by a 9V battery.
Component List
Arduino UNO
- Description: A microcontroller board based on the ATmega328P.
- Pins: UNUSED, IOREF, Reset, 3.3V, 5V, GND, Vin, A0, A1, A2, A3, A4, A5, SCL, SDA, AREF, D13, D12, D11, D10, D9, D8, D7, D6, D5, D4, D3, D2, D1, D0
InvenSense MPU6050
- Description: A 6-axis motion tracking device that combines a 3-axis gyroscope and a 3-axis accelerometer.
- Pins: VCC, GND, SCL, SDA, XDA, XCL, AD0, INT
NRF24L01
- Description: A wireless transceiver module for low-power, high-speed communication.
- Pins: GND, VCC, CE, CSN, SCK, MOSI, MISO, IRO
9V Battery
- Description: A standard 9V battery used to power the circuit.
- Pins: -, +
Wiring Details
Arduino UNO
- 3.3V connected to NRF24L01 VCC
- 5V connected to InvenSense MPU6050 VCC
- GND connected to InvenSense MPU6050 GND
- GND connected to 9V Battery -
- Vin connected to 9V Battery +
- A4 connected to InvenSense MPU6050 SCL
- A5 connected to InvenSense MPU6050 SDA
- GND connected to NRF24L01 GND
- D13 connected to NRF24L01 SCK
- D12 connected to NRF24L01 MISO
- D11 connected to NRF24L01 MOSI
- D10 connected to NRF24L01 CSN
- D9 connected to NRF24L01 CE
InvenSense MPU6050
- VCC connected to Arduino UNO 5V
- GND connected to Arduino UNO GND
- SCL connected to Arduino UNO A4
- SDA connected to Arduino UNO A5
NRF24L01
- VCC connected to Arduino UNO 3.3V
- GND connected to Arduino UNO GND
- SCK connected to Arduino UNO D13
- MISO connected to Arduino UNO D12
- MOSI connected to Arduino UNO D11
- CSN connected to Arduino UNO D10
- CE connected to Arduino UNO D9
9V Battery
- - connected to Arduino UNO GND
- + connected to Arduino UNO Vin
Documented Code
Arduino UNO Code
void setup() {
// put your setup code here, to run once:
}
void loop() {
// put your main code here, to run repeatedly:
}
This code is a basic template for the Arduino UNO, with empty setup() and loop() functions. The setup() function runs once when the microcontroller is powered on or reset, and the loop() function runs continuously after setup() has completed. You can add your specific initialization and main code logic within these functions.