Inspiration

We wanted to end the fear of parking lots, especially at hospitals. We noticed the time it takes for some people to find parking when they need it was a problem. We wanted to solve this by making parking lots less unknown. did this by making a system for parking lots that can get which parking slots have cars, and other information such as the license plate.

What it does

It uses an ultrasonic range detector to check if there is a car in a slot. If a car enters or leaves a slot, it takes a picture and sends the information to the server (which slot, is there a car, and picture).

How we built it

We used java, javascript, and sockets to send data between servers. We used the pi4j and jrpi libraries to use the RPi GPIO and Camera in java.

Challenges we ran into

We ran into challenges such as inaccuracies in the range detector for which we had to develop an algorithm to make a range of error. We had trouble using sockets to send from java to javascript, and we had troubles using sockets across threads. We solved the javascript issue by making a java program on the javascript website to get the information and store it in a file. We solved the thread issue by putting the items in a queue that will be sent to the server sequentially, one at a time.

Accomplishments that we're proud of

We made a car parking system that is scalable and intractable.

What we learned

We learned that the biggest struggles when making a program that uses servers that talk to each other is making the servers talk to each other. This is especially true when you use java because java sockets are frustrating.

What's next for Parking_SYS

We plan to make an API to read data from our database, and make our database scalable to more than 3 cars. Right now, our database is a set of 3 files, one for each car. The rest of the program can work for more than 3 cars.

Share this project:

Updates