Finger-Finger Revolution
•Rhythm-and-Hand Gesture Gaming Platform ▫Supports Gesture Detection▫Plays Music▫Provides Visual Display
Hardware
•IR Sensors – captures hand gestures•LCD - displays timer, scoring and moves•Sound buzzer – plays PWM pitch tones
Voltage Regulator
•Regulates incoming 7.5 vdc to 5 vdc
•1A Max current limit•Capacitors to remove noise
in power source
IR Circuit
•Converts IR’s analog signal to digital
•Transistor acts as switch
Finger Detection Logic level at output
Detected (no IR light received)
5v or ‘High’
Not Detected (IR light received)
0v or ‘Low’
Buzzer High Pass Filter
•Logic ‘Low’ produces 0.3v atPWM0 output
•HPF used to remove this offset•Cutoff Frequency formula•fc= 15.9Khz•Audible range 20 to 20kHz
Task SchedulingTask Period
(Ti)Computational Time (Ci)
Priority (P)
Utilization (Ui)
LCD 250ms 10ms 1 0.04
IR sensor 250ms 10ms 2 0.04
CalScore 250ms 20ms 3 0.08
UpdateMove
250ms 20ms 4 0.08
UpdateTime 1000ms 20ms 5 0.08
PWM 500ms 20ms 6 0.04
Task Utilization Analysis• Processor Utilization Factor:
UP = = 0.300
Up ≤ 1 (schedulable)
• Utilization Least Upper Bound (1973, Liu and Layland):- Ulub
RM = n(21/2 - 1) = 0.735
- Case, for large n, n → ∞: Ulub → ln 2 ≈ 0.693
Since Up ≤Ulub in both cases, schedulable with RMA.
• Hyperbolic Bound (2000, Bini et al.):
• Hence the 6 periodic tasks are schedulable with RMA.
250ms
750ms
1000ms
0ms 500ms
1250ms
1500ms
1750ms
2000ms
2250ms
250ms
750ms
1000ms
0ms 500ms
1250ms
1500ms
1750ms
2000ms
2250ms
LCD
IR Sensor
Scoring
250ms
750ms
1000ms
0ms 500ms
1250ms
1500ms
1750ms
2000ms
2250ms
250ms
750ms
1000ms
0ms 500ms
1250ms
1500ms
1750ms
2000ms
2250ms
Overall Timing
Timing Diagram
Update time
PWM sound
250ms
750ms
1000ms
0ms 500ms
1250ms
1500ms
1750ms
2000ms
2250ms
250ms
750ms
1000ms
0ms 500ms
1250ms
1500ms
1750ms
2000ms
2250ms
Update move 250m
s750ms
1000ms
0ms 500ms
1250ms
1500ms
1750ms
2000ms
2250ms
Timing Diagram Cont’
Inter Process Communication
Mailbox with Semaphore
LCD IR Sensors
ControllerFIFO1 FIFO2
Calculate Score
Socket PWM