

This circuit is designed to control a 12V geared motor and an LED bulb using an Arduino UNO microcontroller. The circuit includes an LCD screen for display purposes, two IR sensors for input, a 5V relay to switch the AC-powered LED bulb, and an L298N motor driver to control the motor. The system is powered by a 12V battery, and a rocker switch is used to control the power supply to the motor driver. The Arduino UNO manages the inputs and outputs, interfacing with the IR sensors, the LCD screen, and controlling the relay and motor driver.
5V pin connected to the VCC of the relay, IR sensor, LCD screen, and motor driverGND pin connected to the GND of the relay, IR sensor, LCD screen, motor driver, and batteryA4 (SDA) pin connected to the SDA pin of the LCD screenA5 (SCL) pin connected to the SCL pin of the LCD screenD11 pin connected to the ENA pin of the motor driverD10 pin connected to the In pin of the relayD9 pin connected to the VCC pin of the IR sensorD8 pin connected to the OUT pin of the IR sensorD7 pin connected to the IN2 pin of the motor driverD6 pin connected to the IN1 pin of the motor driverSDA pin connected to the SDA (A4) pin of the Arduino UNOSCL pin connected to the SCL (A5) pin of the Arduino UNOVCC pin connected to the 5V pin of the Arduino UNOGND pin connected to the GND pin of the Arduino UNOVCC pin connected to the 5V pin of the Arduino UNOGND pin connected to the GND pin of the Arduino UNOOUT pin connected to the D8 pin of the Arduino UNOTerminal 1 connected to the OUT1 pin of the motor driverTerminal 2 connected to the OUT2 pin of the motor driverENA pin connected to the D11 pin of the Arduino UNOIN1 pin connected to the D6 pin of the Arduino UNOIN2 pin connected to the D7 pin of the Arduino UNOOUT1 and OUT2 pins connected to the terminals of the 12V geared motor12V pin connected to the 2 pin of the rocker switchGND pin connected to the GND pin of the Arduino UNOVCC pin connected to the 5V pin of the Arduino UNOGND pin connected to the GND pin of the Arduino UNOIn pin connected to the D10 pin of the Arduino UNOCommon terminal connected to the + pin of the LED bulbNormally Closed connected to the +ve pin of the AC supply+ pin connected to the 1 pin of the rocker switch- pin connected to the GND pin of the Arduino UNO+ve pin connected to the Normally Closed pin of the relay-ve pin connected to the - pin of the LED bulb+ pin connected to the Common terminal pin of the relay- pin connected to the -ve pin of the AC supply1 pin connected to the + pin of the battery2 pin connected to the 12V pin of the motor drivervoid 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. It needs to be populated with the logic to control the relay, read the IR sensors, display data on the LCD, and control the motor driver.