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

Arduino UNO Controlled IR Sensor with Relay and Piezo Speaker Notification System

Image of Arduino UNO Controlled IR Sensor with Relay and Piezo Speaker Notification System

Circuit Documentation

Summary

The circuit in question is designed around an Arduino UNO microcontroller and includes a variety of components that interact with the microcontroller to perform specific functions. The circuit is powered by a 9V battery and includes an IR sensor for input detection, a 5V relay to control power to a motor, a piezo speaker for audio output, and a motor from a hobby kit. The Arduino UNO controls the relay and the speaker, and reads input from the IR sensor.

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.

9V Battery

  • Standard 9V battery used to provide power to the circuit.

IR Sensor

  • An infrared sensor capable of detecting obstacles and changes in the environment.
  • It has an output pin that connects to the Arduino for signal processing.

5V Relay

  • An electromechanical switch used to control high power devices.
  • It has a coil voltage of 5V and can switch connections between Common, Normally Open, and Normally Closed terminals.

Piezo Speaker

  • An electronic device that can produce sound when an electrical signal is applied.
  • It has two pins for electrical connection and can be driven by the Arduino to generate audio signals.

Motor Amarillo Motorreductor Hobby

  • A small DC motor commonly used in hobby projects.
  • It operates at a voltage compatible with the 9V battery and is controlled via the relay.

Wiring Details

Arduino UNO

  • 5V: Connected to the VCC of the IR sensor and the VCC of the 5V relay.
  • GND: Connected to the GND of the IR sensor, the GND of the 5V relay, and pin1 of the Piezo Speaker.
  • D9: Connected to pin2 of the Piezo Speaker.
  • D8: Connected to the 'In' pin of the 5V relay.
  • D2: Connected to the 'out' pin of the IR sensor.

9V Battery

  • +: Connected to the Common terminal of the 5V relay.
  • -: Connected to the GND of the Motor Amarillo Motorreductor Hobby.

IR Sensor

  • vcc: Connected to the 5V output of the Arduino UNO.
  • gnd: Connected to the GND of the Arduino UNO.
  • out: Connected to the D2 pin of the Arduino UNO.

5V Relay

  • VCC: Connected to the 5V output of the Arduino UNO.
  • GND: Connected to the GND of the Arduino UNO.
  • In: Connected to the D8 pin of the Arduino UNO.
  • Common terminal: Connected to the + of the 9V Battery.
  • Normally Open: Connected to the vcc of the Motor Amarillo Motorreductor Hobby.

Piezo Speaker

  • pin1: Connected to the GND of the Arduino UNO.
  • pin2: Connected to the D9 pin of the Arduino UNO.

Motor Amarillo Motorreductor Hobby

  • vcc: Connected to the Normally Open terminal of the 5V relay.
  • GND: Connected to the - of the 9V Battery.

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 include specific functionality. It should be populated with the necessary setup and loop code to control the components as per the circuit's requirements.