Arduino Nano-Based Battery-Powered Smart RGB LED Controller with IR Receiver and LCD Display
View and Edit Project In Cirkit Designer
Circuit Documentation
Summary
This circuit involves an Arduino Nano microcontroller interfacing with various components including an RGB LED, nMOS transistors, resistors, an IR receiver, a 16x2 I2C LCD, a solenoid, a DC motor, a TP4056 battery charger, a polymer lithium-ion battery, a rocker switch, a pushbutton, diodes, and an MT3608 DC-DC converter. The circuit is designed to control the RGB LED, solenoid, and motor, display information on the LCD, and receive IR signals.
Component List
Arduino Nano
- Description: 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
RGB LED (Wokwi compatible)
- Description: RGB LED with common anode.
- Pins: R, COM, G, B
nMOS Transistor (MOSFET)
- Description: n-channel MOSFET transistor.
- Pins: gate, drain, source
Resistor
- Description: Resistor with various resistance values.
- Pins: pin1, pin2
- Properties:
- Resistance: 220 Ohms
- Resistance: 1000 Ohms
- Resistance: 10000 Ohms
VS1838B IR Receiver
- Description: Infrared receiver module.
- Pins: OUT, GND, VCC
16x2 I2C LCD
- Description: 16x2 character LCD with I2C interface.
- Pins: GND, VCC, SDA, SCL
TP4056
- Description: Lithium battery charger module.
- Pins: OUT-, B-, B+, OUT+, IN-, IN+
DC Mini Metal Gear Motor
- Description: Small DC motor with metal gears.
- Pins: IN1, IN2
Polymer Lithium Ion Battery - Generic
- Description: Rechargeable lithium-ion battery.
- Pins: GND, VCC
Solenoid
- Description: Electromagnetic solenoid.
- Pins: pin1, pin2
Diode
- Description: General-purpose diode.
- Pins: cathode, anode
MT3608
- Description: DC-DC step-up converter.
- Pins: VOUT+, VIN+, VOUT-, VIN-
Rocker Switch (SPST)
- Description: Single-pole single-throw rocker switch.
- Pins: 1, 2
Pushbutton
- Description: Momentary pushbutton switch.
- Pins: Pin 2, Pin 1, Pin 3, Pin 4
LM2596
- Description: DC-DC buck converter.
- Pins: IN, OUT
Wiring Details
Arduino Nano
- D13/SCK to nMOS Transistor (MOSFET) gate
- D12/MISO to Resistor pin1
- D11/MOSI to Resistor pin1
- D8 to Pushbutton Pin 1
- D7 to Resistor pin2
- D6 to Resistor pin2
- A4 to 16x2 I2C LCD SDA
- D5 to Resistor pin1
- A5 to 16x2 I2C LCD SCL
- D4 to Resistor pin2
RGB LED (Wokwi compatible)
- COM to VS1838B IR Receiver VCC, 16x2 I2C LCD VCC, MT3608 VOUT+
- R to Resistor pin2
- G to Resistor pin1
- B to Resistor pin1
nMOS Transistor (MOSFET)
- gate to Arduino Nano D13/SCK
- source to VS1838B IR Receiver GND, LM2596 OUT, MT3608 VOUT-, Pushbutton Pin 3, TP4056 OUT-, MT3608 VIN-
- drain to DC Mini Metal Gear Motor IN2
Resistor
- pin1 to Arduino Nano D12/MISO
- pin1 to Arduino Nano D11/MOSI
- pin2 to Arduino Nano D7
- pin2 to Arduino Nano D6
- pin1 to Arduino Nano D5
- pin2 to Arduino Nano D4
- pin1 to VS1838B IR Receiver OUT
- pin2 to nMOS Transistor (MOSFET) gate
- pin2 to nMOS Transistor (MOSFET) gate
VS1838B IR Receiver
- VCC to RGB LED (Wokwi compatible) COM, 16x2 I2C LCD VCC, MT3608 VOUT+
- GND to nMOS Transistor (MOSFET) source, LM2596 OUT, MT3608 VOUT-, Pushbutton Pin 3, TP4056 OUT-, MT3608 VIN-
- OUT to Resistor pin1
16x2 I2C LCD
- SDA to Arduino Nano A4
- SCL to Arduino Nano A5
- VCC to VS1838B IR Receiver VCC, RGB LED (Wokwi compatible) COM, MT3608 VOUT+
- GND to nMOS Transistor (MOSFET) source, LM2596 OUT, MT3608 VOUT-, Pushbutton Pin 3, TP4056 OUT-, MT3608 VIN-
TP4056
- OUT- to nMOS Transistor (MOSFET) source, VS1838B IR Receiver GND, LM2596 OUT, MT3608 VOUT-, Pushbutton Pin 3, MT3608 VIN-
- OUT+ to Rocker Switch (SPST) 1
- B- to Polymer Lithium Ion Battery - Generic GND
- B+ to Polymer Lithium Ion Battery - Generic VCC
DC Mini Metal Gear Motor
- IN2 to nMOS Transistor (MOSFET) drain
- IN1 to LM2596 OUT
Polymer Lithium Ion Battery - Generic
- GND to TP4056 B-
- VCC to TP4056 B+
Solenoid
- pin2 to Diode cathode
- pin1 to Diode anode
Diode
- cathode to Solenoid pin2
- anode to nMOS Transistor (MOSFET) drain, Solenoid pin1
MT3608
- VOUT+ to VS1838B IR Receiver VCC, RGB LED (Wokwi compatible) COM, 16x2 I2C LCD VCC
- VIN+ to Rocker Switch (SPST) 2
- VOUT- to nMOS Transistor (MOSFET) source, VS1838B IR Receiver GND, LM2596 OUT, Pushbutton Pin 3, TP4056 OUT-, MT3608 VIN-
- VIN- to nMOS Transistor (MOSFET) source, VS1838B IR Receiver GND, LM2596 OUT, Pushbutton Pin 3, TP4056 OUT-
Rocker Switch (SPST)
- 1 to TP4056 OUT+
- 2 to MT3608 VIN+
Pushbutton
- Pin 1 to Arduino Nano D8
- Pin 3 to nMOS Transistor (MOSFET) source, VS1838B IR Receiver GND, LM2596 OUT, MT3608 VOUT-, TP4056 OUT-, MT3608 VIN-