Download presentation
Presentation is loading. Please wait.
Published byJob Logan Watts Modified over 6 years ago
1
Moto-eV Team 13 Michael Stuckenschneider Loren Garby Arin Chakraverty
Janell Niekamp
2
Software Design Outline
- Accurately measure current draw from motor and user demand from throttle - Gather data from sensors (inclinometer, battery monitors, motor speed) - Output vital information on the LCD display - Power motor while maintaining safety considerations
3
Priority Organization
Highest Priority Current draw from motor User demand from throttle Normal Priority Inclinometer, Battery Monitor LCD update, Motor speed sensor Low Priority Ride mode switch
4
Software Design – General Flowchart
Power On Initialize Micro and LCD Main Loop Motor Control Algorithm Update LCD Display Read Current Draw Read Throttle No Monitor Flag? Yes High Priority Flag? Read Inclinometer, Batteries, LCD Backlight, Motor Speed, GPIO’s Yes No Stall Flag? Yes Read Ride mode No
5
Interrupt Service Routines
A/D conversion - Read input data - Increment through inputs Timer Routine - Increment counters - Set flags based on priority level
6
Motor Drive Algorithm Current Draw > Throttle input? Do not power motor (0) Current Draw < Throttle input? Send power to motor (1)
7
Safety Considerations
200 Amp maximum current draw Power trip plug Inclinometer > 75˚ …
8
Software Design Questions?
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.