This circuit is designed to control multiple DC motors and LEDs using an Arduino Nano as the central microcontroller. The circuit includes relay modules to switch the motors and LEDs on and off, a step-down buck converter to regulate voltage, a pushbutton to trigger actions, and resistors to limit current. The Arduino Nano interfaces with the relay modules to control the connected devices based on the input from the pushbutton.
D3
connected to Relay 4 Channel 5v IN1
D4
connected to Relay 4 Channel 5v IN2
D5
connected to Relay 4 Channel 5v IN3
D6
connected to Relay 4 Channel 5v IN4
D7
connected to Pushbutton Pin 2
through a 1k Ohm ResistorD10
connected to Two Channel Relay 5v IN1
VIN
connected to Step down Buck Converter OUT +
GND
connected to common ground netVCC
connected to Step down Buck Converter OUT +
GND
connected to common ground netCOM1
to COM4
connected to respective DC Motor pin 1
NO1
to NO4
connected to 12v Battery +
NC1
to NC4
connected to 12v Battery -
OUT +
connected to Arduino Nano VIN
, Two Channel Relay 5v VCC
, and Relay 4 Channel 5v VCC
OUT - GND
connected to common ground netPin 2
connected to Arduino Nano D7
through a 1k Ohm ResistorPin 3
connected to Step down Buck Converter OUT +
Pin 2
D7
IN1
connected to Arduino Nano D10
VCC
connected to Step down Buck Converter OUT +
GND
connected to common ground netC1
connected to 12v Battery +
pin 1
of each motor connected to respective COM
pin on Relay 4 Channel 5vpin 2
of each motor connected to respective COM
pin on Relay 4 Channel 5v+
connected to NO
pins on Relay 4 Channel 5v and C1
on Two Channel Relay 5v-
connected to NC
pins on Relay 4 Channel 5vvoid setup() {
// put your setup code here, to run once:
}
void loop() {
// put your main code here, to run repeatedly:
}
Note: The provided code is a template and does not contain any functional code to control the circuit. The user must implement the control logic within the setup()
and loop()
functions.