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

Arduino UNO Controlled Servo with IR Sensor Activation

Image of Arduino UNO Controlled Servo with IR Sensor Activation

Circuit Documentation

Summary

This circuit integrates an Arduino UNO microcontroller with a servo motor and an infrared (IR) sensor. The Arduino UNO is used as the central processing unit to control the servo motor based on the input from the IR sensor. The servo motor is powered by the 5V output from the Arduino, and the IR sensor is powered by the 3.3V output. Ground connections are shared among all components. The servo motor is controlled through a digital pin on the Arduino, and the IR sensor output is connected to another digital pin for sensing purposes.

Component List

Arduino UNO

  • Description: A microcontroller board based on the ATmega328P.
  • Pins: UNUSED, IOREF, Reset, 3.3V, 5V, GND, Vin, A0-A5, SCL, SDA, AREF, D0-D13.
  • Purpose: Acts as the central processing unit for controlling the servo motor and reading the IR sensor output.

Servo

  • Description: An actuator that can be precisely controlled for angular position.
  • Pins: gnd, vcc, pulse.
  • Purpose: Receives control signals from the Arduino to adjust its position.

IR Sensor

  • Description: A sensor that detects infrared light to sense objects or motion.
  • Pins: out, gnd, vcc.
  • Purpose: Provides a digital signal to the Arduino when IR light is detected.

Wiring Details

Arduino UNO

  • 3.3V to IR Sensor vcc
  • 5V to Servo vcc
  • GND to Servo gnd and IR Sensor gnd
  • D8 to Servo pulse
  • D5 to IR Sensor out

Servo

  • gnd to Arduino GND
  • vcc to Arduino 5V
  • pulse to Arduino D8

IR Sensor

  • out to Arduino D5
  • gnd to Arduino GND
  • vcc to Arduino 3.3V

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 Notes

  • The provided code for the Arduino UNO is a template with empty setup and loop functions. Actual implementation code for controlling the servo and reading the IR sensor is required to be added for the circuit to function as intended.
  • The setup() function is used to initialize the pins and configure the servo control.
  • The loop() function should contain the main logic for reading the IR sensor output and controlling the servo motor accordingly.