Circuit Documentation
Summary
This circuit integrates an Arduino UNO microcontroller with an infrared (IR) sensor and a red two-pin LED. The Arduino UNO is used as the central processing unit to interpret signals from the IR sensor and control the LED based on the sensor's output. The IR sensor is powered by the Arduino and its output is connected to one of the Arduino's digital pins for signal processing. The LED is used as an indicator and is connected to another digital pin on the Arduino for control.
Component List
Arduino UNO
- Description: A microcontroller board based on the ATmega328P.
- Purpose: Acts as the central processing unit for the circuit, reading sensor data and controlling the LED.
- Pins Used:
5V: Provides power to the IR sensor.GND: Common ground for the circuit.D2: Receives the output signal from the IR sensor.D13: Controls the state of the LED.
IR Sensor
- Description: A sensor that detects infrared light.
- Purpose: Senses the presence of objects or motion by detecting infrared radiation.
- Pins Used:
out: Sends the detection signal to the Arduino.gnd: Connected to the ground.vcc: Receives power from the Arduino.
LED: Two Pin (red)
- Description: A basic red light-emitting diode.
- Purpose: Serves as an indicator light that can be controlled by the Arduino.
- Pins Used:
cathode: Connected to the ground.anode: Connected to a digital pin on the Arduino for control.
Wiring Details
Arduino UNO
5Vconnected to IR sensorvccGNDconnected to IR sensorgndand LEDcathodeD2connected to IR sensoroutD13connected to LEDanode
IR Sensor
outconnected to Arduino UNOD2gndconnected to Arduino UNOGNDvccconnected to Arduino UNO5V
LED: Two Pin (red)
cathodeconnected to Arduino UNOGNDanodeconnected to Arduino UNOD13
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 to control the IR sensor or the LED. The user is expected to fill in the setup and loop functions with the necessary logic to read the IR sensor output and control the LED accordingly.
