+21622886281
Arduino Project Servo motor

Automatic parking barrier with Arduino

Purpose of this project:

In this project we will simulate an automated parking barrier with Arduino. This model resumes the general operation of automated systems that allow access to public parks that can be found in stations, airports, cinemas, supermarkets, etc.

Our barrier opens with a servo motor when the HC-sound sensorSR04 detects a vehicle and closes automatically if not.

Necessary components

  • Arduino UNO
  • Two HC-SR04 sensor
  • connecting wires
  • a test plateun
  • module LED RGB
  • abarrier in the form of a pen
  • Motor servo

Montage du Parking

To make the assembly, we can connect:

 For first HC-SR04 sensor:

  • VCC pin to 3.3V pin of Arduino
  • Trig pin to pin 3 of Arduino
  • ECHO pin to pin 4 ofArduino
  • GND pin to GND pin of Arduino

For second HC-SR04 sensor:

  • VCC pin to 3.3V pin of Arduino
  • Trig pin to pin 5 of Arduino
  • ECHO pin to pin 6 ofArduino
  • GND pin to GND pin of Arduino

 For motor servo

  • red wire: wire of the power supply to be connected to the 5V pin of the Arduino
  • brown wire: wire to connect to the GND pin of the Arduino
  • Yellow wire: positioning signal wire connected to pin 2 of the Arduino

For Module LED RGB:

  • Pin 7 of Arduino to (R) pin of red color of RGB LED module
  • Pin 8 of Arduino to (G) pin of green color of RGB LED module
  • GND Pin of Arduino to GND pin of RGB LED module

Program

Here is the program for the automated parking system:




0 commentaire


Leave a comment

Votre adresse e-mail ne sera pas publiée. Les champs obligatoires sont indiqués avec *

Scroll to Top