Arduino Nano Joystick-Controlled Bluetooth Module with Battery Power
View and Edit Project In Cirkit Designer
Circuit Documentation
Summary
This circuit consists of an Arduino Nano microcontroller, a KY-023 Dual Axis Joystick Module, an HC-05 Bluetooth Module, a 18650 Li-Ion battery, and a rocker switch. The circuit is designed to read joystick inputs and transmit them via Bluetooth. The Arduino Nano serves as the central controller, interfacing with the joystick and Bluetooth module, while the 18650 Li-Ion battery provides power to the entire circuit.
Component List
KY-023 Dual Axis Joystick Module
- Description: A joystick module that provides analog outputs for X and Y axes and a digital output for the switch.
- Pins: GND, +5V, VRx, VRy, SW
Arduino Nano
- Description: A small, complete, and breadboard-friendly microcontroller 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
HC-05 Bluetooth Module
- Description: A Bluetooth module used for wireless communication.
- Pins: Key, VCC, TXD, RXD, State, GND
18650 Li-Ion Battery
- Description: A rechargeable lithium-ion battery.
- Pins: Positive, Negative
Rocker Switch
- Description: A switch used to control the power supply to the circuit.
- Pins: Output, Input
Wiring Details
KY-023 Dual Axis Joystick Module
- GND connected to GND of Arduino Nano, Negative of 18650 Li-Ion, and GND of HC-05 Bluetooth Module
- +5V connected to 5V of Arduino Nano and VCC of HC-05 Bluetooth Module
- VRx connected to A3 of Arduino Nano
- VRy connected to A4 of Arduino Nano
Arduino Nano
- GND connected to GND of KY-023 Dual Axis Joystick Module, Negative of 18650 Li-Ion, and GND of HC-05 Bluetooth Module
- 5V connected to +5V of KY-023 Dual Axis Joystick Module and VCC of HC-05 Bluetooth Module
- A3 connected to VRx of KY-023 Dual Axis Joystick Module
- A4 connected to VRy of KY-023 Dual Axis Joystick Module
- D2 connected to TXD of HC-05 Bluetooth Module
- D3 connected to RXD of HC-05 Bluetooth Module
- VIN connected to Output of Rocker Switch
HC-05 Bluetooth Module
- GND connected to GND of Arduino Nano, Negative of 18650 Li-Ion, and GND of KY-023 Dual Axis Joystick Module
- VCC connected to 5V of Arduino Nano and +5V of KY-023 Dual Axis Joystick Module
- TXD connected to D2 of Arduino Nano
- RXD connected to D3 of Arduino Nano
18650 Li-Ion Battery
- Negative connected to GND of Arduino Nano, GND of KY-023 Dual Axis Joystick Module, and GND of HC-05 Bluetooth Module
- Positive connected to Input of Rocker Switch
Rocker Switch
- Output connected to VIN of Arduino Nano
- Input connected to Positive of 18650 Li-Ion Battery
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:
}
Additional Documentation (documentation.txt)
This documentation provides a comprehensive overview of the circuit, including a summary, detailed component list, wiring details, and the code used in the microcontroller.