Today we bring you an experiment based on the Arduino-Based Smart Barrier using Stepper Motor. Arduino, a servo motor, and an ultrasonic sensor are utilized in toll tax systems on roads, smart car parking systems, automatic gates, and other applications.
Let’s get started with the design.
Components Required:
- Arduino Uno
- LED – 2 Pieces
- Ultrasonic Sensor
- Servo SG-90
- Jumper Wires
- Double-Sided Tape
- Cardboard Box
- Scissors
- Mini Breadboard
- 1K OHM Resistance – 2 Pieces
- Wooden ice-cream stick
- DC Adapter 9V or 12V
Watch the Video to Build Smart Barrier using Stepper Motor
Steps to Follow
- Placing Arduino in cardboard.
- Placing the PCB on the Cardboard beside the Arduino.
- Placing the mini breadboard beside the PCBs and let’s start. Connect a jumper from 5V Pin of Arduino to one rail and from Ground of Arduino to another rail of the Breadboard.
- Connecting the IN1 Pin of PCB to Pin 9 of Arduino, connect the IN2 Pin of PCB to Pin 10 of Arduino, connect the IN3 Pin of PCB to Pin 11 of Arduino, connect the IN4 Pin of PCB to Pin 12 of Arduino.
- Connecting the 9V Battery with Power Socket. And the Emitter is connected to the negative and the positive of Buzzer will be connected to the VCC.
- Connecting the Stepper Motor to the PCB. And placing the stepper motor on the cardboard with double-sided tape.
- Connecting the VCC to 5V and GND to the Ground, connect the Trigger to Pin 7 of Arduino, connect the Echo to Pin 6 of Arduino, then, with double-sided tape, place the Arduino in this way.
- Connecting the first LED Positive to Pin 11 of Arduino and the second LED Positive to Pin 10, with a 1K Resistor in between, connect the negatives of both the LEDs to the Ground, connect the ICE-Cream Stick to the Stepper Motor and upload the code.
- Connecting the power supply to the Arduino, we are using a 12V DC Adapter for our project. Now, power up the system.
We hope you enjoyed building this Arduino-Based Smart Barrier using Stepper Motor.