Battery-Powered Arduino Nano with NRF24L01 and MPU-6050 for Wireless Motion Sensing
View and Edit Project In Cirkit Designer
Circuit Documentation
Summary
This document provides a detailed overview of a circuit that includes an Arduino Nano, an NRF24L01 wireless module, an MPU-6050 accelerometer and gyroscope, and a 18650 Li-Ion battery. The document includes a list of components, wiring details, and the embedded code used in the microcontroller.
Component List
Arduino Nano
- Description: A small, complete, and breadboard-friendly board based on the ATmega328P.
- Pins: D1/TX, D0/RX, RESET, GND, D2, D3, D4, D5, D6, D7, D8, D9, D10, D11/MOSI, D12/MISO, VIN, 5V, A7, A6, A5, A4, A3, A2, A1, A0, AREF, 3V3, D13/SCK
NRF24L01
- Description: A wireless transceiver module for low-power, high-speed communication.
- Pins: IRQ (not used), MOSI, CSN, VCC (3V), GND, CE, SCK, MISO
MPU-6050
- 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
18650 Li-Ion
- Description: A rechargeable lithium-ion battery commonly used in portable electronics.
- Pins: Positive, Negative
Wiring Details
Arduino Nano
- D11/MOSI connected to NRF24L01 MOSI
- D8 connected to NRF24L01 CSN
- 3V3 connected to NRF24L01 VCC (3V)
- D7 connected to NRF24L01 CE
- D13/SCK connected to NRF24L01 SCK
- D12/MISO connected to NRF24L01 MISO
- 5V connected to MPU-6050 VCC
- A5 connected to MPU-6050 SCL
- A4 connected to MPU-6050 SDA
- VIN connected to 18650 Li-Ion Positive
NRF24L01
- MOSI connected to Arduino Nano D11/MOSI
- CSN connected to Arduino Nano D8
- VCC (3V) connected to Arduino Nano 3V3
- GND connected to MPU-6050 GND and 18650 Li-Ion Negative
- CE connected to Arduino Nano D7
- SCK connected to Arduino Nano D13/SCK
- MISO connected to Arduino Nano D12/MISO
MPU-6050
- VCC connected to Arduino Nano 5V
- GND connected to NRF24L01 GND and 18650 Li-Ion Negative
- SCL connected to Arduino Nano A5
- SDA connected to Arduino Nano A4
18650 Li-Ion
- Positive connected to Arduino Nano VIN
- Negative connected to NRF24L01 GND and MPU-6050 GND
Code Documentation
Arduino Nano 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 Nano. The setup() function is called once when the program starts and is used to initialize variables, pin modes, start using libraries, etc. The loop() function runs continuously after the setup() function has completed.
This document provides a comprehensive overview of the circuit, including the components used, their wiring, and the embedded code. This should serve as a useful reference for understanding and replicating the circuit.