Cirkit Designer Logo
Cirkit Designer
Your all-in-one circuit design IDE
Home / 
Project Documentation

Arduino UNO-Based Automation System with IR Sensor and Relay Control

Image of Arduino UNO-Based Automation System with IR Sensor and Relay Control

Circuit Documentation

Summary of the Circuit

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.

Component List

Arduino UNO

  • Microcontroller board based on the ATmega328P
  • It has 14 digital input/output pins, 6 analog inputs, a 16 MHz quartz crystal, a USB connection, a power jack, an ICSP header, and a reset button.

IR Sensor

  • An infrared sensor capable of detecting obstacles in its proximity
  • Typically has a digital output pin that goes high when an obstacle is detected.

Buzzer

  • An electromechanical component that produces sound
  • Can be used for audible alerts or alarms.

KY-019 Relay Module 1 Channel

  • A relay module that can control high power/high voltage devices
  • Has a single channel and can be driven by a low voltage signal like that from a microcontroller.

Gearmotor DC Wheels Right

  • A DC motor combined with a gearbox to increase torque
  • Used to drive wheels or other mechanical systems.

LED: Two Pin (Red)

  • A basic red light-emitting diode
  • Has an anode and cathode for simple on/off control.

5V Battery

  • A power source providing a 5V output
  • Used to power the components in the circuit.

Wiring Details

Arduino UNO

  • Vin connected to the positive terminal of the 5V Battery
  • GND connected to the negative terminal of the 5V Battery
  • D5 connected to the anodes of the LEDs and the positive pin of the buzzer
  • D7 connected to the S pin of the KY-019 Relay module
  • D6 connected to the out pin of the IR sensor

IR Sensor

  • vcc connected to the positive terminal of the 5V Battery
  • gnd connected to the negative terminal of the 5V Battery
  • out connected to D6 on the Arduino UNO

Buzzer

  • PIN connected to D5 on the Arduino UNO
  • GND connected to the negative terminal of the 5V Battery

KY-019 Relay Module 1 Channel

  • 5V connected to the positive terminal of the 5V Battery
  • GND connected to the negative terminal of the 5V Battery
  • S connected to D7 on the Arduino UNO
  • NC connected to PIN2 of the Gearmotor DC Wheels Right
  • COM connected to the negative terminal of a separate 5V Battery

Gearmotor DC Wheels Right

  • PIN1 connected to the positive terminal of a separate 5V Battery
  • PIN2 connected to the NC pin of the KY-019 Relay module

LED: Two Pin (Red)

  • anode of each LED connected to D5 on the Arduino UNO
  • cathode of each LED connected to the negative terminal of the 5V Battery

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 buzzer

Documented Code

sketch.ino

void setup() {
  // put your setup code here, to run once:

}

void loop() {
  // put your main code here, to run repeatedly:

}

documentation.txt

(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.