IOT based Car Parking System using Arduino and Nodemcu esp8266

(Last Updated On: June 25, 2020)

iot based car parking

Description:

IoT based car parking- In this tutorial, you will learn how to make an IOT based Car Parking Slots monitoring system using Arduino, Nodemcu esp8266 wifi module, and Blynk application. With the help of the Nodemcu esp8266 wifi module and Blynk application, the parking slots can be monitored from anywhere around the world. In this Tutorial, you will also learn how to use the tabs and led widgets in the Blynk application.

The Parking Area is divided into two Parkings.

  1. Parking 1
  2. Parking 2

Each Parking has 3 Slots and every slot has one infrared sensor. So we have a total of 6 infrared sensors. Each sensor is used to detect the presence of Car in the Slot. These infrared sensors are connected with the Arduino. So when a car is parked in the slot, the Arduino sends a command to the Nodemcu esp8266 wifi module, then Nodemcu then sends the command to the Blynk application.


The components and tools used in this project can be purchased from Amazon, the components Purchase links are given below:

Arduino Uno:
Mega 2560:
Infrared sensor:
Nodemcu esp8266 wifi module: Best price:
Other Tools and Components:

Super Starter kit for Beginners

Two Channel / 200 MHz Digital Oscilloscope

Variable Supply:

Digital Multimeter:

Soldering iron kit: “best”

PCB small portable drill machine:

*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!


About the IR Sensor Module:

iot based car parking

This is the IR sensor which I will be using for the cars detection. As you can see the three male headers are clearly labeled with the VCC, GND, and OUT. The VCC pin is connected with the Arduino’s 5 volts. The ground is connected with the Arduion’s ground. While the OUT pin is connected with Arduino’s IO pins. which I will explain in the circuit diagram. While the black and white LEDs are the IR LEDs “one is the Tx while the other one is the Rx”.

About the Nodemcu ESP8266 WIFI Module:

iot based car parking

This is the Nodemcu ESP8266 wifi module, with the help of this module we can monitor the car parking slots from anywhere around the world. As you can see clearly all the pins are clearly labeled. Never power up the Nodemcu esp8266 wifi module using the Arduino’s 5 volts. If you power up this module using the Arduino’s 5 volts then this wifi module we will keep resetting. To solve this problem you can design a separate power supply of this module using the LM7805 voltage regulator.


IoT based car parking Circuit Diagram:

iot based car parking

As you can see six infrared sensors are connected with the Arduino pins 4 to 9. The infrared sensor VCC pins are connected with the Arduino’s 5v. Grounds are connected with the Arduino’s Ground while the out pins of all the infrared sensors are connected with pin 4 to 9.

The Nodemcu module tx and Rx pins are connected with pin2 and pin3 of the Arduino. while the Vin pin of the Nodemcu module is connected with the output of the voltage regulator. This is a regulated 5v power supply based on the lm7805 voltage regulator.


Two 470uf capacitors are connected at the input and output side of the regulator.  A 330-ohm resistor is connected in series with a 2.5v led. This is a current limiting resistor. While J1 is a dc female socket, over here you can connect a 12v adaptor or battery. But you can also power up the Nodemcu module using your laptop USB port. I will be using two USB cables, I cable will be used for powering up the Arduino and the other USB cable will be used to power up the Nodemcu.

 

Blynk Application of IoT based car parking:

For the android or apple cell phone application designing you will need to download the Blynk application from the App Store. After you download the Blynk application then you will need to register yourself for free using Facebook or any other email id. The cell phone application making is explained in the video. The video is available at the end of this Article.


Programming of IoT based car parking:

In this project, two programs are used one for the Arduino and another one for the Nodemcu esp8266 wifi module.

Car Parking Arduino Programming:


Nodemcu esp8266 wifi module Programming of IoT based car parking:


Watch Video Tutorial:

Recommended For You

About the Author: Engr Fahad

My name is Shahzada Fahad and I am an Electrical Engineer. I have been doing Job in UAE as a site engineer in an Electrical Construction Company. Currently, I am running my own YouTube channel "Electronic Clinic", and managing this Website. My Hobbies are * Watching Movies * Music * Martial Arts * Photography * Travelling * Make Sketches and so on...

9 Comments

    1. Nodemcu esp8266 wifi module Programming of iot based car parking there is some error coming during verify on IDE platform. can anyone help me.

  1. are the above components are all needed for this project?? because you didnt use any led screen in the video

    1. Not all the components are used, some tools and components which I have added are the most commonly used components, which often people need. You can purchase the components which are used in the circuit diagram.

  2. i tried to run ur given nodemcu program but im getting an error. i posted it in Blynk community i got a reply ”The Blynk library includes Blunk timer, which is a improved version of simpletimer try removing the #include <simpletimer.h> and replacing SimpleTimer timer; with BlynkTimer timer;”
    After changing this program error was solved but another problem i got is The slot is continuously blinking. The IR sensor is working is also working fine when i move object towards it ir led glows and vice versa. so what may be the problem

    Arduino: 1.8.12 (Windows 10), Board: “NodeMCU 1.0 (ESP-12E Module), 80 MHz, Flash, Legacy (new can return nullptr), All SSL ciphers (most compatible), 4MB (FS:2MB OTA:~1019KB), 2, v2 Lower Memory, Disabled, None, Only Sketch, 115200”

    In file included from C:\Program Files (x86)\Arduino\libraries\Blynk\src/Blynk/BlynkApi.h:17:0,

    C:\Program Files (x86)\Arduino\libraries\Blynk\src/Blynk/BlynkTimer.h:36:21: error: redefinition of ‘class BlynkTimer’

    #define SimpleTimer BlynkTimer

    C:\Users\HP\Documents\Arduino\libraries\SimpleTimer/SimpleTimer.h:10:7: note: in expansion of macro ‘SimpleTimer’

    class SimpleTimer {

    C:\Program Files (x86)\Arduino\libraries\Blynk\src/Blynk/BlynkTimer.h:36:21: error: previous definition of ‘class BlynkTimer’

    #define SimpleTimer BlynkTimer

    C:\Program Files (x86)\Arduino\libraries\Blynk\src/Blynk/BlynkTimer.h:41:7: note: in expansion of macro ‘SimpleTimer’

    class SimpleTimer {

    exit status 1
    Error compiling for board NodeMCU 1.0 (ESP-12E Module).

    This report would have more information with
    “Show verbose output during compilation”
    option enabled in File -> Preferences.

  3. Dude please tell me which version of simpletimer and blynk libraries. Also please tell me how to solve this below error, also I have compiled the exactly same program as you given:
    ERROR:

    In file included from C:\Users\Dell E7440\Documents\Arduino\libraries\Blynk\src/Blynk/BlynkApi.h:17:0,

    C:\Users\Dell E7440\Documents\Arduino\libraries\Blynk\src/Blynk/BlynkTimer.h:34:21: error: redefinition of ‘class BlynkTimer’

    #define SimpleTimer BlynkTimer

    C:\Users\Dell E7440\Documents\Arduino\libraries\SimpleTimer/SimpleTimer.h:10:7: note: in expansion of macro ‘SimpleTimer’

    class SimpleTimer {

    C:\Users\Dell E7440\Documents\Arduino\libraries\Blynk\src/Blynk/BlynkTimer.h:34:21: error: previous definition of ‘class BlynkTimer’

    #define SimpleTimer BlynkTimer

    C:\Users\Dell E7440\Documents\Arduino\libraries\Blynk\src/Blynk/BlynkTimer.h:38:7: note: in expansion of macro ‘SimpleTimer’

    class SimpleTimer {

    exit status 1
    Error compiling for board NodeMCU 1.0 (ESP-12E Module).

Leave a Reply