|
CupAudioResearch
ResearchFeatures using the ISD1932
Circuit Diagram
Table representing message count
Table for R_osc and amount of allowed time
The duration's the messages can be at 12 kHz sampling rate in seconds
Therefore with a sampling rate at 12 kHz we get 2 messages that can be 10.65 seconds for the fount. Block Diagram
AlternativesThe WTV020-SD
Speakers for the fountSpeaker EMB-3008A Description
Pseudocode for the CupThe cup’s audio will be triggered when a cup is taken, when the cup’s deadly IR packets are sent, when a cup is pouring into the fount, and when the game has been won. Example pseudo code is written below: Void playAudio(int audiotype)
{
//Turn of all sound
M1 = 0;
M2 = 0;
M3 = 0;
Switch(audiotype){
Case cupisnthomesound: M1 = 1;
Case irdeadlysound: M2 = 1;
Case cupPour: M3 = 1;
}
}
Main()
while(1)
{
...
if (cupIsntHome and cupisnthome audio hasn’t begun)
playAudio(cupisnthomesound);
else if (irpacketmode and irpacketmode audio hasn’t begun)
playAudio(irdeadlysound);
else if (cupPourMode and cupPourMode audio hasn’t begun)
playAudio(cupPour);
}Flowchart
References
| |