

We chose GPIO19 and GPIO26 respectively as input pin since they are free available.

The middle pin should be connected to the power supply (3V3 output on RPi), while the right one should be connected to a 1k resistance, then to GPIO to provide control signal. Among three pins of each sensor, the left one needs to be grounded. We first started with building the fundamental subsystem composed of a RPi, a camera, two IR sensors and a servo which is used to control the barrier.įor the camera, we connected it with RPi using a cable with proper length.įor IR sensors, We used GP2Y0D810Z0F, which is a distance measuring sensor to detects objects between 2 cm and 10 cm (0.8″ and 4″) away, composed of an integrated combination of PD (photo diode), IRED (infrared emitting diode) and signal processing circuit.For proper installation and use, we first soldered the pin portion and main sensor portion together, then, connected them with RPi respectively. The hardware design of our parking system consists of two Raspberry Pi, a station, a barrier, two IR sensors, a modeling car and a camera. And RPi will control the barrier to lift down. After the car passes through the barrier and reaches a certain distance, another sensor behind the barrier will react and transfer a signal to RPi. If it matches with the number plates in the if-statement we set before, the barrier will lift up to let the car in, or the car will be barriered out. After processing with OCR, the number plate will be recognized by RPi, then displayed on the PiTFT. Then, RPi will control the camera to take a photo, and processing the image get from Rpi camera using openCV and transfer individual number or letter images to a sequence of characters using OCR so that the input number plate can be checked whether matched the stored number plates string in “database”.

The whole parking system runs as shown in the figure below: when the car moves close to the barrier within a certain distance, a sensor will react and transfer a signal to the RPi. The other is for controlling two Infrared IR sensors to trigger camera and servo respectively, and for image processing and recognition. One for controlling the car stuck with printed number plate to move linearly toward the barrier and stop if it is not allowed to enter. Our project aims to design a parking barrier modeling system with automatic number plate recognition.In our project, we used two Raspberry Pi.
