daniel rodriguez, omar rodriguez, pooya nejad, joseph nyamogo group 11

45
Daniel Rodriguez, Omar Rodriguez, Pooya Nejad, Joseph Nyamogo Group 11

Upload: lily-owen

Post on 24-Dec-2015

224 views

Category:

Documents


1 download

TRANSCRIPT

Page 1: Daniel Rodriguez, Omar Rodriguez, Pooya Nejad, Joseph Nyamogo Group 11

Daniel Rodriguez, Omar Rodriguez, Pooya Nejad, Joseph Nyamogo

Group 11

Page 2: Daniel Rodriguez, Omar Rodriguez, Pooya Nejad, Joseph Nyamogo Group 11

Motivation

Finding a parking spot in one of UCF’s garages during rush hour is frustrating and time consuming.

There is currently no effective way of determining the closest available parking spot to your final destination.

Page 3: Daniel Rodriguez, Omar Rodriguez, Pooya Nejad, Joseph Nyamogo Group 11

ParkIt System Block Diagram

Page 4: Daniel Rodriguez, Omar Rodriguez, Pooya Nejad, Joseph Nyamogo Group 11

Objectives

Low Cost

Easy Installation - retro fit

Low Maintenance.

The nodes must have an energy harvesting power source.

Scalable design applicable to any garage size

Page 5: Daniel Rodriguez, Omar Rodriguez, Pooya Nejad, Joseph Nyamogo Group 11

Specifications

Cost < $50

15 seconds or less on lag time.

Detection proximity <= 2 ft.

Wireless range ~ 300ft

Low Power (82.5 mW max load)

Max. transmission power ~ 18.5dBm

Page 6: Daniel Rodriguez, Omar Rodriguez, Pooya Nejad, Joseph Nyamogo Group 11

Specifications

Max. current draw (idle) ~ 10µA

Max. current draw (transmission) ~ 22mA

Scalable to 1024 nodes.

Minimal maintenance ranging in the time frame of at least 10 years (e.g. replacing batteries where needed)

Installation cost per node is not to exceed $5

Page 7: Daniel Rodriguez, Omar Rodriguez, Pooya Nejad, Joseph Nyamogo Group 11

Sensor Node

Its function is to simply monitor a parking spot. If a car is occupying a spot, the sensor in the node will recognize it and the node will then transmit that information to the gateway. It is composed of(1) the sensor, (2) the transceiver, (3) the microcontroller, (4) power supply.

Page 8: Daniel Rodriguez, Omar Rodriguez, Pooya Nejad, Joseph Nyamogo Group 11

Sensor Selection

Inductive loop.

Mechanical Switch/Generator.

Piezoelectric.

Page 9: Daniel Rodriguez, Omar Rodriguez, Pooya Nejad, Joseph Nyamogo Group 11

Inductive loop

Disadvantages

Power requirements are relatively very high. Trucks would set the minimum sensing distance

Retrofitting is expensive.

Page 10: Daniel Rodriguez, Omar Rodriguez, Pooya Nejad, Joseph Nyamogo Group 11

Mechanical Switch/Generator

Disadvantages

The sensor requires that the vehicle runs over it, most of the components would have to be strong which could increase our budget.

Wear and tear can reduce the device lifetime.

It is not a proven application for detecting cars.

Complex design

Page 11: Daniel Rodriguez, Omar Rodriguez, Pooya Nejad, Joseph Nyamogo Group 11

Piezoelectric

Disadvantages

Require a channel to be sawed into the pavement. Retrofitting on existing garages more time consuming and expensive.

We would need a least a meter to ensure that the vehicle would compress the cable when entering or exiting the parking spot.

Page 12: Daniel Rodriguez, Omar Rodriguez, Pooya Nejad, Joseph Nyamogo Group 11

Anisotropic Magnetoresistive(AMR) sensor (Magnetometer).

The primary function of Anisotropic Magnetoresistive (AMR) sensors is to measure magnetic fields. They can be used to sense low fields (< 1 microgauss), medium fields (1 microgauss to 10 microgauss) and high fields(> 10 gauss).

The sensor monitors the changes in the earth’s magnetic field 0.6 gauss (48 A/m). When a vehicle approaches the sensor a distortion in the earth’s magnetic field will be measured. This measurement can be used to detect the presence of the vehicle.

Page 13: Daniel Rodriguez, Omar Rodriguez, Pooya Nejad, Joseph Nyamogo Group 11

Magnetometer

The sensor is less prone to false readings.

small enough to fit within a small sturdy housing, such as a light reflector which you find on the highways. Can be shielded from weather elements.

Affordability and low cost of the sensor ($3.79 at digikey ).

Page 14: Daniel Rodriguez, Omar Rodriguez, Pooya Nejad, Joseph Nyamogo Group 11

Magnetometer

Meets our low energy requirements

Potential use in reading multiple parking spots)

During normal operation, the AMR might need to be auto-calibrated. This can be done with offset straps which is easier than the implementation on other magnetometers (degaussing coils).

Page 15: Daniel Rodriguez, Omar Rodriguez, Pooya Nejad, Joseph Nyamogo Group 11

Magnetometer

Page 16: Daniel Rodriguez, Omar Rodriguez, Pooya Nejad, Joseph Nyamogo Group 11

Microcontroller The Microchip PIC24FV32KA304 was chosen.

PIC24F products support 1.8V-3.6V operation

Low-Power Consumption: Run mode currents down to 8 μA, typical

Idle mode currents down to 2.2 μA, typical

Deep Sleep mode currents down to 20 nA, typical

1uS wake-up from Sleep

Multiple Serial Communication modules: Two 3-/4-wire SPI modules

Two I2C™ modules with multi-master/slave support

Two UART modules supporting RS-485, RS-232,

Page 17: Daniel Rodriguez, Omar Rodriguez, Pooya Nejad, Joseph Nyamogo Group 11

Communications

MRF24J40MA Transceiver module is used to transmit and receive data from the sensor board to the sub gate .

Integrated PCB Antenna with Simple four-wire SPI interface to PIC microcontroller

2.4 GHz transceiver module that is certified to IEEE 802.15.4 standard.

It has integrated antenna and supports ZigBee, MiWi and MiWi P2P protocols.

Low current consumption- TX 23mA- Rx 19mA- Sleep 2uA

Page 18: Daniel Rodriguez, Omar Rodriguez, Pooya Nejad, Joseph Nyamogo Group 11

Circuitry

The operating voltage for the transceiver module is 3.3V. This power provided by the Power Management System.

The Transceiver module requires 3 additional pins on top of the four standard SPI pins. The pins include the Interrupt, Wake and Reset.

Page 19: Daniel Rodriguez, Omar Rodriguez, Pooya Nejad, Joseph Nyamogo Group 11
Page 20: Daniel Rodriguez, Omar Rodriguez, Pooya Nejad, Joseph Nyamogo Group 11

Network Protocol

We decided to choose the Microchip MiWi wireless networking protocol because it provides a low cost and easy to use development with our Microchip microcontroller.

A network using the MiWi™ protocol is capable of having a maximum of 1024 nodes on a network.

Each coordinator is capable of having 127 children, with a maximum of 8 coordinators in a network.

Packets can travel a maximum of 4 hops in the network and 2 hops maximum from the PAN coordinator.

For implementing a larger network, we need a more complex networking solution like ZigBee but for proof of concept the MiWi protocol is sufficient.

Page 21: Daniel Rodriguez, Omar Rodriguez, Pooya Nejad, Joseph Nyamogo Group 11

MiWi functionality

The basic function of wireless communication protocol is to transmit and receive data between multiple nodes.

Page 22: Daniel Rodriguez, Omar Rodriguez, Pooya Nejad, Joseph Nyamogo Group 11

Power Management System

There are three major components that make up the power management system. Li-Polymer Battery Power Management Integrated Controller (PMIC) Solar Panel

Page 23: Daniel Rodriguez, Omar Rodriguez, Pooya Nejad, Joseph Nyamogo Group 11

Li-Polymer Battery

E-flite Li-Polymer Battery

Capacity: 150mAh 1S 3.7V

37.5mm x 12.2mm x 5.5mm

Maximum Continuous Discharge :25C

Maximum Continuous Current :3.75A

Page 24: Daniel Rodriguez, Omar Rodriguez, Pooya Nejad, Joseph Nyamogo Group 11

Solar Panel

AM-1815 Amorphous Silicon Solar

Panel Typical output at 200 lux:

3.0V , 42uA Dimensions are 58.1mm x

48.6mm x 1.3mm

Page 25: Daniel Rodriguez, Omar Rodriguez, Pooya Nejad, Joseph Nyamogo Group 11

PMIC

Linear Technology’s LTC 3105 Wide VIN Range: 225mV to 5V Small footprint gives flexibility in

PCB design. (3mm × 3mm × 0.75mm)

Page 26: Daniel Rodriguez, Omar Rodriguez, Pooya Nejad, Joseph Nyamogo Group 11

Power Management System Schematic

Page 27: Daniel Rodriguez, Omar Rodriguez, Pooya Nejad, Joseph Nyamogo Group 11

Sensor Node Firmware

The sensor will be sampled and the data will be stored in the memory

The sensor will be sampled every 15 seconds to conserve battery power

Every sampled data will be compared to the previous value stored, if the delta is greater than the specified threshold, an event will be triggered

Page 28: Daniel Rodriguez, Omar Rodriguez, Pooya Nejad, Joseph Nyamogo Group 11

Sensor Node Firmware

Page 29: Daniel Rodriguez, Omar Rodriguez, Pooya Nejad, Joseph Nyamogo Group 11

Gateway

The Gateway serves as a coordinator node in our MiWi network, there can be a maximum of 8 sub gates per network.

All the sensor nodes in a floor will be transmitting their data to a Gate Way.

The difference between the Gateway and sensor node is the lack of the magnetometer sensor in the Gateway. However we will use the same PCB design in case we will need a reference sensor which we could potentially place in any or all the Gateway.

The Gateway is connected to the server directly. However, in a real world application where the distance can be larger, the Sub gate is required as intermediary.

Page 30: Daniel Rodriguez, Omar Rodriguez, Pooya Nejad, Joseph Nyamogo Group 11

Gateway Firmware

The Gateway has a very simple function. All it does is relay messages.

It will receive data from the sensor nodes, and it will relay the data to the network daemon.

Page 31: Daniel Rodriguez, Omar Rodriguez, Pooya Nejad, Joseph Nyamogo Group 11

Server

The server will do the majority of the data processing, it consist of three main components:

1. Network Daemon – Processes the network data makes necessary computations and stores values into the MySQL database.

2. MySQL database – Serves as a medium to store the data

3. HTTP server – Processes data retrieved from the SQL database and formats for display to an end user. Also provides an interface to configure certain aspects of the system.

Page 32: Daniel Rodriguez, Omar Rodriguez, Pooya Nejad, Joseph Nyamogo Group 11

Network Daemon

Will run as a background process on the server and is constantly monitoring the serial connection to the wireless sensor network.

Parses the serial data retrieved and determines if any computations need to be performed with the current data.

Calculate the percentage of vacant spaces per Location/Garage/Floor.

Stores the data into the MySQL database.

Will be written in Python

Page 33: Daniel Rodriguez, Omar Rodriguez, Pooya Nejad, Joseph Nyamogo Group 11

Network Daemon cont.

Page 34: Daniel Rodriguez, Omar Rodriguez, Pooya Nejad, Joseph Nyamogo Group 11

MySQL Database

Will store all the data acquired from the network as well as other computed values.

Will be created and stored in a Linux based VM to allow portability to design and testing across different platforms.

Needed fields include the node Name, node Network ID, node Status and necessary hierarchal data (i.e. the ID and parent ID).

Queries will be performed using built in PHP functions.

We opted with the Adjacency list Model to organize our data due to its simplicity and ease of implementation.

Page 35: Daniel Rodriguez, Omar Rodriguez, Pooya Nejad, Joseph Nyamogo Group 11

MySQL: Adjacency Model

Page 36: Daniel Rodriguez, Omar Rodriguez, Pooya Nejad, Joseph Nyamogo Group 11

HTTP Server

Apache 2 will be used as the http server.

PHP and MySQL related modules will be loaded to facilitate other properties of the project.

Will be part of the VM where the MySQL database resides.

Page 37: Daniel Rodriguez, Omar Rodriguez, Pooya Nejad, Joseph Nyamogo Group 11

User Interface

The main focus of the user interface is ease of use and fast information recognition. We want the end user to identify the relevant data as easy and fast as possible. This is mainly due to the fact that the user will most likely be driving while using the application.

The user interface will be written using the jQuery Mobile platform to allow for cross platform device compatibility.

Well known standards are used when for the user interface i.e. HTML, CSS, JavaScript and PHP.

Page 38: Daniel Rodriguez, Omar Rodriguez, Pooya Nejad, Joseph Nyamogo Group 11

User Interface

The main features of the home page are:

1. Locations List

2. Main Navigation bar which includes a Locations/Home link and a Find car Link.

Page 39: Daniel Rodriguez, Omar Rodriguez, Pooya Nejad, Joseph Nyamogo Group 11

User Interface

Once a location has been chosen the user then chooses a garage.

The main feature on this and every page is the percentage available to the right. Based on this percentage a user will choose which Location/Floor/Garage they will like to park in.

The Percentage will updated using AJAX to avoid page refreshes.

Page 40: Daniel Rodriguez, Omar Rodriguez, Pooya Nejad, Joseph Nyamogo Group 11

User Interface

The Floor page is exactly like the garage and Locations page as you may have noticed. This is by design as we would like to create consistency allowing users to quickly identify information.

All the location list are generated using PHP loops that dynamically set values for each list item that is used in the SQL queries to retrieve necessary data.

Page 41: Daniel Rodriguez, Omar Rodriguez, Pooya Nejad, Joseph Nyamogo Group 11

User Interface The Spaces page differs from the

three previous pages due to the fact that will want a 2D representation of the floor in question to provide a sense of direction to the user.

Available spaces will be highlighted and can be chosen from the drop down list when a user is ready to park. If the Park Now button is chosen the user is then registered in the system as being parked in that spot. However it is not necessary as the back end will also identify the parked vehicle.

Future version of this application may provide GPS assistance as well.

Page 42: Daniel Rodriguez, Omar Rodriguez, Pooya Nejad, Joseph Nyamogo Group 11

User Interface

The find my car link will give the user information on where he/she parked.

Future version of this application may incorporate a positioning system to allow a user to find his/her vehcle.

Page 43: Daniel Rodriguez, Omar Rodriguez, Pooya Nejad, Joseph Nyamogo Group 11

Team Contributions

Page 44: Daniel Rodriguez, Omar Rodriguez, Pooya Nejad, Joseph Nyamogo Group 11

BudgetQTY Description Supplier Bulk Unit Price Project Unit Price Bulk Total Project Total

1Thin Film Micro Energy Cell

Infinte Power Solutions $10.44 $10.44 $10.44 $10.44

22Capacitors Digikey Varies Varies $0.21 $3.06 3LEDs Digikey 0.15 0.37 $0.45 $1.11 1Schottky Diode Digikey 0.07 0.52 $0.07 $0.52 2DPDT Switch Digikey 0.06 0.76 $0.12 $1.52 3Header Digikey 0.11 0.17 $0.33 $0.51 2MOSFETs Digikey 0.1 0.57 $0.20 $1.14 2MOSFETs Digikey 0.05 0.52 $0.10 $1.04

27Resistors Digikey Varies Varies $0.44 $2.70 4PushButton SPST Digikey 0.08 0.31 $0.32 $1.24 2Test Connectors Digikey 0.08 0.22 $0.16 $0.44

1Magnetometer Digikey 1.59 4.75 $1.59 $4.75

1Microcontroller Digikey 2.68 4.28 $2.68 $4.28

1EEPROM Digikey 0.35 0.61 $0.35 $0.61

1Transceiver Digikey 7.98 10.87 $7.98 $10.87

1OP-AMP Digikey 0.42 0.68 $0.42 $0.68 1PMIC Digikey 3.75 0 $3.75 $0.00

1PCB Adavanced Circuits 7.8 66 $7.80 $66.00

1Zena Module Digikey 49.95 49.95 $49.95 $49.95

1PicKit3 Digikey 44.95 0 $44.95 $0.00

1Development Board Digikey 207.96 $207.96

Board Totals $37.41 $110.91

Final Total $701.55

Page 45: Daniel Rodriguez, Omar Rodriguez, Pooya Nejad, Joseph Nyamogo Group 11

DONE!

Thank you for your time and attention!!