Arduino UNO-Based IR Sensor Controlled Motor with Buzzer and Relay
View and Edit Project In Cirkit Designer
Circuit Documentation
Summary
This document provides a detailed overview of a circuit that includes an Arduino UNO microcontroller, an IR sensor, a 5V relay, a buzzer, a motor with wheels, and a 9V battery. The circuit is designed to control a motor and buzzer based on the input from the IR sensor, with the relay acting as a switch for the motor.
Component List
Arduino UNO
- Description: A microcontroller board based on the ATmega328P.
- Pins: UNUSED, IOREF, Reset, 3.3V, 5V, GND, Vin, A0, A1, A2, A3, A4, A5, SCL, SDA, AREF, D13, D12, D11, D10, D9, D8, D7, D6, D5, D4, D3, D2, D1, D0
IR Sensor
- Description: An infrared sensor used to detect objects.
- Pins: out, gnd, vcc
5V Relay
- Description: A relay module that operates at 5V.
- Pins: Normally Open, Common terminal, Normally Closed, In, GND, VCC
Buzzer
- Description: An electronic device that emits sound.
- Pins: PIN, GND
Motor and Wheels
- Description: A motor with attached wheels.
- Pins: vcc, GND
9V Battery
- Description: A 9V battery used to power the motor.
- Pins: -, +
Wiring Details
Arduino UNO
5V is connected to:
- VCC of the 5V relay
- vcc of the IR sensor
GND is connected to:
- GND of the 5V relay
- gnd of the IR sensor
- GND of the buzzer
D9 is connected to:
- PIN of the buzzer
D8 is connected to:
- In of the 5V relay
D2 is connected to:
- out of the IR sensor
IR Sensor
vcc is connected to:
- 5V of the Arduino UNO
gnd is connected to:
- GND of the Arduino UNO
out is connected to:
- D2 of the Arduino UNO
5V Relay
VCC is connected to:
- 5V of the Arduino UNO
GND is connected to:
- GND of the Arduino UNO
In is connected to:
- D8 of the Arduino UNO
Normally Open is connected to:
- vcc of the motor and wheels
Common terminal is connected to:
- + of the 9V battery
Buzzer
PIN is connected to:
- D9 of the Arduino UNO
GND is connected to:
- GND of the Arduino UNO
Motor and Wheels
vcc is connected to:
- Normally Open of the 5V relay
GND is connected to:
- - of the 9V battery
9V Battery
+ is connected to:
- Common terminal of the 5V relay
- is connected to:
- GND of the motor and wheels
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:
}
Additional Documentation (documentation.txt)
This document provides a comprehensive overview of the circuit, including the components used, their wiring details, and the code for the Arduino UNO microcontroller.