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

Arduino UNO Controlled IR Sensor Relay Circuit with Indicator LED

Image of Arduino UNO Controlled IR Sensor Relay Circuit with Indicator LED

Circuit Documentation

Summary of the Circuit

This circuit is designed around an Arduino UNO microcontroller and includes various peripherals such as IR sensors, a relay module, an LED, and a fan. The Arduino UNO is used to control the behavior of the circuit based on the input from the IR sensors. The relay module is used to switch the fan on or off, and the LED serves as an indicator. The IR sensors are likely used to detect the presence or absence of objects, which in turn controls the state of the LED and the fan through the relay.

Component List

Arduino UNO

  • Description: A microcontroller board based on the ATmega328P.
  • Purpose: Acts as the central processing unit of the circuit, controlling the peripherals based on sensor inputs.

IR Sensor

  • Description: An infrared sensor capable of detecting the presence of objects.
  • Purpose: Provides input to the Arduino UNO to make decisions based on the presence or absence of objects.

LED: Two Pin (red)

  • Description: A basic red LED with an anode and cathode.
  • Purpose: Serves as an indicator light in the circuit.

Relay Module 1 Channel

  • Description: A single-channel relay module that can control high power devices.
  • Purpose: Used to switch the fan on or off based on the control signal from the Arduino UNO.

Fan

  • Description: A basic 5V fan.
  • Purpose: Operates as the actuator in the circuit, providing airflow when activated.

Wiring Details

Arduino UNO

  • 5V: Connected to the VCC of both IR sensors and the 5V of the relay module.
  • GND: Common ground connected to the GND of both IR sensors, the relay module, and the cathode of the LED.
  • D3: Connected to the anode of the LED.
  • D4: Connected to the OUT of one IR sensor.
  • D5: Connected to the OUT of the other IR sensor.
  • D2: Connected to the S (signal) pin of the relay module.

IR Sensor

  • VCC: Connected to the 5V supply from the Arduino UNO.
  • GND: Connected to the common ground.
  • OUT: One sensor's OUT is connected to D4 on the Arduino UNO, and the other's to D5.

LED: Two Pin (red)

  • Anode: Connected to D3 on the Arduino UNO.
  • Cathode: Connected to the common ground.

Relay Module 1 Channel

  • 5V: Connected to the 5V supply from the Arduino UNO.
  • GND: Connected to the common ground.
  • S: Connected to D2 on the Arduino UNO.
  • COM: Connected to the 5V pin of the fan.
  • NO: Connected to the GND pin of the fan.

Fan

  • 5V: Connected to the COM pin of the relay module.
  • GND: Connected to the NO pin of the relay module.

Documented Code

Arduino UNO Code (sketch.ino)

void 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 read the IR sensors, control the LED, and activate the relay to turn the fan on or off based on the sensor inputs.