atv instrumentation display
DESCRIPTION
ATV INSTRUMENTATION DISPLAY. System Design Ed Raezer Senior Project Western Washington University. Desired Functions. Speedometer 0-99 MPH 1 MPH Resolution Tachometer 0-12000 RPM 100 RPM Resolution Odometer 0-9999.9 Miles 0.1 Mile Resolution Clock 12 Hour Clock HH:MM:SS. - PowerPoint PPT PresentationTRANSCRIPT
![Page 1: ATV INSTRUMENTATION DISPLAY](https://reader035.vdocuments.net/reader035/viewer/2022062723/56813b4a550346895da437e6/html5/thumbnails/1.jpg)
ATV INSTRUMENTATIONDISPLAY
System Design
Ed RaezerSenior Project
Western WashingtonUniversity
![Page 2: ATV INSTRUMENTATION DISPLAY](https://reader035.vdocuments.net/reader035/viewer/2022062723/56813b4a550346895da437e6/html5/thumbnails/2.jpg)
Desired Functions Speedometer
0-99 MPH 1 MPH Resolution
Tachometer 0-12000 RPM 100 RPM Resolution
Odometer 0-9999.9 Miles 0.1 Mile Resolution
Clock 12 Hour Clock HH:MM:SS
![Page 3: ATV INSTRUMENTATION DISPLAY](https://reader035.vdocuments.net/reader035/viewer/2022062723/56813b4a550346895da437e6/html5/thumbnails/3.jpg)
Designing “To Do” List
Hardware Which MCU to use? How to interface system with ATV? What to use for user interface?
Software Which software kernel to use? What tasks are needed? How much memory needed?
![Page 4: ATV INSTRUMENTATION DISPLAY](https://reader035.vdocuments.net/reader035/viewer/2022062723/56813b4a550346895da437e6/html5/thumbnails/4.jpg)
MicroController Choice
Motorola MC9S12C32 32k Bytes EEPROM, 2K Bytes RAM
Estimated Memory Needed 8k Bytes EEPROM, 1.5K Bytes RAM
26 I/O Ports
![Page 5: ATV INSTRUMENTATION DISPLAY](https://reader035.vdocuments.net/reader035/viewer/2022062723/56813b4a550346895da437e6/html5/thumbnails/5.jpg)
Interfacing with ATV for RPMs
![Page 6: ATV INSTRUMENTATION DISPLAY](https://reader035.vdocuments.net/reader035/viewer/2022062723/56813b4a550346895da437e6/html5/thumbnails/6.jpg)
RPM Readings
3.57KR8
1.02KR9
D1
D2
ComparatorU2
1.02kR12Splice into
Pulse Signal
+5V
DG
ND
+5V
DGND
+5V
MAX931
+
-
IN-
IN+
V-
GND
HYST
REF
V+
OUT
4
3
2
1
5
6
7
8
-1.7Vpk pulse generated every engine rotation.-Needed to be converted to a digital 0-5V square wave
signal so the MCU could read it.
RPM Sensing circuit
0V
5V
t
![Page 7: ATV INSTRUMENTATION DISPLAY](https://reader035.vdocuments.net/reader035/viewer/2022062723/56813b4a550346895da437e6/html5/thumbnails/7.jpg)
Wheel Rotation Magnetic Reed
switch Magnet mounted
on brake rotor trips switch every rotation
Creates a 0-5V square wave
![Page 8: ATV INSTRUMENTATION DISPLAY](https://reader035.vdocuments.net/reader035/viewer/2022062723/56813b4a550346895da437e6/html5/thumbnails/8.jpg)
User Interface 2x16 LCD Display
Large Characters W/ backlight
Shift Light Green LED
Redline Light Red LED
RPM LED Bargraph 3 Pushbuttons
MODE
LCD DISPLAY
PUSH BUTTONS
LEDS
10 Seg. LED
BARGRAPH
![Page 9: ATV INSTRUMENTATION DISPLAY](https://reader035.vdocuments.net/reader035/viewer/2022062723/56813b4a550346895da437e6/html5/thumbnails/9.jpg)
Schematic
![Page 10: ATV INSTRUMENTATION DISPLAY](https://reader035.vdocuments.net/reader035/viewer/2022062723/56813b4a550346895da437e6/html5/thumbnails/10.jpg)
Kernel Selection
Kernel Choice: MicroC/OS-IIReal-time preemptive multitasking kernel with a 1 ms tick period
Configured for my program Modify (os_cfg.h)
![Page 11: ATV INSTRUMENTATION DISPLAY](https://reader035.vdocuments.net/reader035/viewer/2022062723/56813b4a550346895da437e6/html5/thumbnails/11.jpg)
Task Needed & Priorities
4- Start Task5- Clock Task6- U.I. Task7- Button Monitor Task8- RPM Task9- Speed Task
![Page 12: ATV INSTRUMENTATION DISPLAY](https://reader035.vdocuments.net/reader035/viewer/2022062723/56813b4a550346895da437e6/html5/thumbnails/12.jpg)
Start Task
Description:-Initializations: LCD, Keys, OSTick-Intialize Port Directions and Initial Values -Creates Tasks-Priority #4-Period: once (at startup)
![Page 13: ATV INSTRUMENTATION DISPLAY](https://reader035.vdocuments.net/reader035/viewer/2022062723/56813b4a550346895da437e6/html5/thumbnails/13.jpg)
Clock Task
Description:-Keeps time using a software clock-Runs timer for speed task-Updates time buffer-Period: 10 msec (Periodic)
![Page 14: ATV INSTRUMENTATION DISPLAY](https://reader035.vdocuments.net/reader035/viewer/2022062723/56813b4a550346895da437e6/html5/thumbnails/14.jpg)
User Interface Task
Description:-Reacts to button presses-Clock Setting-Activates LEDs-Changes Display Modes-Displays data on LCD Display
![Page 15: ATV INSTRUMENTATION DISPLAY](https://reader035.vdocuments.net/reader035/viewer/2022062723/56813b4a550346895da437e6/html5/thumbnails/15.jpg)
RPM Task
Description: -Retrieves pulse count from pulse accumulator every 600 msec and converts to RPMs-Updates RPM buffer.-Controls LED Bargraph-Period: 600 msec (periodic)
![Page 16: ATV INSTRUMENTATION DISPLAY](https://reader035.vdocuments.net/reader035/viewer/2022062723/56813b4a550346895da437e6/html5/thumbnails/16.jpg)
ISR
Interrupt caused by input from wheel rotation sensor
Counter incremented every time wheel makes one rotation.
Period: Dependent on speed of ATV
![Page 17: ATV INSTRUMENTATION DISPLAY](https://reader035.vdocuments.net/reader035/viewer/2022062723/56813b4a550346895da437e6/html5/thumbnails/17.jpg)
Speed Task
Description:-Every 5 wheel rotations, speed is calculated using timer ran in the clock task.-Unless 3 secs. have elapsed, then speed is calculated using # of tire rotations in that 3 second period.-Updates odometer -Updates speed buffer
![Page 18: ATV INSTRUMENTATION DISPLAY](https://reader035.vdocuments.net/reader035/viewer/2022062723/56813b4a550346895da437e6/html5/thumbnails/18.jpg)
Dataflow Diagram
Reed Switch
Ignition Pulse
Pulse Accum.
RPMTask
RPM Buffer
UserInterface
Task
LCD Display
Clock Task
CloickBuffer
Speed Task
Speed Buffer
OdometerBuffer
Physical MCUDisplays
ISRRotation Counter
LED Bargraph
![Page 19: ATV INSTRUMENTATION DISPLAY](https://reader035.vdocuments.net/reader035/viewer/2022062723/56813b4a550346895da437e6/html5/thumbnails/19.jpg)
User Interface State Diagram
SPEED XX MPH
CLOCK XX:XX:XX
SPEED XX MPH
TACH XXXXX RPM
SPEED XX MPH
ODOM XXXXX MILES
RESETODOMETER
UP + DOWN
MODE
MODE
MODE
START
SET CLOCK
UP +DOWN
UP + DOWN
![Page 20: ATV INSTRUMENTATION DISPLAY](https://reader035.vdocuments.net/reader035/viewer/2022062723/56813b4a550346895da437e6/html5/thumbnails/20.jpg)
Prototype
![Page 21: ATV INSTRUMENTATION DISPLAY](https://reader035.vdocuments.net/reader035/viewer/2022062723/56813b4a550346895da437e6/html5/thumbnails/21.jpg)
Learning Process
Leave time for the unexpected Teamwork
![Page 22: ATV INSTRUMENTATION DISPLAY](https://reader035.vdocuments.net/reader035/viewer/2022062723/56813b4a550346895da437e6/html5/thumbnails/22.jpg)
Questions?
Thank You For Your Time