Coder Social home page Coder Social logo

parking-system-iot's Introduction

Parking-system-IOT

A System created to check the availability of parking through a mobile app. This app uses Firebase as a database


The user will be able to receiver real-time information on how parking slots are occupied. This information can be accessed by the user through web or mobile phone, thereby allowing the user to determine a possible and convenient parking space accordingly.
The device once set up correctly in an individual parking slot will measure the distance between the vehicle and the device. This information will be displayed to the customer through the customer through web or mobile app, according to the customer’s choice, and the customer is free to determine how to park his/her vehicle according to the real-time information provided.

Assembly

  • NodeMCU

NodeMCU is an open source IoT platform which includes firmware which runs on the ESP8266 Wi-Fi SoC from Espressif Systems, and hardware which is based on the module ESP8266 SDK 1.4.

NodeMCU was used instead of the any other technology, because of its inbuilt Wi-Fi adapter. NodeMCU offers easy connection to the internet without much effort as well. A NodeMCU has a micro USB port for it to be connected to the laptop for coding and for a method for connecting to power.

  • An Ultrasonic sensor HC-SR04

The HC-SR04 ultrasonic sensor uses sonar to determine distance to an object. (Random Nerd Tutorials, 2013) The sonar can detect within a 2cm to 400cm range(non-contact measurement function), with an accuracy of 3mm. Each ultrasonic sensor has its own transmitter, receiver and control unit.

The Transmitter will emit a 40 kHz signal and detect a signal back with its receiver. Once received the control Unit will relay the information.

  • Jumper wires

Setting up the device

The NodeMCU and the HR-SR04 sensor should be connected as follows;

  • The sensor VCC (power) should be connected to the NodeMCU +3.3v
  • The sensor GND(Ground) should be connected to the NodeMCU GND
  • The sensor Trig (Trigger) Pin should be connected to the NodeMCU Digital I/O D4 (Input)
  • The sensor Echo Pin should be connected to the NodeMCU Digital I/O D3 (Output)

Setting up Wi-Fi and Database

This can be done by coding the SSID and the password of the Wi-Fi router, into the nodeMCU, which will provide the connection to the module to the internet. How it is coded is portrayed in the following;


To set up firebase, head to the firebase console and add project. Follow the instructions and link your project to the database.


By using the real-time database, all the information collected by the sensor and processed by the NodeMCU will be sent to firebase, and firebase will allow real-time updating of all values within the database.

The website is hosted using firebase hosting services, which can be followed through the firebase docs
https://firebase.google.com/docs

parking-system-iot's People

Contributors

dannytee99 avatar

Watchers

 avatar

Forkers

sahannonis

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.