Jonathan Thomson's web journal

Halloween 2016 – Jackpot October 31, 2016

Filed under: Electronics,Halloween — jethomson @ 9:17 pm

music_box_slot_machine

 
 
Construction
I attached a nylon belt to a toy slot machine coin bank so I could hang it around my neck, and created a music box using an ATtiny861 to play sound effects. The music box uses three differently colored gumdrop LEDs that hover over mini push button switches, so that pushing down an LED results in a push button switch being depressed. The LEDs were made to spring back by bending their leads at a right angle, running them through heat shrink, and gluing the heat shrink to the board (see the picture below). If the player hit the jackpot I pressed the green button to play winning sound effects. If a jackpot wasn’t hit the red button was pressed, and a losing sound effect was played. The orange button played Halloween themed sound clips. A schematic can be found by following the link in the README.md found in the GitHub repo for the code.

 
 
gum_drop_push_buttons

 
 

 
 
Music Box Code on GitHub

Advertisements