Computerized management of a 14-space parking lot

 

Une image contenant outil, Véhicule de jouet, intérieur, sol

Description générée automatiquement

 


This file concerns the computerized management of a 14-space car park symbolized by a model controlled by an application developed in Visual Basic for Arduino card (B4R).

 

This parking model is suitable for 1/43 car models

 


 

1 – Construction of the car park model

 

Base and support of the future entrance gate

Une image contenant sol, meubles, Revêtement de sol, mur

Description générée automatiquement

Setting up the gate

Preparing the locations of electrical components

Une image contenant outil, mur

Description générée automatiquement

 

Une image contenant mur, outil, maison, intérieur

Description générée automatiquement

 

Attach the servomotor securely with 4 small wood screws to prevent it from being expelled when the barrier moves.

Une image contenant circuit, Ingénierie électronique, Appareils électroniques, Composant électronique

Description générée automatiquement

In the same way, securely fix the LCD screen from the back with 4 small screws.

Une image contenant outil, appareil de cuisine, four, cuisine

Description générée automatiquement

Installation of fences – Painting the support black

The technical area will be installed behind this panel located to the left of the parking lot, behind the entrance gate.

Une image contenant gaz, fils électriques, prise, plein air

Description générée automatiquement

Recessing the general switch on the “technical zone panel

Work completed

Une image contenant texte, bouteille, intérieur

Description générée automatiquement

Control buttons locations

Une image contenant Modèle réduit, Véhicule de jouet, véhicule, Véhicule terrestre

Description générée automatiquement

Rear view

Une image contenant outil, Rectangle, sol, intérieur

Description générée automatiquement

Bottom view with button connections recessed into the floor

 


2 – Equipment used

 

- 1 Arduino MEGA2560 board or similar

- 1 LCD screen with 4 lines of 20 characters

- and its I2C interface allowing a simplified connection to the Arduino board

- An MG996R servomotor or similar

- Two 3.7 V Li-ion rechargeable batteries (Total 7.4 volts) or one 9 Volt pressure battery

- A support for 2 Li-ion batteries or a connector for a pressure battery

- A general switch

- A buzzer or alternative sound device

- A pre-wired traffic light element with built-in resistors

- 1 white LED protected by a 220 Ohms resistor

- 1 blue LED protected by a 220 Ohms resistor

- 2 push buttons

- Cords and wires of various colors for various connections

 

Une image contenant outil, câble, Ingénierie électronique, Appareils électroniques

Description générée automatiquement

                     

                                         

 

This connection panel also allows you to carry out a temporary installation allowing you to test the program and components

 

Video :  Tests carried out on the parking simulator

 

Tests carried out on the parking simulator2

 

Tests carried out on the french parking simulator

 

 


 

3 – Program scenario written in Visual BASIC for ARDUINO (B4R)

 

As vehicles enter and exit, the program calculates the number of places available. If all 14 spaces are occupied, the parking lot is full and the red light comes on. In this case, if the entry button is pressed, , the parking barrier will not open and the light will remain red. The LCD screen will display:  « Parking Full – Wait for a Car to Exit ». The entry button will remain disabled as long as the parking lot is full..

 

Une image contenant texte, bâtiment, signe, signalisation

Description générée automatiquement

 

On the LCD screen placed above the entrance gate, the number of available places is permanently displayed and updated with each vehicle movement.

On the other hand, if a vehicle leaves the parking lot freeing up a space, the red light will be replaced by the green light, the entry button will be reactive dans therefore it will be possible to open the barrier again for the entry of a vehicle. 

 

The yellow light comes on (in addition to the green light) when there is only one space left in the parking lot. The LCD screen displays « 1 free  place ».

 

The exit button is located inside the parking lot. This button only triggers the opening of the barrier if there are vehicles remaining in the parking lot. If the parking lot is empty, the exit button is automatically deactived.

 

Une image contenant texte, bâtiment, signe, plein air

Description générée automatiquement

The entry button causes the lighting of the blue LED which will remain lit for the duration of the entry maneuver of a vehicle, on the LCD screen will be displayed in the 4th line: “INCOMING VEHICLE” and the entry button will be disabled as long as the blue LED is lit. The exit button will also be blocked during this phase.

 

The exit button causes the white LED to light up, which will remain lit for the duration of the vehicle exit maneuver, on the LCD screen will be displayed in the 4th line: “EXITING VEHICLE” and the exit button will be disabled as long as the white LED is on. The enter button will also be blocked during this phase.

 

The ARDUINO MEGA2560 board (or similar) keeps in memory the B4R algorithm of the program that was recorded, even when turned off. This program will remain in memory until it has been replaced by another application. The B4R “Parking7” program will therefore allow the management of entry and exit buttons, the switching on of lights, the management of available spaces, the display of information on the LCD screen and finally the opening and closing of the barrier of this parking lot.

 

General power is provided by the use of two 3.7 Volts Li-ion batteries (Total: 7.4 Volts). A general switch allows you to turn the system on and off.

Note that turning the system off and then turning it on causes the initially established values to be reset at the start, namely the number of available places set at 3 at start-up. You must modify line n° 44 of the B4R program and upload it to the Arduino Board to change this initial value.

(See detailed program to download in PDF version)

 

 

Une image contenant texte, bâtiment, signe, cheminée

Description générée automatiquement

 


 

4 -Downloads

 

Download the program in French versionProgram algorithm in PDF version

 

Download the program in English versionProgram algorithm in PDF version

 

Video : Exiting a vehicle

 

Video : System Operation