Stories
Slash Boxes
Comments

SoylentNews is people

Journal by cafebabe

I've written a program which implements the functionality for a buzzer round of a quiz game. This is suitable for two, three or four teams to have a common button (or buttons wired in parallel). The program performs a power-up test of lights and buzzer before entering the main loop. When a member of one team presses the team's button, a buzzer sounds for one second and the team's light stays locked on until the quizmaster hits a reset button.

It requires an Arduino compatible micro-controller configurable as five digital inputs (button1, button2, button3, button4, reset) and five digital outputs (light1, light2, light3, light4, bell). The first team has a very small advantage which can be measured in millionths of a second. Making a completely equally weighted input is left as an exercise. Keeping score is a more difficult exercise because it requires a routine to compensate for switch bounce.

begin 644 buzzer.ino.gz
M'XL(`#P`AUD"`WV26T^#,!B&[_D57^(-6]1!6]V,V<W,/"33>6#9-9%N:X(M
MEJ+9S/Z[I3`$I+N#]^G[G0=]F&2['95P*R2\9&P'=^$'3:$_<`9]<&]ZR/.'
M$&PHW`B>"JE8]G&>TQSGS!MY(Y#T+%6A5`>0)O2=K;:0,)["2D=F/,E4"B&/
M0&0J_S9!3B*Z8IS"[.'N/O`!-04$N"E@($V!P$4E3*:S&5S^_2Z"8/[DP["E
M(!BU%`Q7+86`[U72R^OT;1J`[SO.EV`11(RO7<85Q#WX<4#_KYD*XZ5DBKKQ
MZ;VNJW?=UO/B:HC&X=;U/<^SO)S-EX9(JC+)KYW](;?0N3O2%O.K;/\9.L+P
M$49*=BC@\SMDJMF]KB@V[N\-BZE;QGBE8>06H^N-QWD0^-GG[TT')J"^$YEQ
M$/R=FF,P"5+=<5*VJ*_G4415=_-%\+P(3*H&05:"K81T$3/Z+KTXI=.'IVZ"
MK`1;">D@Q;AJP`RWZ+[X+X=7)\A*L)60%JF=6;D421,:*AK%V[_5Q$(<-L-6
LC3V7`]*+-B=NGD!Y*[7R]S8GLCO1<2>V._%Q)[$[2>6L#>87E=OD@RH%````
`
end

(Usual instructions for uudecode process.)

 

Post Comment

Edit Comment You are not logged in. You can log in now using the convenient form below, or Create an Account, or post as Anonymous Coward.

Public Terminal

Anonymous Coward [ Create an Account ]

Use the Preview Button! Check those URLs!


Logged-in users aren't forced to preview their comments. Create an Account!

Allowed HTML
<b|i|p|br|a|ol|ul|li|dl|dt|dd|em|strong|tt|blockquote|div|ecode|quote|sup|sub|abbr|sarc|sarcasm|user|spoiler|del>

URLs
<URL:http://example.com/> will auto-link a URL

Important Stuff

  • Please try to keep posts on topic.
  • Try to reply to other people's comments instead of starting new threads.
  • Read other people's messages before posting your own to avoid simply duplicating what has already been said.
  • Use a clear subject that describes what your message is about.
  • Offtopic, Inflammatory, Inappropriate, Illegal, or Offensive comments might be moderated. (You can read everything, even moderated posts, by adjusting your threshold on the User Preferences Page)
  • If you want replies to your comments sent to you, consider logging in or creating an account.

If you are having a problem with accounts or comment posting, please yell for help.