The Garaginator Car Tracking System For Garages Group 5 Sebastian Rodriguez E.E. Jonathan Gillis CPE Jon Staudt E.E. Elliot Rodriguez CPE Motivation Current UCF garage system is inefficient and slow to update In many cases we would see a sign for a garage say OPEN but there would be barely any spots or possibly zero spots remaining in the garage. Garages are large and easy to lose your car in Current garage tracking systems are expensive Solutions Implement garage sensors directly connected to a microcontroller which sends information to a web server to update the volume of cars and spots available in

real time Create a quick and streamlined process to save your cars location for a later reminder upon return to the garage Use readily available and inexpensive parts for all aspects of the design Block Diagram Back-end Kiosk Sensors Database Keypad ATMega328p Sensor

Diodes LCD ESP8266 WiFi Module Server Web Client (Mobile, Desktop) Specifications The Garaginator: Quick and easy to use - No more than four menus for the Kiosk Fast and reactive user interface - Keypad latency less than 150 ms Cheap hardware solution - Under 100 dollars per unit Server must be able to handle a high volume of data with ease Users must be able to save or retrieve their vehicles location

Responds to user requests in less than four seconds Part Selection - Photodiode Purchased from Amazon HiLetGo Brand 25 cents each Active Low output Part Number: 3-01-0591 Part Selection - Lasers Purchased from Amazon GeeBat Brand 60 cents each 650 nm, 5V, 5mW laser dot diode Part Number: 80-141-10 Part Selection - Housing Purchased from Skycraft

5.25" x 3.25" x 1.6 Drilled into sides for placement of sensor circuits and wires $4.50 each Part Number: SK4465 Part Selection - LCD Display Purchased from sparkfun Has a serial interface (not parallel), therefore requiring less GPIO pins from the MCU Also has a backlight, so it can be used at night Was not necessary to have fancy graphics, so we chose something inexpensive - $24 Part Number: LCD-09395 Part Selection - Keypad

3x4 numeric keypad, rather than one with alphanumeric input Cost $3.40 Decision was largely driven by desire to reduce costs Part was purchased at Skycraft Part Selection - Network Interface Using the ESP8266 WiFi transciever TBD Control Brand Very low cost - $3.50 on amazon Uses UART interface, easing requirements from MCU Allows flashing of custom firmware, which offloads some computation from the host microcontroller Part Number: B01MT6T73L Sensor Requirements Accuracy - Car should trigger sensor only once as it enters or exits False Positives - Sensors should be able to filter out false positives

Noise Resilience - Sensor should not be triggered or prevented from triggering by noise Small Cone of Detection - Cone of Detection should be as close to 0 degrees as possible Sensors Optical sensor system with laser and photoresistor Voltage level of circuit driven to 5V as laser shines on it Signal that car has entered is sent when voltage level drops to 0 V Two sensors per lane to reduce false positives Microcontroller Choice MCU USB

UARTs #Pins (&GPIO) Self Programing Clock Speed Cost Rasp. Pi 3-b Y 0

40 (40) Y 1.2 GHz $35 nRF52832 N 1 48 (32) N 64 MHz

$20 PIC32MX64 Y 4 64 (53) N 200 MHz $20 PIC32MZ144

Y 6 144 (120) N 252 MHz $10 MSP430F67 N 3 100 (72)

Y 25 MHz $7 ATMEGA328P N 1 28 Y 20 MHz

$2 ATMEGA328P-PU 8-Bit AVR RISC-based MIPS Max Core Clock Speed - 20 MHz Operating Voltage 1.8 - 5.5 Volts UART(s) - 1 (Pairs of RX and TX) 6 channel A/D converter Number of Pins - 28 Low-Power Modes

$2.18 from Microchip Direct Power Supply and Voltage Regulators Wall outlet 120V 60Hz AC to 9V DC Two voltage regulators 5V & 3.3V 3.3V required for Wifi Module 5V for everything else PCB Design Kiosk - Overview Houses the PCB Allows users to input or retrieve their vehicles location from inside any garage Interprets analog data from sensors Sends amount of cars entering and exiting a garage to the backend

web server Kiosk - Interpreting Sensor Data Each lane has two laser/diode pairs, to ensure that an object passing through is at least a certain length Laser Diode Laser Diode Counters increment on the rising edge of the first pair, only if the second pair is also already broken. This system works well for the case

of cars tailgating Kiosk - Interpreting Sensor Data When a car enters the garage it will always break both lasers on the way in Laser Diode Laser Diode Kiosk - Interpreting Sensor Data When a car enters the garage it will always break both lasers on the way in

Laser Diode Next, the first pair will become unbroken Laser Diode This is the transition where the counter gets incremented/decremented Kiosk - Interpreting Sensors Note that even if a car is tailgating extremely closely, this transition will

still occur This works as long as the cars arent moving so fast that there isnt time for a sensor reading Laser Diode Laser Diode Kiosk - Other Challenges User interactions must be smooth and responsive, meaning the MCU must always be ready to accept input Takes Sensor readings every 100 msec, and determines whether that means there is a car

Must make readings very quickly to keep user input latency low The Kiosk must also send all this information to the web server, while taking care to avoid data races Since there is only one data connection to the WiFi module, sensor data and parking spot data cannot be transferred simultaneously We managed to do all this with about $5 worth of processing power Kiosk - Software Design The key was to leverage the processing capabilities of the ESP8266 module with the I/O capabilities of the ATMega We used a command pattern to allow the ATmega to control the processing on the WiFi module. All commands are initiated by ATMega, and consist of a single line in a format that is convenient for the receiver Below is a rough example of the data exchange when a user is looking up where they parked REQ:/getSpot {userid:123,passcode:9876} ATMega RSP:200:GARAGE D FLOOR 2 SPOT NUM 555

ESP8266 WiFi Module Software Details NodeJs is being used as our backend Server Handles update requests when garage sensors are triggered Used to constantly refresh the garage information table on the website Handles data transfer of vehicle location to our garage kiosk system and website. MySQL is the Database Management System we are using Holds information for all garages and users Used to store users vehicle location HTML, BootStrap CSS and AngularJS used for creating frontend web page Displays real time garage information/availability Allows users to store and retrieve their vehicles location NodeJS Description Very good at handling a large amount of requests with ease, specifically I/O requests by using asynchronous event driven APIs.

NPM (Node Package Manager) which is a great tool for managing 3rd-party dependencies. Lots of useful libraries such as crypto which we used to implement a sha256 login system. We use a NodeJS MySQL plugin which allows us to pool database connections, this lets us hand a database connection to any http request that requires one. Database Tables Description The Users table holds user id (possibly UCF ID), salt, and passcode The Garage table holds garage information such as number of spots and floors Vehicle location uses two foreign keys (account_id from users table which is also the primary key) and (garage_id from garages table) in order to create a unique entry in this table allowing users to store their location to be retrieved later. Web Application - Interface The Garage information is immediately accessible The garage tables update in real time

Users can store their vehicles location manually by filling out the form or they can take a picture of a QR code located at that location. We use a JavaScript port of the ZXing QR code scanner library to read and process images sent from users to extract and decode the QR code from the images they upload. Users can retrieve their spot if they have saved one Task Allocation Total Development Costs Budget Part Router

Per Unit Cost Part #required in project Price Perf Board $1.50 6 3 x 4 Keypad $3.50

1 $24.95 1 ATMEGA328P $2.18 1 Sensors - Lasers $0.60 4 Sensors - PhotoDiodes

$0.25 4 ESP8266 Wifi module $3.50 1 PCB - Estimate $0.20. 1 Housing Units

$4.50 7 LCD Character Display Total Unit Costs $51.23 Price # ordered $50.00 1 ATMEGA328P

$2.18 5 Pef Board $1.50 10 3 x 4 Keypad $3.50 1 character display $24.95

1 Magnetic card reader $12.90 1 PIC32MZ2048EFH144 $9.67 8 Sensors - Lasers $0.60

10 Sensors - PhotoDiodes $0.25 20 ESP8266 Wifi module $3.50 4 PCB $0.20 10

Housing Units $4.50 9 Breakout Board #1 $2.60 4 Breakout Board #2 $1.60 4

Ethernet RJ45 Jacks $6.69 5 $15.00 1 $0.67 1 $50.00 1 Soldering Flux Pen

Ethernet PHY Chip KSZ8081 Debugger Total $378.03 Questions?

Recently Viewed Presentations

  • Overview - Weebly

    Overview - Weebly

    Privately circle your level of agreement with the 8 statements. Mindset Survey. INTENT: Participants will become aware of their own Mindset. Refer to the handout, "Mindset Survey and Scoring Guide."
  • Consumers Rule - Universitas Lampung

    Consumers Rule - Universitas Lampung

    Marketing Plan Exercise Select a familiar service such as a bank, an airline, or even your university. Develop strategies for creating a servicescape that will be a positive influence on customers' purchase decisions, their evaluations of service quality, and their...
  • Coloring Genetics - Gavilan College

    Coloring Genetics - Gavilan College

    Using the Punnett Square I have blue eyes, and my husband has brown eyes, so by using on simple Mendelian genetics, I can predict the color of eyes for our potential children. The Prediction vs. The Results Taking a new...
  • Changing financial environments: an assessment framework for ...

    Changing financial environments: an assessment framework for ...

    Our presenters. Graham Tuthill. Cisco Lead Security Instructor. Global Knowledge. I joined Global Knowledge as a Cisco trainer in February 1999. I have since progressed on to become a Lead technologist for a small team of Cisco trainers.
  • Elements, Compounds, & Mixtures

    Elements, Compounds, & Mixtures

    Get out a sheet of paper and title it "Elements, Compounds, and Mixtures Pretest. Put your name, date, and period in the top right corner. It should be quiet when the bell rings or we will do write-offs and you...
  • Integrating Connected Vehicle Technologies in Support of Traffic

    Integrating Connected Vehicle Technologies in Support of Traffic

    Integrating CV and TIM: Phase 3 . Long-Term (2025+) Ensure that "back-end" data analytics consider needs of emergency responders in improving situational awareness and decision support. Reliance on CV/data likely to require more aggressive maintenance of CV infrastructure. Continued training...
  • Hydraulic Turbine - 123seminarsonly.com

    Hydraulic Turbine - 123seminarsonly.com

    Hydraulic Turbine Dr. Rajendra Shrestha Introduction: Fluid machines are the m/C that converts the fluid energy to mechanical/ electrical or vise versa. Pump: add energy to fluid Turbine extract energy from fluid A hydraulic turbine is a prime mover that...
  • Getting the Most Out of the ADP Website

    Getting the Most Out of the ADP Website

    Primary use is to announce new described DVDs. Secondary use is to retweet information about description . We Have a Listserv! Share information on or ask a question about audio description. See the About/Contact page on our website to join...