Circuit Documentation
Summary
This circuit involves an Arduino Nano microcontroller interfacing with a 4-channel relay module, an IR receiver, an LED, a 7805 voltage regulator, a 18650 Li-Ion battery, and a rocker switch. The Arduino Nano controls the relays and receives input from the IR receiver. The LED is used as an indicator. The 7805 voltage regulator ensures a stable 5V supply from the 18650 Li-Ion battery, which is controlled by the rocker switch.
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
Relay 4 Channel 5v
- Description: A relay module that allows control of high voltage devices.
- Pins: GND, IN1, IN2, IN3, IN4, VCC, COM1, COM2, COM3, COM4, NO1, NO2, NO3, NO4, NC1, NC2, NC3, NC4
IR Receiver
- Description: A device that receives infrared signals and converts them to electrical signals.
- Pins: DATA, VCC, GND
7805 Voltage Regulator
- Description: A voltage regulator that outputs a stable 5V.
- Pins: Vin, Gnd, Vout
18650 Li-Ion Battery
- Description: A rechargeable lithium-ion battery.
- Pins: Positive, Negative
Rocker Switch
- Description: A switch that can toggle between two states.
- Pins: 1, 2
LED: Two Pin (white)
- Description: A white LED with two pins.
- Pins: cathode, anode
Wiring Details
Arduino Nano
- D2 connected to Relay 4 Channel 5v IN1
- D3 connected to Relay 4 Channel 5v IN2
- D4 connected to Relay 4 Channel 5v IN3
- D5 connected to Relay 4 Channel 5v IN4
- D6 connected to IR Receiver DATA
- D7 connected to LED: Two Pin (white) anode
- VIN connected to 7805 Vout and Relay 4 Channel 5v VCC
- GND connected to IR Receiver GND, 7805 Gnd, 18650 Li-Ion Negative, LED: Two Pin (white) cathode, and Relay 4 Channel 5v GND
- 5V connected to IR Receiver VCC
Relay 4 Channel 5v
- IN1 connected to Arduino Nano D2
- IN2 connected to Arduino Nano D3
- IN3 connected to Arduino Nano D4
- IN4 connected to Arduino Nano D5
- VCC connected to Arduino Nano VIN and 7805 Vout
- GND connected to Arduino Nano GND, IR Receiver GND, 7805 Gnd, 18650 Li-Ion Negative, and LED: Two Pin (white) cathode
IR Receiver
- DATA connected to Arduino Nano D6
- VCC connected to Arduino Nano 5V
- GND connected to Arduino Nano GND, 7805 Gnd, 18650 Li-Ion Negative, LED: Two Pin (white) cathode, and Relay 4 Channel 5v GND
7805 Voltage Regulator
- Vin connected to Rocker Switch 2
- Gnd connected to Arduino Nano GND, IR Receiver GND, 18650 Li-Ion Negative, LED: Two Pin (white) cathode, and Relay 4 Channel 5v GND
- Vout connected to Arduino Nano VIN and Relay 4 Channel 5v VCC
18650 Li-Ion Battery
- Positive connected to Rocker Switch 1
- Negative connected to Arduino Nano GND, IR Receiver GND, 7805 Gnd, LED: Two Pin (white) cathode, and Relay 4 Channel 5v GND
Rocker Switch
- 1 connected to 18650 Li-Ion Positive
- 2 connected to 7805 Vin
LED: Two Pin (white)
- anode connected to Arduino Nano D7
- cathode connected to Arduino Nano GND, IR Receiver GND, 7805 Gnd, 18650 Li-Ion Negative, and Relay 4 Channel 5v GND
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 documentation provides a comprehensive overview of the circuit, including a summary, detailed component list, wiring details, and the code used in the Arduino Nano.
