Project Specific Success Criteria 1)An ability to quantify the position of the glove relative to the...
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.](https://reader036.fdocuments.in/reader036/viewer/2022082818/56649e8a5503460f94b9004a/html5/thumbnails/1.jpg)
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.](https://reader036.fdocuments.in/reader036/viewer/2022082818/56649e8a5503460f94b9004a/html5/thumbnails/2.jpg)
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.](https://reader036.fdocuments.in/reader036/viewer/2022082818/56649e8a5503460f94b9004a/html5/thumbnails/3.jpg)
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.](https://reader036.fdocuments.in/reader036/viewer/2022082818/56649e8a5503460f94b9004a/html5/thumbnails/4.jpg)
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.](https://reader036.fdocuments.in/reader036/viewer/2022082818/56649e8a5503460f94b9004a/html5/thumbnails/5.jpg)
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.](https://reader036.fdocuments.in/reader036/viewer/2022082818/56649e8a5503460f94b9004a/html5/thumbnails/6.jpg)
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.](https://reader036.fdocuments.in/reader036/viewer/2022082818/56649e8a5503460f94b9004a/html5/thumbnails/7.jpg)
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.](https://reader036.fdocuments.in/reader036/viewer/2022082818/56649e8a5503460f94b9004a/html5/thumbnails/8.jpg)
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.](https://reader036.fdocuments.in/reader036/viewer/2022082818/56649e8a5503460f94b9004a/html5/thumbnails/9.jpg)
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.](https://reader036.fdocuments.in/reader036/viewer/2022082818/56649e8a5503460f94b9004a/html5/thumbnails/10.jpg)
Questions?