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

Arduino Nano-Controlled IR Sensor Relay with Buzzer Notification and DC Motor Activation

Image of Arduino Nano-Controlled IR Sensor Relay with Buzzer Notification and DC Motor Activation

Circuit Documentation

Summary of the Circuit

This circuit is designed to interface an Arduino Nano with a variety of components including an IR sensor, a 5V relay module, a buzzer, a DC motor, and a rocker switch, all powered by two 9V batteries. The Arduino Nano serves as the central processing unit, reading inputs from the IR sensor and controlling the relay, buzzer, and indirectly the DC motor through the relay. The rocker switch is used to control the power supply to the Arduino Nano.

Component List

Arduino Nano

  • Microcontroller board based on the ATmega328P
  • It has a variety of digital and analog I/O pins.

1 Channel 5V Relay Module

  • An electrically operated switch that allows you to control a high power circuit with a low power signal.
  • It has a set of terminals for the input signal, power supply, and output for the controlled device.

IR Sensor

  • A sensor that detects infrared light, commonly used for proximity or motion detection.
  • It has an output pin that goes high when an object is detected.

Buzzer

  • An electronic component that produces sound.
  • It can be used for audible alerts or alarms.

DC Motor

  • An electric motor that runs on direct current (DC) electricity.
  • It is used for creating rotational motion.

Rocker Switch (SPST)

  • A simple on/off switch that can control the connection of a circuit.
  • SPST stands for Single Pole Single Throw, indicating it has one input and one output.

9V Battery

  • A standard 9V battery used to provide power to the circuit.

Wiring Details

Arduino Nano

  • GND: Connected to the ground (GND) pins of the relay module, IR sensor, and buzzer.
  • D2: Connected to the output (out) of the IR sensor.
  • D8: Connected to the input (IN) of the relay module.
  • D9: Connected to the pin of the buzzer.
  • VIN: Connected to one terminal of the rocker switch.
  • 5V: Provides power to the VCC+ of the relay module and VCC of the IR sensor.

1 Channel 5V Relay Module

  • VCC+ (5V): Connected to the 5V output from the Arduino Nano.
  • VCC- (GND): Connected to the ground (GND) of the Arduino Nano.
  • IN: Controlled by the D8 pin of the Arduino Nano.
  • N.O.: Normally open terminal connected to pin 2 of the DC motor.
  • COM: Common terminal connected to the positive terminal of one 9V battery.
  • N.C.: Normally closed terminal, not used in this circuit.

IR Sensor

  • out: Connected to the D2 pin of the Arduino Nano.
  • gnd: Connected to the ground (GND) of the Arduino Nano.
  • vcc: Connected to the 5V output from the Arduino Nano.

Buzzer

  • PIN: Connected to the D9 pin of the Arduino Nano.
  • GND: Connected to the ground (GND) of the Arduino Nano.

DC Motor

  • pin 1: Connected to the negative terminal of one 9V battery.
  • pin 2: Connected to the normally open (N.O.) terminal of the relay module.

Rocker Switch (SPST)

  • 1: Connected to the positive terminal of one 9V battery.
  • 2: Connected to the VIN pin of the Arduino Nano.

9V Battery

  • Two 9V batteries are used, one to power the Arduino Nano through the rocker switch and the other to power the DC motor through the relay module.

Documented Code

Arduino Nano 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 sensor, control the relay, and activate the buzzer as per the requirements of the circuit's intended operation.