This circuit is designed to interface an Arduino UNO with various components including an IR sensor, a buzzer, a KY-019 Relay module, multiple LEDs, a gearmotor, and power sources. The Arduino UNO acts as the central controller, managing input from the IR sensor and controlling the state of the LEDs, the buzzer, and the relay, which in turn controls the gearmotor. The circuit is powered by 5V batteries connected to the components requiring power.
Vin
connected to the positive terminal of the 5V BatteryGND
connected to the negative terminal of the 5V BatteryD5
connected to the anodes of the LEDs and the positive pin of the buzzerD7
connected to the S
pin of the KY-019 Relay moduleD6
connected to the out
pin of the IR sensorvcc
connected to the positive terminal of the 5V Batterygnd
connected to the negative terminal of the 5V Batteryout
connected to D6
on the Arduino UNOPIN
connected to D5
on the Arduino UNOGND
connected to the negative terminal of the 5V Battery5V
connected to the positive terminal of the 5V BatteryGND
connected to the negative terminal of the 5V BatteryS
connected to D7
on the Arduino UNONC
connected to PIN2
of the Gearmotor DC Wheels RightCOM
connected to the negative terminal of a separate 5V BatteryPIN1
connected to the positive terminal of a separate 5V BatteryPIN2
connected to the NC
pin of the KY-019 Relay moduleanode
of each LED connected to D5
on the Arduino UNOcathode
of each LED connected to the negative terminal of the 5V Battery+
terminal connected to Vin
on the Arduino UNO, 5V
on the KY-019 Relay module, and vcc
on the IR sensor-
terminal connected to GND
on the Arduino UNO, GND
on the KY-019 Relay module, gnd
on the IR sensor, cathode
on each LED, and GND
on the buzzervoid setup() {
// put your setup code here, to run once:
}
void loop() {
// put your main code here, to run repeatedly:
}
(No additional documentation provided for the code)
This concludes the documentation for the provided circuit design. The circuit is designed to be powered by 5V batteries and controlled by the Arduino UNO, which interacts with the IR sensor, LEDs, buzzer, and relay module to perform its intended functions.