Arduino Nano and NRF24L01 Wireless Joystick Controller with Battery Power
View and Edit Project In Cirkit Designer
Circuit Documentation
Summary
This document provides a detailed overview of a circuit that includes various components such as an Arduino Nano, NRF24L01 Adapter, Joystick modules, a potentiometer, an LED, a resistor, a rocker switch, a toggle switch, a battery, and an electrolytic capacitor. The circuit is designed to interface with a microcontroller to perform various functions, including reading joystick inputs, controlling an LED, and communicating wirelessly using the NRF24L01 module.
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 Adapter
- Description: An adapter for the NRF24L01 wireless transceiver module.
- Pins: CE, CSN, SCK, MOSI, MISO, IRQ, VCC, GND
Electrolytic Capacitor
- Description: A capacitor with a capacitance of 100,000,000 Farads.
- Pins: -, +
Joystick Module
- Description: A module with a joystick for directional input.
- Pins: SW, VRY, VRX, VCC, GND
Potentiometer
- Description: A variable resistor used to adjust voltage levels.
- Pins: GND, Output, VCC
LED: Two Pin (red)
- Description: A red LED with two pins.
- Pins: cathode, anode
Resistor
- Description: A resistor with a resistance of 200 Ohms.
- Pins: pin1, pin2
Rocker Switch
- Description: A switch that can toggle between two states.
- Pins: output, input
Toggle Switch
- Description: A switch that can toggle between two states.
- Pins: Vcc, Sig, Gnd
Battery
- Description: A power source for the circuit.
- Pins: -, +
Wiring Details
Arduino Nano
- GND: Connected to the GND pins of the Potentiometer, Electrolytic Capacitor, Joystick modules, NRF24L01 Adapter, Toggle Switch, and LED cathode.
- D2: Connected to the Sig pin of the Toggle Switch.
- D7: Connected to the CE pin of the NRF24L01 Adapter.
- D8: Connected to the CSN pin of the NRF24L01 Adapter.
- D11/MOSI: Connected to the MOSI pin of the NRF24L01 Adapter.
- D12/MISO: Connected to the MISO pin of the NRF24L01 Adapter.
- VIN: Connected to the input pin of the Rocker Switch and pin2 of the Resistor.
- 5V: Connected to the VCC pins of the Potentiometer, Electrolytic Capacitor, Joystick modules, and NRF24L01 Adapter.
- A7: Connected to the Output pin of the Potentiometer.
- A3: Connected to the VRX pin of the Joystick module.
- A2: Connected to the VRY pin of the Joystick module.
- A1: Connected to the VRX pin of the second Joystick module.
- A0: Connected to the VRY pin of the second Joystick module.
- D13/SCK: Connected to the SCK pin of the NRF24L01 Adapter.
NRF24L01 Adapter
- GND: Connected to the GND pin of the Arduino Nano.
- CE: Connected to the D7 pin of the Arduino Nano.
- CSN: Connected to the D8 pin of the Arduino Nano.
- SCK: Connected to the D13/SCK 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.
- VCC: Connected to the 5V pin of the Arduino Nano.
Electrolytic Capacitor
- -: Connected to the GND pin of the Arduino Nano.
- +: Connected to the 5V pin of the Arduino Nano.
Joystick Module
- GND: Connected to the GND pin of the Arduino Nano.
- VCC: Connected to the 5V pin of the Arduino Nano.
- VRX: Connected to the A3 pin of the Arduino Nano.
- VRY: Connected to the A2 pin of the Arduino Nano.
Second Joystick Module
- GND: Connected to the GND pin of the Arduino Nano.
- VCC: Connected to the 5V pin of the Arduino Nano.
- VRX: Connected to the A1 pin of the Arduino Nano.
- VRY: Connected to the A0 pin of the Arduino Nano.
Potentiometer
- GND: Connected to the GND pin of the Arduino Nano.
- Output: Connected to the A7 pin of the Arduino Nano.
- VCC: Connected to the 5V pin of the Arduino Nano.
LED: Two Pin (red)
- cathode: Connected to the GND pin of the Arduino Nano.
- anode: Connected to pin1 of the Resistor.
Resistor
- pin1: Connected to the anode of the LED.
- pin2: Connected to the VIN pin of the Arduino Nano.
Rocker Switch
- input: Connected to the VIN pin of the Arduino Nano.
- output: Connected to the + pin of the Battery.
Toggle Switch
- Gnd: Connected to the GND pin of the Arduino Nano.
- Sig: Connected to the D2 pin of the Arduino Nano.
- Vcc: Connected to the 5V pin of the Arduino Nano.
Battery
- -: Connected to the GND pin of the Arduino Nano.
- +: Connected to the output pin of the Rocker Switch.
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:
}
Documentation (documentation.txt)
This document provides a comprehensive overview of the circuit, including the components used, their connections, and the code running on the microcontroller.