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

Arduino UNO-Based Smart Distance Sensor with RFID and LCD Display

View and Edit Project In Cirkit DesignerImage of Arduino UNO-Based Smart Distance Sensor with RFID and LCD Display

Circuit Documentation

Summary

This circuit involves an Arduino UNO microcontroller interfacing with various components including an ultrasonic sensor, a micro servo, multiple LEDs, a piezo buzzer, an I2C LCD, and an RFID module. The circuit is designed to demonstrate basic sensor integration, actuator control, and visual feedback using LEDs and an LCD display.

Component List

  1. 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
  2. HC-SR04 Ultrasonic Sensor

    • Description: A sensor used for measuring distance.
    • Pins: VCC, TRIG, ECHO, GND
  3. Micro servo 9G

    • Description: A small servo motor used for precise control of angular position.
    • Pins: GND, +5V, PWM
  4. LED: Two Pin (red)

    • Description: A red LED for visual indication.
    • Pins: cathode, anode
  5. LED: Two Pin (green)

    • Description: A green LED for visual indication.
    • Pins: cathode, anode
  6. LED: Two Pin (yellow)

    • Description: A yellow LED for visual indication.
    • Pins: cathode, anode
  7. Resistor (220 Ohms)

    • Description: A resistor used to limit current.
    • Pins: pin1, pin2
  8. 16x2 I2C LCD

    • Description: A 16x2 character LCD display with I2C interface.
    • Pins: GND, VCC, SDA, SCL
  9. Piezo Buzzer

    • Description: A buzzer used for sound output.
    • Pins: pin 1, pin 2
  10. RFID-RC522

    • Description: An RFID module used for reading RFID tags.
    • Pins: VCC (3.3V), RST, GND, IRQ, MISO, MOSI, SCK, SDA

Wiring Details

Arduino UNO

HC-SR04 Ultrasonic Sensor

Micro servo 9G

LED: Two Pin (red)

LED: Two Pin (green)

LED: Two Pin (yellow)

Resistor (220 Ohms)

16x2 I2C LCD

Piezo Buzzer

RFID-RC522

Code Documentation

Arduino UNO 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 UNO. The setup() function is where you initialize your components and set up your initial conditions. The loop() function is where you place the main logic of your program that runs repeatedly.