Skip to content

Parking space monitoring using raspberry pi and IR module with Android app connected to MySQL server on the raspberry pi to view the parking slot occupancy.

Notifications You must be signed in to change notification settings

josepaul99/parky-parking-space-monitoring

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Parky

Parking Space Monitoring using Raspberry Pi

Parky was the final year project in my Bachelor's degree which was completed in the year 2016. It is a simple working model of parking monitoring using Raspberry Pi 2 Model B and IR sensors.

Screenshots

Parky App

Tech

Raspberry Pi
  • The raspberry Pi 2 was installed with the raspbian OS and mysql server was setup in it.
  • The database was designed to store the user details and parking slot status.
  • Three IR Sensors were connected to the GPIO ports of the raspberry pi.
  • A python script was written to read the IR sensor status and update the database accordingly.
Python
  • The python script runs on the raspberry pi
  • The script imports the raspberry pi GPIO library and setups the GPIO ports 17, 18 and 27
  • The script also connects to the mysql server which is locally hosted.
  • When a HIGH (means an object is infront of the IR sensor) is detected at the GPIO port, the corresponding sensor's database value is updated to 1.
  • When a LOW (no object is infront of the IR sensor) is detected at the GPIO port, the corresponding sensor's database value is updated to 0.
Android
  • Android app connects to the mysql database in the raspberry pi to read the sensor status.
  • The total and available parking space at the chosen location is displayed to the user.
  • The app has a login and signup page for authentication.

Working Environment

As this was an academic project it was developed to work in the local home network by setting the IP of the raspberry pi to static so that the mysql server host address doesn't change on router reboot. The android phone loaded with the Parky app and raspberry pi is also connected to same wifi network so that the app can connect to mysql database.

About

Parking space monitoring using raspberry pi and IR module with Android app connected to MySQL server on the raspberry pi to view the parking slot occupancy.

Topics

Resources

Stars

Watchers

Forks