Car Parking Monitoring System using Arduino and vb.net programming

 

car parking

Description:

car parkingThis tutorial is about the monitoring system for car parking slots using a software program in Visual Basic.net, also known as vb.net. It’s an infrared sensor project based on  Arduino and vb.net. This car parking project uses minimum of six IR sensors. This parking space is split into  two parking spacesParking1  and Parking2. Infrarot sensors are used in each parking slot for car detection. The box next to the slot is tested or unchecked depending on the car’s detection. If the box is checked, car will fill the slot.

This Tutorial covers

  1. Car Parking Sensors installation
  2. Car Parking Circuit diagram
  3. Interfacing
  4. Car parking Arduino programming
  5. Computer
  6. Car Parking application designing and programming finally
  7. Car Parking Testing



The Amazon Purchase links are given below:

Infrared sensor: https://amzn.to/37lc5XO
Arduino Uno: https://amzn.to/39aq6ZT
Mega 2560: https://amzn.to/2SszMsI
lm7805 Voltage Regulator: https://amzn.to/2ERYoTJ
330-ohm resistors pack: https://amzn.to/2Qj1Igg
female DC power jack socket: https://amzn.to/377Pg9M
470uf capacitors: https://amzn.to/2MrN3xR
5×7 cm Vero board: https://amzn.to/37b7KWO
female headers: https://amzn.to/350w6RE
connection wires: https://amzn.to/2MvOJXd
Super Starter kit for Beginners: https://amzn.to/398dliF
Jumper Wires: https://amzn.to/2SrnBwo
Bread Board: https://amzn.to/2MxV5FM
12v Adaptor: https://amzn.to/2MuOlZk
PCB plate: https://amzn.to/2MuwNMB
Variable Supply: https://amzn.to/39d0KdP
Digital Multimeter: https://amzn.to/34WbVoa
Vero Board / stripboard: https://amzn.to/39nL9Zg
Soldering iron kit: “best” You guys should definitely purchase this: https://amzn.to/2PVwexF
Solder wire: https://amzn.to/2QlOvTS
Wire Stripper: https://amzn.to/353tYJa
wirecutter: https://amzn.to/2tV2lFj
PCB small portable drill machine: https://amzn.to/2MvQqnx

DISCLAIMER:

Please Note: these are affiliate links. I may make a commission if you buy the components through these links. I would appreciate your support in this way!


Car parking Circuit Diagram:

car parking

This is the complete parking monitoring system circuit diagram. The circuit diagram is designed in version 9.1.0 of the cadsoft eagle. Those are the six sensors for infrared.   That infrared sensor is a slot.

The Vcc of all the infrared sensors is paired and wired to the 5v of the Arduino. Likewise, the ground pins of all the infrared sensors are linked together and attached to the base of the Arduino. While the infrared sensors are  connected to the out pins

 pin  4

pin  5

pin  6

pin 7

pin  8 and

pin 9


Car parking Arduino Programming:

First began with the definition of pins for infrared sensors. Then set up String type variables with sensor1 names to sensor6. Finally, defined type String variable cdata to store the entire message.

Turns on serial communication, the buad rate is 9600. 

Set all infrared sensors as input using the pinmode function. Pinmode function is built-in function that requires two arguments such as the input, the pin number or pin name, and the status that can be input or output.

created functions for individual monitoring of each infrared sensor. So these are the six functions calling.

P1slot1 is a function defined by the user, it has no type of return and it takes no argument as the input.  If there’s a car in front of the sensor that gives digital logic 0, and if there’s no car that gives digital logic 1, then p1s1on or p1s1off is stored.  All other infrared sensors are using the same mechanism.




Car parking Computer application Designing and Programming:

car parking

That’s how it feels like the software program. We use only one serial port and only one-timer in this program. You will have access to the programming when you double-click on the application form.

First I began by importing the.io system and the.io.ports framework.

Then I defined a type integer variable that is value1.

Double-click the form and add the Serial port code. Currently, the name of the port is com19, the same as that of my laptop. You can check from the device manager the port number of your Arduino. Change  com19  to your laptop or computer’s number.



Defines the form string variable s. 

This line of code is intended to store the entire message in variable s. This is the message that Arduino receives.

Then these instructions are used to set the comma-like delimiter form in my case, the entire message will be split into six strings with the aid of comma, then each string will be displayed in its corresponding text box, each text box represents an infrared sensor.

Data received function, used this function in so many projects, and explained this in detail already. This function is intended to read the serial port and store the data in the textbox1.


Watch Video Tutorial

Recommended For You

Fawad

About the Author: Fawad

My name is Shahzada Fawad and I am a Programmer. Currently, I am running my own YouTube channel "Expertstech", and managing this Website. My Hobbies are * Watching Movies * Music * Photography * Travelling * gaming and so on...

Leave a Reply

%d bloggers like this: