1 / 9

A.F.C.I. – Group 12

Naman Chopra Suan-Aik Yeo Ronny Wijaya Darin Tanaka. Alumoline Fuel-Cell Instrumentation. A.F.C.I. – Group 12. Software Design Considerations. Very loose speed requirements: dashboard display updates only twice each second

oren
Télécharger la présentation

A.F.C.I. – Group 12

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Naman Chopra Suan-AikYeo Ronny Wijaya Darin Tanaka Alumoline Fuel-Cell Instrumentation A.F.C.I. – Group 12

  2. Software Design Considerations • Very loose speed requirements: dashboard display updates only twice each second • Very loose performance requirements: no complex computation required – use default speed of 24MHz • Don’t include libraries to optimize code size (except for FAT filesystem library) • Interrupt-driven organization: is simple and suits our tasks well.

  3. Interfaces • Atom board <-> microcontroller communication: SCI • SD-card communication: SPI • Read Sensor Data: ATDs

  4. Main Display

  5. Flowchart (microcontroller) Initialize registers and SD card loop Timer tick Update wall clock time received Atom board packet Logging interval packet Foreach sensor where log==true, write sensor value and current timestamp to file in SD card. Wall clock time packet Sensor data request Toggle logging req. Set wall clock time Set timer tick freq. toggle sensor logging Send sensor data Create file (name == timestamp) on SD card

  6. Flowchart (Atom) Initializations UI event idle Send sensor data req. Timer event Set log rate Recv sensor data Toggle sensor logging Update display/ graph Sensor meter tapped Graph tapped Dangerous threshold reached “Customize display” tapped Display warning “shutdown” tapped shutdown

  7. Hierarchy (microcontroller) • Main • Recv atom packet • Timer interrupt handler initialize • Update wall clock time • Send packet • Read ATDs • Create file Log sensor value SD command SD command

  8. Main Hierarchy (Atom) • Car Interface • Read Serial Port Thread • Timer interrupt Meter panels • Data Buffer • Send serial port JFreeChart Check valid string Update chart if needed Update panels

  9. Thanks! Questions ?

More Related