Battery-Powered Arduino Nano with MPU-6050 and NRF24L01 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 MPU-6050 accelerometer and gyroscope, an NRF24L01 wireless transceiver, and a Li-ion battery. The document covers the components used, their wiring details, and the embedded code running on the Arduino Nano.
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
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
NRF24L01
- Description: A wireless transceiver module for low-power, high-speed communication.
- Pins: IRQ (not used), MOSI, CSN, VCC (3V), GND, CE, SCK, MISO
Li-ion Battery 18650-2000mAh 3.7V 7.4WH
- Description: A rechargeable lithium-ion battery.
- Pins: +, -
Wiring Details
Arduino Nano
- 5V: Connected to VCC of MPU-6050 and VCC (3V) of NRF24L01
- GND: Connected to GND of MPU-6050, GND of NRF24L01, and - of Li-ion battery
- A5: Connected to SCL of MPU-6050
- A4: Connected to SDA of MPU-6050
- D8: Connected to CE of NRF24L01
- D9: Connected to CSN of NRF24L01
- D11/MOSI: Connected to MOSI of NRF24L01
- D12/MISO: Connected to MISO of NRF24L01
- D13/SCK: Connected to SCK of NRF24L01
MPU-6050
- VCC: Connected to 5V of Arduino Nano
- GND: Connected to GND of Arduino Nano
- SCL: Connected to A5 of Arduino Nano
- SDA: Connected to A4 of Arduino Nano
NRF24L01
- VCC (3V): Connected to 5V of Arduino Nano
- GND: Connected to GND of Arduino Nano
- CE: Connected to D8 of Arduino Nano
- CSN: Connected to D9 of Arduino Nano
- MOSI: Connected to D11/MOSI of Arduino Nano
- MISO: Connected to D12/MISO of Arduino Nano
- SCK: Connected to D13/SCK of Arduino Nano
Li-ion Battery 18650-2000mAh 3.7V 7.4WH
- +: Connected to 5V of Arduino Nano
- -: Connected to GND of Arduino Nano
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 where you initialize your components and settings, and the loop() function is where the main logic of your program runs repeatedly.
Additional Documentation
The additional documentation file is empty and can be used to add further details or instructions as needed.