Arduino Nano-Based Remote Control System with Joystick and Bluetooth Connectivity
View and Edit Project In Cirkit Designer
Circuit Documentation
Summary
This circuit involves an Arduino Nano microcontroller interfacing with various input and output components, including an analog joystick, pushbutton, resistors, LEDs, a rotary potentiometer, an accelerometer, a Bluetooth module, and a 9V battery. The circuit is designed to read analog and digital inputs, control LEDs, and communicate wirelessly via Bluetooth.
Component List
Adafruit Analog 2-Axis Joystick
- Pins: VCC, XOUT, YOUT, SWITCH, GND
- Description: An analog joystick providing two-axis control.
Pushbutton
- Pins: Pin 1, Pin 2, Pin 3, Pin 4
- Description: A simple pushbutton for digital input.
Resistor (1000 Ohms)
- Pins: pin1, pin2
- Description: A resistor with a resistance of 1000 Ohms.
Resistor (220 Ohms)
- Pins: pin1, pin2
- Description: A resistor with a resistance of 220 Ohms.
Resistor (2000 Ohms)
- Pins: pin1, pin2
- Description: A resistor with a resistance of 2000 Ohms.
LED: Two Pin (red)
- Pins: cathode, anode
- Description: A red LED.
Arduino Nano
- 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
- Description: A microcontroller board based on the ATmega328.
Rotary Potentiometer (10k Ohms)
- Pins: leg1, wiper, leg2
- Description: A rotary potentiometer with a resistance of 10k Ohms.
Adafruit ADXL345
- Pins: VIN, 3.3V, GND, CS, INT1, INT2, SDO/ADDR, SDA/SDIO, SCL
- Description: A 3-axis accelerometer.
9V Battery
- Pins: -, +
- Description: A 9V battery for power supply.
HC-05 Bluetooth Module
- Pins: Key, VCC, GND, TXD, RXD, State
- Description: A Bluetooth module for wireless communication.
Wiring Details
Adafruit Analog 2-Axis Joystick
- VCC connected to Arduino Nano 3V3
- XOUT connected to Arduino Nano A0
- YOUT connected to Arduino Nano A1
- GND connected to Arduino Nano GND
Pushbutton
- Pin 1 connected to Arduino Nano D2 and Resistor (1000 Ohms) pin1
- Pin 4 connected to Arduino Nano 3V3
Resistor (1000 Ohms)
- pin1 connected to Pushbutton Pin 1
- pin2 connected to Arduino Nano GND
Resistor (220 Ohms)
- pin1 connected to LED anode
- pin2 connected to Arduino Nano D4, D5, D6
Resistor (2000 Ohms)
- pin1 connected to Resistor (1000 Ohms) pin2
- pin2 connected to HC-05 Bluetooth Module RXD
LED: Two Pin (red)
- cathode connected to Arduino Nano GND
- anode connected to Resistor (220 Ohms) pin1
Arduino Nano
- 3V3 connected to Adafruit Analog 2-Axis Joystick VCC, Pushbutton Pin 4, Adafruit ADXL345 3.3V, Rotary Potentiometer leg1, HC-05 Bluetooth Module VCC
- A0 connected to Adafruit Analog 2-Axis Joystick XOUT
- A1 connected to Adafruit Analog 2-Axis Joystick YOUT
- A2 connected to Rotary Potentiometer wiper
- A3 connected to Rotary Potentiometer wiper
- A4 connected to Adafruit ADXL345 SDA/SDIO
- A5 connected to Adafruit ADXL345 SCL
- D0/RX connected to HC-05 Bluetooth Module TXD
- D1/TX connected to Resistor (1000 Ohms) pin1
- D2 connected to Pushbutton Pin 1
- D3 connected to Resistor (220 Ohms) pin2
- D4 connected to Resistor (220 Ohms) pin2
- D5 connected to Resistor (220 Ohms) pin2
- D6 connected to Resistor (220 Ohms) pin2
- GND connected to Adafruit Analog 2-Axis Joystick GND, Resistor (1000 Ohms) pin2, 9V Battery -, Adafruit ADXL345 GND, Rotary Potentiometer leg2, LED cathode, HC-05 Bluetooth Module GND
- VIN connected to 9V Battery +
Rotary Potentiometer (10k Ohms)
- leg1 connected to Arduino Nano 3V3
- wiper connected to Arduino Nano A2, A3
- leg2 connected to Arduino Nano GND
Adafruit ADXL345
- 3.3V connected to Arduino Nano 3V3
- GND connected to Arduino Nano GND
- SDA/SDIO connected to Arduino Nano A4
- SCL connected to Arduino Nano A5
9V Battery
- + connected to Arduino Nano VIN
- - connected to Arduino Nano GND
HC-05 Bluetooth Module
- VCC connected to Arduino Nano 3V3
- GND connected to Arduino Nano GND
- TXD connected to Arduino Nano D0/RX
- RXD connected to Resistor (2000 Ohms) pin2
Documented Code
Arduino Nano (Instance 1)
void setup() {
// put your setup code here, to run once:
}
void loop() {
// put your main code here, to run repeatedly:
}
Arduino Nano (Instance 2)
void setup() {
// put your setup code here, to run once:
}
void loop() {
// put your main code here, to run repeatedly:
}
This documentation provides a comprehensive overview of the circuit, including a summary, detailed component list, wiring details, and the code for the microcontrollers.