Cirkit Designer LogoCirkit DesignerYour all-in-one circuit design IDE Launch Cirkit Designer App

Arduino Leonardo-Based IR Sensor and LED Control System

View and Edit Project In Cirkit DesignerImage of Arduino Leonardo-Based IR Sensor and LED Control System

Circuit Documentation

Summary

This circuit involves an Arduino Leonardo microcontroller interfacing with multiple IR sensors and LEDs. The IR sensors detect objects, and the LEDs provide visual feedback. The Arduino Leonardo controls the LEDs based on the input from the IR sensors.

Component List

  1. Arduino Leonardo (Rev3b)

    • Description: A microcontroller board based on the ATmega32u4.
    • Pins: D0/RX, D1/TX, D2/SDA, D3 PWM/SCL, D4/A6, D5 PWM, D6 PWM/A7, D7, n.c., IOREF, RESET, 3V3, 5V, GND, VIN, A0, A1, A2, A3, A4, A5, D8/A8, D9 PWM/A9, D10 PWM/A10, D11 PWM, D12/A11, D13 PWM, AREF, SDA, SCL
  2. IR Sensor

    • Description: Infrared sensor for object detection.
    • Pins: out, gnd, vcc
  3. LED: Two Pin (red)

    • Description: Red LED with two pins.
    • Pins: cathode, anode
  4. LED: Two Pin (green)

    • Description: Green LED with two pins.
    • Pins: cathode, anode

Wiring Details

Arduino Leonardo (Rev3b)

IR Sensor

LED: Two Pin (red)

LED: Two Pin (green)

Code Documentation

Arduino Leonardo (Rev3b) Code

void setup() {
  // put your setup code here, to run once:

}

void loop() {
  // put your main code here, to run repeatedly:

}

This code is a basic template for the Arduino Leonardo. The setup() function is where you initialize your components, and the loop() function is where you place the main logic that runs repeatedly.