Computerized management of a 14-space parking lot
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
Setting up the gate
Preparing the
locations of electrical components
Attach the
servomotor securely with 4 small wood screws to prevent it from being expelled
when the barrier moves.
In the same way, securely
fix the LCD screen from the back with 4 small screws.
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.
Recessing the
general switch on the “technical zone panel
Work completed
Control buttons locations
Rear view
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
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..
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.
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)
4 -Downloads
Download the program in French
version – Program algorithm in PDF version
Download the program in English
version – Program algorithm in PDF version