Project Specific Success Criteria 1)An ability to quantify the position of the glove relative to the...

10
Team 3 Piano Glove Software Design Considerations Carolyn McMican Daniel Stein Jonathan Kuntzman Mihir Shah

Transcript of Project Specific Success Criteria 1)An ability to quantify the position of the glove relative to the...

Page 1: Project Specific Success Criteria 1)An ability to quantify the position of the glove relative to the processing unit. 2)An ability to combine finger press.

Team 3

Piano GloveSoftware Design Considerations

Carolyn McMicanDaniel Stein

Jonathan KuntzmanMihir Shah

Page 2: Project Specific Success Criteria 1)An ability to quantify the position of the glove relative to the processing unit. 2)An ability to combine finger press.

Project Specific Success Criteria

1) An ability to quantify the position of the glove relative to the processing unit.

2) An ability to combine finger press data and glove position to determine which virtual key has been pressed.

3) An ability to utilize SpeakJet from GPIOs to produce various sounds.

4) An ability to collect analog data from force and stretch sensors, digitize it, and correctly format packets for wireless transmission.

5) An ability to detect different pressure levels to control volume.

Page 3: Project Specific Success Criteria 1)An ability to quantify the position of the glove relative to the processing unit. 2)An ability to combine finger press.

Software Design Considerations

Page 4: Project Specific Success Criteria 1)An ability to quantify the position of the glove relative to the processing unit. 2)An ability to combine finger press.

Design ConstraintsMemory Constraints

Data storage is limited to one package on either glove or base and a few miscellaneous variables

Time Constraints Software should run fast enough to provide

illusion of instantaneous sound from finger press

Page 5: Project Specific Success Criteria 1)An ability to quantify the position of the glove relative to the processing unit. 2)An ability to combine finger press.

Utilization of Integrated Peripherals

Analog to Digital Will be used for sampling the sensors on the

glove

Serial Peripheral Interface Will be used for printing messages to the lcd

screen

Timer Will be used to generate interrupts for time based

actions Will be used to time ping duration

Page 6: Project Specific Success Criteria 1)An ability to quantify the position of the glove relative to the processing unit. 2)An ability to combine finger press.

Glove SoftwareCheck for finger presses on a set time interval

If finger pressed check stretch sensor Format data package for easy decoding Transmit the data package

Software will be interrupt driven

Page 7: Project Specific Success Criteria 1)An ability to quantify the position of the glove relative to the processing unit. 2)An ability to combine finger press.

Glove Pseudo-CodeMain(){

initializeReg();while(true){/*Wait for timer interrupts*/}

}

TimerServiceRoutine(){

data[]=sampleATD();formatData(data);transmitData(data);

}

Page 8: Project Specific Success Criteria 1)An ability to quantify the position of the glove relative to the processing unit. 2)An ability to combine finger press.

Base SoftwarePing the glove on a set time interval

Time duration of ping Convert time to distance to glove

If a data package is received Check if the data package is valid Calculate notes pressed based on data package

and distance Use Speakjet to produce appropriate sounds

Software will be formatted as a polling loop

Page 9: Project Specific Success Criteria 1)An ability to quantify the position of the glove relative to the processing unit. 2)An ability to combine finger press.

Base Pseudo-CodeMain(){

intializeReg();while(true){/*Timer interrupts forgenerating pings.*/

if(haveData()){data[]=recieveData();mapToKeys(data);produceNotes(data);

}}

}

TimerSeriveRoutine(){

time=pingGlove();Distance=convert(time);Return(distance);}

Page 10: Project Specific Success Criteria 1)An ability to quantify the position of the glove relative to the processing unit. 2)An ability to combine finger press.

Questions?