group 9 jake hochstadt ee matt simons ee jerome yearwood ee ryan moreland cpe

35
Group 9 Jake Hochstadt EE Matt Simons EE Jerome Yearwood EE Ryan Moreland CpE

Upload: griselda-bishop

Post on 29-Dec-2015

213 views

Category:

Documents


1 download

TRANSCRIPT

Mirror Mate Group 9

Group 9Jake Hochstadt EEMatt Simons EEJerome Yearwood EERyan Moreland CpE

1MirrorMate in a Nutshell

(1 minute)High level must mention each subsystem of the project and how it works together. Give a brief explanation of each subsystem2

(15 second slide)Heres another picture to show a better simulation of what the final product will look like on a rearview mirror3Goals and ObjectivesEmergency Vehicle Alerts via an already existing systemSafety in School Zones and Construction ZonesTurn by Turn DirectionsHarness the drivers attention1 minute slideTalking Points:-Mention how emergency vehicles can change intersection lights. We are using this system Be sure to say that we will explain the system in detail in the IR section-Place the IR beacon in construction and school zones to notify drivers-Will be displayed mirror and the mobile device-Its better to look at the rearview mirror than looking down at your phone on your knee every 6 seconds.4Display and MicrocontrollerJerome Yearwood

Segue slideIntroduce Jerome to talk about the Display stuff (15 second slide)5Inspiration

LCD Displayez-LCD-3012.6 TFT LCD color display 400x240 resolution4Mbytes flash memory 3.3V operating voltageResistive touchscreenPrograms in ASCIISerial TTL interface

Microcontroller (PIC18F26K22)Operating voltage VDD =1.8 to 5.5VProgram Memory Flash 64KB16 MHz precision internal oscillator2 EUSART portsSupports RS232Auto-Baud DetectAvailable in through hole and surface mountMeasurement Modules

Infrared SystemsMatt Simons

Matt SimonsWhat is Opticom?Opticom is a traffic light preemption system currently used by emergency vehicles to quickly maneuver intersectionsUtilizes a powerful IR beacon mounted on the emergency vehicle

2 ft.

IR sensors are mounted on the traffic lights14Hz frequency, newer systems feature authentication4 in.First I will describe a few IR systems and then explain how they will be used by mirrormate - Here you can see the IR emitter inside the light bar that would be installed on the roof of a typical squad car (use laser beams) - Some of you may have seen these sensors mounted on stop lights (laser beams)- Datasheet says has a max range of about half mile.- Authentication is achieved by encoding a vehicle identification number into the 14Hz IR carrier13Reduced speed zone beaconPlaced in construction zones, school zones, accident scenes or anywhere a driving hazard exists

User configurable via buttons and seven segment displays

Features alerts for school zone, construction zone, accident scene, and special event.

This doesnt exist, we are making it, it came from our brains!Flexible mounting options, post, bobs barricades, against a buildingEasily configurable via the buttons on the side, confirms configuration changes on 7 seg

14Beacon detailsUtilizes peak wavelength of 950nm at 38kHz, High power emitters, estimate 1500ft line of sight range

Encodes information into RC-5 similar protocol

41 high power emitters

Flexible power supply

The protocol will be a mix between the RC-5 and NEC type remote control protocols. This ensures security through obscurity and also ensures the beacons will not interfere with any existing devices.

The beacon will use 41 high power LED emitters and a MOSFET amplifier circuit

The beacon will operate on battery power, can be powered by construction vehicles, or by mains voltages.15MirrorMate IR receiverTwo different frequency receivers to accommodate the Opticom system (14Hz) and the reduced speed zone beacon (38kHz)

The 14Hz signal will be detected via photodiodes, band pass filters, and firmware

The 38kHz signal will be decoded using integrated IR receiver/decoders. The encoded data will be interpreted by the MCU

Four directional receivers located in the bottom of the mirror determine directionThe 14Hz opticom signal only needs to be detected. The authentication codes will not be decoded.The receiver will be located in the bottom of the mirror in a small IR transparent enclosure as shown

16

Here is a block diagram of the IR receiver portion of mirrormateSee the two receivers blah blah

If we need more time talk about optics, lack there of17Bluetooth SystemsJake Hochstadt

Bluetooth HardwareCurrent: 8mA 40mAVoltage: 3 - 4.2 V

BenefitsInexpensiveEase of useDetrimentsChinese part

HC-05 Bluetooth Serial Module

Ebay part, paid about 8 dollars shipped. We found a seller from New York2.0 doesnt have enhanced data rate but will work Supposed to work out of the box in a rs232 configuration. The TX and RX pins on the chip will be wired directly into our PIC microcontrollerChinese part made by a Chinese company. Some of the documentation is in fragmented and half translated English19

The above diagram is how were going to connect the Bluetooth module to the PIC microcontrollerThe configuration on the right is used to change settings on the adapter. For instance, resetting the adapter, or changing the modes20Initial Bluetooth ConfigurationAT+ROLE=0

AT+CMODE=1

AT+UART=9600

Set the device in slave mode. The mobile phone will play the role of master Pair with Specific MAC address.Set the BAUD rate to 9600 symbols per second

21Android Development PhonesMotorola Photon 4gAndroid (2.3)Bluetooth: v2.1Screen Size: 4.3 inchesMotorola DefyAndroid (2.3)Bluetooth: v2.1Screen Size: 3.7 inches

We chose these phones because these were the phones we had laying around. Both run Android 2.3. Android 2.3 is a slightly older version of Android but for the purpose of this app, it will work fine. Both run Bluetooth v2.1 which is backwards compatible with the bluetooth chips we picked, which are v2.0

The phones we chose to run our Android app are listed here. The Motorola photon 4g and the Motorola Defy. We chose these phones because to be honest, these were the phones we had laying around. They both run Android 2.3. Theyre running somewhat older versions of Android but they will work perfectly to run our application. Both have the same version of bluetooth which is v2.1. Even though these phones have a newer version of bluetooth than the bluetooth module we chose, theyre backwards compatable which shouldnt give us any issues. The screen sizes are a 4.3 inches for the photon and 3.7 for the Defy.22Bluetooth SoftwareAndroid APIwww.developer.android.comImportant ClassesBluetoothAdapterBluetoothServerSocket

Now that we know what hardware were going to use, now lets talk software on the Android sideFortunately, Android has a really good documentation website at developer.android.com

All the bluetooth APIs are located in the Android.bluetooth package. The main classes well be using to setup the connectivity:The Bluetooth BluetoothServerSocket: well use this class to setup the Serial Port Profile for bluetoothWell use this to setup the RFCOMM socket. RFCOMM is a connection-oriented, streaming transport over Bluetooth. It is also known as the Serial Port Profile (SPP).

23Android ApplicationRyan Moreland

Android DevelopmentApplication written in Java for Android version 2.3.4 (Gingerbread)

Backwards compatible with all future Android versions

Android holds approximately 75% of the U.S. market share

Android DevelopmentWritten utilizing the Google Distance Matrix API

Google Maps JavaScript API

Google Maps Android API

Android Bluetooth API

PowerMirrorMate will operate on any standard 12V automotive charging system.

MirrorMate requires 3.3V for all components. This voltage will be created by a simple power supply consisting of a commercially available voltage regulator. (LM1085)

Construction zone beacon requires 5V, it will use multiple LM1084 regulators to power the microcontroller and the large current requirements of the emitters.

Ensures constant voltage for emitters regardless of input voltage

Budget and Financing$243.43 spent so far

Assistance expected from Microchip

Assistance from family members

Expected total budged to fall below $1500

BudgetItemDescriptionQtyPriceAcquiredTotalMirrorUsed, BMW with IR pod1$50NO$50Display2.6 serial smart LCD1$100YES$112.00Bluetooth ModuleSerial bluetooth interface3$8.89ORDERED$23.90Microcontroller(Mirror)PIC18F26K2210$2.85ORDERED$34.00Microcontroller(Beacon)PIC16F88210$2.48NO$20.48IR receiver modulesTSOP3233838kHz receiver/decoder10$1.08YES$10.85PhotodiodesTEFD4300F, 950nm25$0.51YES$12.86IR emitter LEDsSFH4547, high power, 3050$0.42YES$21.003.3V regulatorLDO LM108510$1.85ORDERED$18.505V regulatorLDO LM108410$2.52ORDERED$25.20Misc. ComponentsPassive components1$100PARTIAL$100PCBs4PCB, 2 PCBs requires2$125NO$250.00Android OS DeviceMotorola Photon 4G, Motorola Defy

2FREEYes$0.00Chart of ProgressJust received the display yesterday, we understand how to transmit data to it and we will begin testing later todayResearch ongoing processWe have a small scale model of the beacon that is working correctly. Just need to make a large version of itWe know how to send signals back and forth with the bluetooth chip, the part just arrived this week.High level design, and the display of the application (GUI) has been completed

31ChallengesIR range

Interfacing LCD with microcontroller (foreseen)

Interfacing Bluetooth module with microcontroller (foreseen)We dont ever work on our projectWe faked 1441 pages last semesterWe arent very good at typing on the flyRyan is the only one typingMatt loves drawing picturesJake loves shiny thingsJerome is a cool guyIR RANGE WE CAN TALK ABOUT THIS FOREVERERERRInterfacing Android API with Bluetooth hardwareInterfacing LCD with everything

32Plans for Successful CompletionParts are beginning to arrive, begin interfacing LCD and Bluetooth moduleDetermine what steps are necessary for increased IR rangeTest Google API and MirrorMate app functionalitySend PCBs off for manufacturing once complete design functionality is verifiedGroup 9 is taking a divide and conquer approach which will take advantage of each group members strengths33Design ResponsibilitiesMemberResponsibilityRyanAndroid application developmentJeromeLCD display interfacing, GUI, and microcontroller firmware developmentMattIR interfacing, speed zone beacon, and microcontroller firmware developmentJakeBluetooth interfacing, Android application development, microcontroller firmwareQuestions

MirrorMate Title

Bluetooth Connection

Main Application

Bluetooth Connectivity

Bluetooth Connectivity

Local Map

Directions Request

Direction Confirmation

Calculation

Directions List

Exit

MirrorMate Application Flowchart