Aim:
Showing count on an LCD using an Arduino being automated through a PIR sensor
Summary of the Circuit:
This circuit integrates an Arduino UNO microcontroller with an LCD display, a trimmer potentiometer, a resistor, and a PIR
sensor. The Arduino UNO serves as the central processing unit, controlling the LCD display for user interface and reading
signals from the PIR sensor to detect motion. The trimmer potentiometer is used to adjust the contrast of the LCD display,
and the resistor is likely used for current limiting purposes. The PIR sensor is used to detect motion in the environment.
Component List:
Arduino UNO
- Description: A microcontroller board based on the ATmega328P
- Purpose: Acts as the central controller for the circuit, interfacing with the Motor driver(s) and joy stick(s)
- 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
L298N DC Motor Driver
- Description: A motor driver module capable of driving two DC motors
- Purpose: Drives the DC motor when receives instructions from the microcontroller
- 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
DC Motor
- Description: A standard DC motor with two connection pins.
- Pins: Pin 1, Pin 2
Li-ion 18650 Battery
- Description: A rechargeable battery used to power the circuit.
- Pins: +ve, -ve terminal pins
KY-023 Dual Axis Joystick Module
- Description: A joystick module that provides two analog outputs corresponding to the X and Y axes and one digital output for the switch.
- Pins: GND, +5V, VRx, VRy, SW
KY-023 Dual Axis Joystick Module
- Description: A joystick module that provides two analog outputs corresponding to the X and Y axes and one digital output for the switch.
- Pins: GND, +5V, VRx, VRy, SW
Wiring Details:
L298N DC Motor Driver
- 5V connected to:
- +5V from Arduino UNO
- KY-023 Joystick Modules
- GND connected to:
- GND from Arduino UNO
- Li-ion 18650 Battery
- 12V connected to + from Li-ion 18650 Battery
- IN1, IN2, IN3, IN4 connected to various digital pins on Arduino UNO for motor control
- OUT1, OUT2, OUT3, OUT4 connected to DC Motor pins
DC Motor
- pin 1 and pin 2 of 1st motor connected to OUT1, OUT2 of L298N DC Motor Drivers
- pin 1 and pin 2 of 2nd motor connected to OUT3, OUT4 of L298N DC Motor Drivers
Arduino UNO
- 5V and GND connected to power the KY-023 Joystick Modules and L298N DC Motor Drivers
- Digital and analog pins used to interface with the L298N DC Motor Drivers and KY-023 Joystick Modules
KY-023 Dual Axis Joystick Module
- +5V and GND connected to 5V and GND on Arduino UNO
- VRx and VRy connected to analog pins on Arduino UNO for X and Y axis readings
- SW connected to a digital pin on Arduino UNO for switch state reading
To Know about about our gear, click
here.
Learn more about Arduino Documentation,
here.