Pedal Mania -a pedal power generation system- - PowerPoint PPT Presentation

1 / 12
About This Presentation
Title:

Pedal Mania -a pedal power generation system-

Description:

Around the world pedal power is used for: Transportation of ... bset 0,PORTA. rts; LED1off: bclr 0,PORTA. rts. 01/21/2004. Campo and Fournier. 12. Questions ... – PowerPoint PPT presentation

Number of Views:700
Avg rating:3.0/5.0
Slides: 13
Provided by: asdf78
Category:

less

Transcript and Presenter's Notes

Title: Pedal Mania -a pedal power generation system-


1
Pedal Mania-a pedal power generation system-
  • Melanie Campo and Mandi Fournier

2
Background
  • Around the world pedal power is used for
  • Transportation of goods and people
  • Pumping Water to crops or animals
  • Grinding Grains or Metals
  • Sewing Machines
  • Power Generation

3
Problem
  • To develop a portable educational tool that
    allows first hand experience of power production
    to operate standard AC and DC devices.

4
Solution
  • Using
  • A Bike - for power generation
  • Generator - for electrical generation
  • Microprocessor to make displays work
  • Displays to educate the users and observers
  • A cart to make this system portable

5
Software Overview
6
Software
  • Check voltage being produced (A/D)
  • Light up display for different levels
  • Off
  • L1
  • L2
  • L3
  • L4
  • L5

7
C and Assembly Programming
  • C Programming
  • -use case statements
  • -check of the 6 possibilities
  • Assembly Programming
  • -configure the ports of the HC08
  • -enable timers and other elements

8
Program
  • Based on a template used in a lab
  • C and Assembly programming
  • Base on the programming used for state machines
    in Control Systems.

9
Example of Case Statement
  • case 0 //Level 1 reached
  • LED1on() // LED1 on
  • LED2off() //all other LEDs off
  • LED3off()
  • LED4off()
  • LED5off()
  • break

10
Assembly function called from C
  • XDEF ConfigurePorts
  • XDEF ConfigureTimer
  • XDEF ConfigureIRQ
  • XDEF LED1on
  • XDEF LED1off

11
How a Port will be Set
  • LED1on
  • bset 0,PORTA
  • rts
  • LED1off
  • bclr 0,PORTA
  • rts

12
Questions
Write a Comment
User Comments (0)
About PowerShow.com