Arduino-Controlled RFID and IR Sensor System with Dual Motor Drivers
View and Edit Project In Cirkit Designer
Circuit Documentation
Summary
This circuit integrates various components including sensors, a microcontroller, a motor driver, and a display module to perform a set of tasks that likely involve motion control and data acquisition. The Arduino UNO serves as the central processing unit, interfacing with an IR sensor, an RFID module, a DC motor driver, an ultrasonic distance sensor, and an LCD display. The circuit is powered by a 12V battery, and a rocker switch is used to control the power supply. The motor driver controls two DC Mini Metal Gear Motors based on signals from the Arduino UNO.
Component List
IR Sensor
- Pins: out, gnd, vcc
- Description: An infrared sensor used for detecting obstacles or measuring distances.
RFID (ID12)
- Pins: +5V, RES, ANT0, ANT1, CP, Future, +/-, D1, D0, LED, GND
- Description: An RFID reader module for reading RFID tags.
DC Mini Metal Gear Motor
- Pins: IN1, IN2
- Description: A small DC motor with a gearbox for precise motion control.
Rocker Switch
- Pins: 1, 2
- Description: A switch used to control the power supply to the circuit.
Battery 12V
- Pins: +, -
- Description: A 12V battery providing the power source for the circuit.
LCD Display 16x4 I2C
- Pins: SCL, SDA, VCC, GND
- Description: An LCD display module with I2C communication for displaying data.
L298N DC Motor Driver
- Pins: OUT1, OUT2, 12V, GND, 5V, OUT3, OUT4, 5V-ENA-JMP-I, 5V-ENA-JMP-O, +5V-J1, +5V-J2, ENA, IN1, IN2, IN3, IN4, ENB
- Description: A motor driver module for controlling the speed and direction of DC motors.
Arduino UNO
- 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
- Description: A microcontroller board based on the ATmega328P, used for controlling the components in the circuit.
HC-SR04 Ultrasonic Distance Sensor (Wokwi Compatible)
- Pins: VCC, TRIG, ECHO, GND
- Description: A sensor for measuring distances using ultrasonic waves.
Wiring Details
IR Sensor
- out connected to Arduino UNO D3
- gnd connected to common ground
- vcc connected to Arduino UNO 5V
RFID (ID12)
- +5V connected to Arduino UNO 5V
- GND connected to common ground
- D1 connected to Arduino UNO D7
- D0 connected to Arduino UNO D6
DC Mini Metal Gear Motor (x2)
- IN1 and IN2 connected to L298N DC motor driver OUT3 and OUT4 for one motor
- IN1 and IN2 connected to L298N DC motor driver OUT1 and OUT2 for the other motor
Rocker Switch
- 1 and 2 connected in series with the battery 12V and common ground
Battery 12V
- + and - providing power to the circuit and connected to common ground
LCD Display 16x4 I2C
- SCL connected to Arduino UNO A5
- SDA connected to Arduino UNO A4
- VCC connected to Arduino UNO 5V
- GND connected to common ground
L298N DC Motor Driver (x2)
- 12V and GND connected to battery 12V and common ground
- ENA, IN1, IN2 connected to Arduino UNO D10, D9, D8 for one driver
- ENB, IN3, IN4 connected to Arduino UNO D13, D11, D12 for the other driver
Arduino UNO
- 5V and GND pins used to power other components
- D2-D13 used for control signals to various components
- A4 (SDA) and A5 (SCL) used for I2C communication with the LCD display
HC-SR04 Ultrasonic Distance Sensor
- VCC connected to Arduino UNO 5V
- TRIG connected to Arduino UNO D4
- ECHO connected to Arduino UNO D5
- GND connected to common ground
Documented Code
void setup() {
// put your setup code here, to run once:
}
void loop() {
// put your main code here, to run repeatedly:
}
Filename: sketch.ino
Note: The provided code is a template and does not contain any functional code. It needs to be populated with the logic to control the components based on the circuit design.