Presentation is loading. Please wait.

Presentation is loading. Please wait.

Cas Craven Nick Paine Glen Rhodes Lev Shuhatovich Joe Zugelter A little black box for your motorcycle.

Similar presentations


Presentation on theme: "Cas Craven Nick Paine Glen Rhodes Lev Shuhatovich Joe Zugelter A little black box for your motorcycle."— Presentation transcript:

1 Cas Craven Nick Paine Glen Rhodes Lev Shuhatovich Joe Zugelter A little black box for your motorcycle

2 Concept Hardware Design o 9S12 Microcontroller o Fonera Wireless Router o Motorcycle Software Design o 9S12 Microcontroller o Fonera Wireless Router o iPhone Interface o Web Display

3 Hardware and Software to track motorcycle state over time o State  GPS Location  RPM  Velocity  Acceleration  Gear

4 Battery Ignition Coil Speed Sensor Gear Position Sensor Function Switch Motologger Accelerometer GPS

5 Battery Ignition Coil Speed Sensor Gear Position Sensor Function Switch Motologger Accelerometer GPS System Diagram

6 Wifi SoC Atheros AR2315 Wifi SoC Atheros AR2315 SPI Wifi Serial Data Acquisition Board Data Flow

7 Hardware Required o Motorcycle o GPS Reciever o Accelerometer o SD Card o Freescale 40MHz o Fonera Wireless Router o iPhone

8 Fonera Router Atheros MIPS-based Redboot OpenWRT SD MMC Driver User Application Kernel Panics are free Trashing JFFS2 Made Easy!

9 Accelerometer Microcontroller MC9S12XD512 Microcontroller MC9S12XD512 Status LEDs Power LED Ignition Coil Speed Sensor Function Switch Gear Position Ignition Switch Battery Power Analog Conditioning External Inputs Wifi SoC Tach Output External Outputs Internal Outputs GPIO Input Capture A/D Converter SPI GPIO PWM Serial Power Distribution GPIO

10 Processor Interface

11 Motorcycle Interface

12 Switching Power Supply

13 Fonera Internals

14

15 Placement Routing

16 PCB on top of Fonera

17 Fonera on Motorcycle

18 Microcontroller - For things Linux won't do well o Real-time data capture peripheral for Linux  Input capture timers  Timer interrupts  Pulse width modulation  High precision, high accuracy timing  GPIO  Serial host communication o Motorcycle management  Output data to tachometer dial  Spedometer output  Indicator lights (Cas)

19 Freescale HS12XA256 as Real-Time subsystem Real-time event scheduler o Interrupt-driven Sampling o Arbitrary periodic events o Timestamping to GPS UTC +- 1ms Foreground process o Binary serial communication with Fonera o Update outputs to motorcycle (tach, speedo, indicator light) (Cas)

20 A parametric periodic scheduler was used for many of the repetitive tasks on the (Nick)

21 GPS o determines absolute position at 1hz Accelerometer (not implemented) o measures acceleration at higher frequencies (Nick)

22 Sockets are file descriptors -> file descriptors for everything!  Network Connections (sockets)  log files (.txt)  serial port( /dev/ttyS0) Standard structs for data serialization: typedef struct _velData{ char tag; char dummy; unsigned short time_stamp; unsigned short velocity; }velDataType; case vel_tag: tag=((velDataType*)buf)->tag; time_stamp = ((velDataType*)buf)->time_stamp; data1= ((velDataType*)buf)->velocity; sprintf(output,"%c,%d,%d,\n",tag,time_stamp,data1); break; (Glen)

23 iPhone Used Sockets for network communication (Glen)

24 Post Processing with Python Presentation with Excel Presentation with Google Maps (Joe)

25

26

27

28 Bandwidth limitations o Atheros SoC(Fonera) couldn't process large amounts of data. o 9S12 lost serial data when sending large number of samples.

29 Log more types of data o We are only logging a subset of what we planned Increase sampling rates o Optimize communication protocol o Decrease Bootup Time o Add more bugs (features) o Integrate Data Post-Processing to iPhone

30 Work Breakdown Lev – Hardware/Motorcycle interfacing, Drivers Glen – iPhone SW, Comms Nick – Microcontroller SW (Task Scheduler, GPS) Cas – Microcontroller SW (Comms, Drivers) Joe – Data Processing

31

32 uP debugger


Download ppt "Cas Craven Nick Paine Glen Rhodes Lev Shuhatovich Joe Zugelter A little black box for your motorcycle."

Similar presentations


Ads by Google