Simple gameshow buzzer
Nickydog
Posts: 4
We are working on a fairly simple project that has two game show buttons(pin 0 & 1)·which·when pressed, light up an LED(pin 2 & 3). We are trying to incorporate a buzzer to sound when one of the buttons·is pressed. We have the buzzer wired to pin 7 and ground. This is all wired on a Stamp microprocessor BS1-IC. We've got the lights working, but we can't seem to get the buzzer to work. Any ideas? Here is the program:
Start: Let b1=0
········ Let b2=0
········ Input 0
········ Input 1
········ Output 2
········ Low 2
········ Output 3
········ Low 3
········ Output 7
········ Low 7
Gameshow: Button 0,0,255,20,b1,0,Loop2
Win1: High 2
········ High 7
········ Goto Win1
Loop2: Button 0,0,255,20,b1,0,Nopress
Win2: High 3
········· High 7
········· Goto Win2
Nopress: Goto Gameshow
········
·
Start: Let b1=0
········ Let b2=0
········ Input 0
········ Input 1
········ Output 2
········ Low 2
········ Output 3
········ Low 3
········ Output 7
········ Low 7
Gameshow: Button 0,0,255,20,b1,0,Loop2
Win1: High 2
········ High 7
········ Goto Win1
Loop2: Button 0,0,255,20,b1,0,Nopress
Win2: High 3
········· High 7
········· Goto Win2
Nopress: Goto Gameshow
········
·
Comments
Or, if its a true buzzer try driving it with a transistor.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Mike2545
This message sent to you on 100% recycled electrons.
Post Edited (Mike2545) : 4/20/2009 11:34:37 PM GMT
You can't use the FREQOUT command. It's only for the BS2 series.
@Nicky
You may one to take a look at Humanoido's Stamp One News here. It probably has what you're looking for.
It is a buzzer and not a speaker, right? You can hook it up to a DC source and it will make sound? Just checking...
How much current does it draw? The BS1 probably can't handle the amount of current required. You'll need to use a transistor in that case.
Post Edited (SRLM) : 4/20/2009 11:40:34 PM GMT
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Mike2545
This message sent to you on 100% recycled electrons.
Can the SOUND command work with a buzzer? Or do you have to have a speaker? This is a school project due tomorrow so we are pretty much out of time...but this is driving us nuts trying to figure out why it won't work.
Thanks to you both!
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Mike2545
This message sent to you on 100% recycled electrons.
No transistor is needed for a speaker with the Sound command.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Mike2545
This message sent to you on 100% recycled electrons.