Video Game Power Limiter - PowerPoint PPT Presentation

1 / 35
About This Presentation
Title:

Video Game Power Limiter

Description:

A new parent expressed his concern in controlling his newborn's future in this ... Testing and Debugging. Looking for Corner cases that could de-stabilize the ... – PowerPoint PPT presentation

Number of Views:41
Avg rating:3.0/5.0
Slides: 36
Provided by: esa91
Category:
Tags: game | limiter | power | testing | video

less

Transcript and Presenter's Notes

Title: Video Game Power Limiter


1
Video Game Power Limiter
  • Group 20
  • Zuhaib Sheikh Eric Sands
  • Senior Design
  • Fall 2005

2
Introduction
  • Designed to help parents control their childrens
    gaming hours.
  • Can also be used for other household appliances
    like heaters, table lamps, and coffee makers.

3
Inspiration
  • A new parent expressed his concern in controlling
    his newborns future in this technologically
    advanced world.
  • He suggested a device that would limit his
    childs game playing hours.

4
Features
  • weekly time-settings
  • 7 programmable slots a day
  • separate settings for each device
  • a beeping system to warn the player about the
    imminent power cut off
  • A casing to prevent the cords from being removed
    to bypass the settings of the device

5
External View
6
Internal Prototype View
7
Circuit Schematic
8
Main Circuit
  • PIC18F452 Microprocessor
  • 40 MHz Oscillator
  • Voltage Regulator Circuit
  • Keypad Encoder
  • 1X20 LCD Character Display
  • Buzzer

9
PIC18F452
  • Can sink/source up to 25mA
  • Operating Voltage 4.2V 5.5V _at_ 40MHz
  • Typical Power Useage 1W

10
Voltage Regulator Circuit
  • Output
  • 50.2 VDC
  • 8mA(max)
  • Voltage Regulators
  • Input
  • 7-20VDC
  • 5mA 1A
  • 150mAh 9V rechargable battery
  • 0.3mA Trickle charge current
  • (12V 9V)/10kO 0.3mA
  • 150mAh/0.3mA 500h charge time

11
Voltage Regulator Circuit
12
Keypad Encoder
  • Encoder MM74C922N
  • Debouncing Time 0.01s
  • Used a 0.1uF Capacitor
  • Keypad Scanning Rate 600 Hz
  • Used a 1uF Capacitor

13
Keypad and Encoder Circuit
14
LCD
  • One line with 20 characters
  • 4-bit data interface
  • Draws maximum current of 3mA
  • Drawback
  • Needs initialization every time power is turned
    on
  • Solution Interrupt PIC and initiate the LCD when
    power is restored

15
Solid State Relays
  • Optically Coupled
  • LED indicator
  • Input
  • 3-32VDC
  • 16mA(maximum)
  • Output
  • 40-280VAC
  • 25A rated

16
Relay Circuit
17
  • Programming the PIC

18
Choice of PIC18F452
  • Large Program Memory
  • Total 16384 instruction words
  • Used 12200 instruction words (74)
  • PIC16 series only provide a maximum of 8Kwords of
    Program memory
  • Data Memory
  • Total 1536
  • Used 34-37

19
Initial Concerns
  • PIC18 series introduced the 32 Kbytes programming
    memory size
  • How would the PIC18F452 handle a massive program?
  • Stability of the PIC to unwanted interrupts and
    noise
  • How to cope with the initial self-restarting
    issues?

20
Objectives
  • User-friendly interface
  • Robustness in face of power_INT (power failure
    interrupt)
  • Real time synchronization of Timer0_INT and
    keypad_INT
  • Stability of the Program code

21
Choice of Clock
  • 40 MHz Clock
  • Average execution time 25ns
  • Can execute 20 million instructions before the
    next timer interrupt takes place
  • Timer INT takes place every 500ms
  • Worst case execution
  • (approx. 10000 assembly insts.) 2.5ms ltlt
    500ms

22
Timer Module
23
Working
  • Timer0 module
  • External Clock / 4 pre-scaled by 256
  • Increments every 25.6 us
  • Count from 0x6769 till 0xFFFF every time Timer0
    INT occurs (every 500ms)
  • INTERRUPT on OVERFLOW

24
Power Interrupt
  • Every time the mains power goes off the LCD and
    the Keypad are turned OFF
  • So the PIC has to ensure program execution jumps
    to the Display mode from anywhere else

25
Interrupt Priority Levels
  • Timer0 interrupt gets the highest priority
  • Timer0_INT gt Power_INT gt Keypad_INT
  • PROBLEMS Couldnt handle re-entrancies for
    functions called outside the Interrupt Service
    Routines
  • Small Stack Space in PIC18F452
  • Time lost in function calls from within the
    Timer0 INT
  • SOLUTION Separate declarations of functions used
    inside the Interrupt Service Routines

26
(No Transcript)
27
(No Transcript)
28
(No Transcript)
29
Addressing the Initial Concerns
  • PIC18F452 very effectively handled large program
    size
  • Did not exhibit any unwanted behavior in view of
    the large program size
  • Program size within the allocated 16Kwords
    without having to go for extended memory
    allocation

30
The Master Clear Capacitor
  • Initially, the PIC was restarting on its own - in
    addition to some really unwanted behavior
  • A filter capacitor between the ground and the
    MASTER Clear Pin solved the problem
  • Difference between SUCCESS and FAILURE

31
Without the Capacitor
32
With the Capacitor
33
Clock pulse
34
Testing and Debugging
  • Looking for Corner cases that could de-stabilize
    the operation
  • Reduce the minute length
  • 1 Minute 1 second
  • Long run time with a Short Minute
  • Transition from one day to another

35
Future Development
  • Cost Reduction
  • Smaller relays
  • Possibly rated at 5A instead of 25A
  • GFCI Receptacles for greater safety
  • Logic controlled locking mechanism
  • Internal Power supply to transform 120VAC to
    12VDC
Write a Comment
User Comments (0)
About PowerShow.com