Circuit Documentation
Summary
This document provides a detailed overview of a circuit that includes an Arduino Nano as the central microcontroller, interfaced with various components such as an LED, a resistor, a rocker switch, an NRF24L01 wireless communication module, an MPU6050 accelerometer and gyroscope module, and a power source (18650 battery in a holder). The circuit is designed to control an LED, read sensor data from the MPU6050, and communicate wirelessly using the NRF24L01 module. The Arduino Nano is powered by the 18650 battery, and it also provides power to the NRF24L01 and MPU6050 modules.
Component List
- Arduino Nano: A compact microcontroller board based on the ATmega328P, featuring digital and analog I/O pins.
- LED: A light-emitting diode used as an indicator or for illumination.
- Resistor (1000 Ohms): A passive component used to limit current, in this case, to the LED.
- GND: Ground reference points in the circuit.
- Rocker Switch: A switch used to control the flow of current in a circuit.
- NRF24L01: A wireless communication module operating in the 2.4 GHz band.
- MPU6050: A motion-tracking device with a 3-axis gyroscope and a 3-axis accelerometer.
- 18650 in Holder: A rechargeable lithium-ion battery used to power the circuit.
- Vcc: Voltage supply points in the circuit.
Wiring Details
Arduino Nano
- D2: Connected to the input of the rocker switch.
- D3: Connected to the positive pin of the LED through a resistor.
- D7: Connected to the CE pin of the NRF24L01 module.
- D8: Connected to the CSN pin of the NRF24L01 module.
- D11/MOSI: Connected to the MOSI pin of the NRF24L01 module.
- D12/MISO: Connected to the MISO pin of the NRF24L01 module.
- D13/SCK: Connected to the SCK pin of the NRF24L01 module.
- A4: Connected to the SDA pin of the MPU6050 module.
- A5: Connected to the SCL pin of the MPU6050 module.
- VIN: Connected to the VCC pin of the 18650 battery holder.
- GND: Connected to the ground reference points in the circuit.
- 3V3: Provides power to the VCC (3V) pin of the NRF24L01 module.
LED
- + (Anode): Connected to the D3 pin of the Arduino Nano through a resistor.
- - (Cathode): Connected to the ground reference points in the circuit.
Resistor (1000 Ohms)
- Pin1: Connected to the ground reference points in the circuit.
- Pin2: Connected to the negative pin of the LED.
Rocker Switch
- Input: Connected to the D2 pin of the Arduino Nano.
- Output: Connected to the ground reference points in the circuit.
NRF24L01
- CE: Connected to the D7 pin of the Arduino Nano.
- CSN: Connected to the D8 pin of the Arduino Nano.
- MOSI: Connected to the D11/MOSI pin of the Arduino Nano.
- MISO: Connected to the D12/MISO pin of the Arduino Nano.
- SCK: Connected to the D13/SCK pin of the Arduino Nano.
- VCC (3V): Powered by the 3V3 pin of the Arduino Nano.
- GND: Connected to the ground reference points in the circuit.
MPU6050
- SCL: Connected to the A5 pin of the Arduino Nano.
- SDA: Connected to the A4 pin of the Arduino Nano.
- VCC: Powered by the Vcc supply points in the circuit.
- GND: Connected to the ground reference points in the circuit.
18650 in Holder
- VCC: Provides power to the VIN pin of the Arduino Nano.
- GND: Connected to the ground reference points in the circuit.
Documented Code
Arduino Nano Code (sketch.ino)
void setup() {
// put your setup code here, to run once:
}
void loop() {
// put your main code here, to run repeatedly:
}
This code is a template for the Arduino Nano and does not contain any functional code. It provides the basic structure for an Arduino sketch with setup() and loop() functions, where initialization code is placed in setup() and the main code that runs repeatedly is placed in loop(). Additional code should be added to control the LED, read data from the MPU6050, and handle wireless communication with the NRF24L01 module.
