To park in our parking system, all we need to do is scan our student ID (IITG) card. We’re alloted a slot which gets activated on a press of a button on our phone. Seamless locking system locks the cycle automatically as soon as the cycle is inserted in the alloted slot. The Intelligent anti-theft system ensures the safety of your cycle, so you don’t have to worry at all. And of course, the new smart parking provides support to your cycle, so situations like the one above, doesn’t arise.
Install mosquitto to run python scripts for wireless communication
pip install paho-mqtt sudo apt-get install mosquitto
Add this library of digital light sensor to arduino IDE.
- Connect Base Sheild to the arduino.
- Buzzer to A0
- Digital light sensor to I2C
- RFID
- +5 to Vcc of arduino board
- GND to GND of arduino
- TXD to RX1 of arduino
- Laser KY08
-
- to GND of arduino
- S to Pin 22 of arduino
- middle left unconnected.
- Ultrasonic sensor
- GND to GND of arduino
- +5 to Vcc of arduino
- Trigger to 12
- Echo to 11
- LCD display
- Servo motor (Lock)
- Vcc to positive terminal of a battery 4.5V battery
- GND to negative terminal of battery
- servo pin to pin 6 of arduino
- Connect WiFi adapter to raspi
- Upload final_ardm.ino on arduino Mega 2560
- Connect Arduino to Raspberry Pi
- Connect Pi to a WiFi network of your own
- SSH to the Raspberry Pi and
- Run parking.py on Raspberry Pi
- Pi will be used as broker too. Hence IP of Pi needs to be changed in mqtt_publisher.py and mqtt_subsriber.py
We have created these scripts for just one slot. and two other demo slots created using LEDs simulating motor and laser on that port. To increase number of slots just connect correct sensors to remaining slots of arduino and add them to motor_port.txt, laser_port.txt and