Skip to the content
2 layers44.5 × 42.4 mmLivecam, the printed circuit board in 3D

The Smart Gate System automatically manages vehicle access. It detects when a car arrives, captures the license plate, processes it, checks the database, and opens the gate if the plate is authorized. Simple, efficient, and automated access control.

Size
44.5 × 42.4 mm
Copper layers
2
Thickness
1.6 mm
Parts
24
Nets
37
Pads
100
Tracks, vias
231, 22
Pours
2
Routed
Yes
KiCad
KiCad 5 (file 20171130)
Created
6 Sep 2024
Updated
7 Sep 2024

Overview

Livecam is an open-source printed circuit board by FelixMarian, from the FelixMarian/Smart-Gate-System repository on GitHub, published under the MIT licence. It is a 2-layer board of 44.5 × 42.4 mm with 24 parts on 37 nets, routed with 231 tracks and 22 vias.

Its parts include 14 resistors, 4 capacitors and 2 connectors. It belongs with the AVR (ATmega, ATtiny) boards of this library.

README

README.md

Smart Gate System with License Plate Recognition

This project automates gate control using an ultrasonic sensor, OV7670 camera, and servo motor. The system detects a car's arrival, captures its license plate, checks it against a database, and opens the gate if authorized.

Table of Contents

Components Used

  • 1x Arduino UNO
  • 1x Arduino MEGA
  • 1x OV7670 Camera Module
  • 1x HC-SR04 Ultrasonic Sensor
  • 1x Servo SG90 9g
  • 2x Breadboard
  • 15x Male-to-female jumper wires
  • 15x Male-to-male jumper wires

Circuit & OV7670 Diagram

Circuit Diagram OV7670 Diagram

Schematic View

Schematic View

Installation

  1. Assemble the components: Connect the OV7670, ultrasonic sensor, and servo motor following the circuit and OV7670 diagrams.
  2. Upload the Arduino UNO code: Use the Arduino IDE to upload the provided sketch (src/LiveOV7670-master/src/LiveOV7670/LiveOV7670.ino) to your Arduino UNO.
  3. Upload the Arduino MEGA code: Use the Arduino IDE to upload the provided sketch (src/Data_receiver/Data_receiver.ino) to your Arduino MEGA.
  4. Get the tool for image processing: Download it from here and follow the instructions. If you need more guidance, refer to the tutorial I used here. It provides a detailed explanation for setting up the OV7670 module, but don't use his code, use the one provided within this repository, otherwise the communication won't happen.
  5. Install Python if it isn't installed and its modules:
    • matplotlib
    • easyocr
    • imutils
    • cv2
    • sqlite3
    • serial
    • PyQt5
  6. Connect both Arduinos to the PC

Usage

  1. Place the system: Position the ultrasonic sensor and OV7670 camera so that they can detect vehicles approaching the gate and capture the license plate. You can watch video.mp4 for a reference.
  2. Start listening for images: Open the tool and press "Listen" using a baud rate of 500000 and your COM port connected to Arduino UNO (you can check it in Arduino IDE -> Tools -> Port).
  3. Start the Python script: Open main.py from src/Data_processing/main.py.
  4. Automatic gate control: When a vehicle is detected, the system captures the license plate using the OV7670 camera, checks the number against a pre-existing database, and opens the gate if authorized.

Communication Between Arduinos and Computer

The system communicates with the computer to manage a database of authorized license plates and processes the captured image data for verification. The camera data is transmitted to the PC for further number plate recognition.

You can see the logic behind this communication here: Logical scheme

License

This project is licensed under the MIT License.

Credits

Parts

24
QtyValueFootprintReferences
61kResistors_SMD:R_1206_HandSolderingR4, R6, R8, R10, R12, R14
6680Resistors_SMD:R_1206_HandSolderingR3, R5, R7, R9, R11, R13
4CCapacitors_SMD:C_1206_HandSolderingC1, C2, C3, C4
210kResistors_SMD:R_1206_HandSolderingR1, R2
2Conn_01x02_MalePin_Headers:Pin_Header_Straight_1x02J1, J2
1Arduino_Nano_v3.xModules:Arduino_NanoA1
1Camera_OV7670Pin_Headers:Pin_Header_Straight_2x09OV76701
1DcDcConverterDcDc5VUp:DcDc5VUpDCDC1
1TFT_1.8inchPin_Headers:Pin_Header_Straight_1x08TFT1

More from FelixMarian/Smart-Gate-System

1
  • 2 layers43.4 × 37.8 mmKaamera ja ekraan, the printed circuit board in 3D

    Kaamera ja ekraan

    FelixMarian/Smart-Gate-System

    The Smart Gate System automatically manages vehicle access. It detects when a car arrives, captures the license plate, processes it, checks the database, and opens the gate if the plate is authorized.

    7 partsMIT

Similar boards

  • 2 layers56 × 65 mmSeaTalk1, the printed circuit board in 3D

    SeaTalk1

    dotnet/iot

    This repo includes .NET Core implementations for various IoT boards, chips, displays and PCBs.

    24 parts2.4kMIT
  • 2 layers26.2 × 45.5 mmPL18 multiprotocol, the printed circuit board in 3D

    PL18 multiprotocol

    pascallanger/DIY-Multiprotocol-TX-Module

    Multiprotocol TX Module (or MULTI-Module) is a 2.4GHz transmitter module which controls many different receivers and models.

    24 parts1.9kGPL-3.0
  • 2 layers58 × 35.5 mmHat, the printed circuit board in 3D

    Hat

    menloresearch/asimov-1

    v1 of Asimov, an open-source humanoid robot

    24 parts1.4kCERN-OHL-S-2.0
  • 2 layers21.6 × 19.5 mmMicron Logo LED, the printed circuit board in 3D

    Micron Logo LED

    DraftShift/StealthChanger

    Tool changing system for Vorons and other front mount printer motion systems, not just stealthburner.

    24 parts1.2kGPL-3.0
  • 2 layers158 × 11 mmRainbow Matchstick, the printed circuit board in 3D

    Rainbow Matchstick

    VoronDesign/Voron-Hardware

    Cool Hardware designed by the Voron Design group

    24 parts1.1kGPL-3.0
  • 2 layers85.6 × 54 mmTRACED wio1262-carrier, the printed circuit board in 3D

    TRACED wio1262-carrier

    hackclub/OnBoard

    💡 Join 1,000 teenagers and make your first PCB with a $100 grant!

    24 parts915
  • 2 layers36 × 20 mmCombined, the printed circuit board in 3D

    Combined

    adamb314/ServoProject

    Getting the most out of your hobby servo

    24 parts545

Questions

How big is the Livecam PCB?

It measures 44.5 × 42.4 mm and has 2 copper layers, 1.6 mm thick.

What parts does the Livecam use?

24 parts. The full list of its parts is on this page, with links to each part's symbol and footprint where PCBKit's library has them.

Where can I download the Livecam KiCad files?

From the FelixMarian/Smart-Gate-System repository on GitHub, at the commit this page was made from: the board is src/LiveOV7670-master/pcb/livecam/livecam.kicad_pcb. PCBKit opens the board in the browser, with nothing to install.

Can I use the Livecam design in my own project?

Its repository publishes it under the MIT licence: you may reuse it on that licence's terms (keep the author's notice, and for a copyleft licence share your changes alike).