Skip to content

Musical Emergency button, cause everything is awesome

License

Notifications You must be signed in to change notification settings

Deadeye5589/RedButton

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 

Repository files navigation

RedButton

Musical Emergency button, cause everything is awesome

Want a big red button that plays the "Everything is awesome" tune from the Lego Movie or your favourite movie quotes like "Bullshit Private Pauler"?

Well here you go.

What you need to buy:

Other useful stuff:

  • Soldering Iron
  • Wires
  • Arduino Uno
  • 12V Power Supply

First things first

This is the second release of the Red Button Project. The controller was upgraded from an Attiny85 to an Atmega328. This way it is now possible to store the last played song and folder into the EEPRPOM without running out of SRAM for the memory gobbeling Neopixel library. Therefore we can also skip the jail breaking of the Digistump module and maybe include some more features in the future.

If you still want to go with the V1, you can find all the information inside the V1 folder. But for now let's concentrate on the V2 build.

The Build

You can find a precompiled Hex file for the Nano inside the V2 folder. Simply upload this file by using Xloader. The program will automatically format the EEPROM for wear leveling on the first run.

Then wire everything up according to the provided schematic drawing. Of course the speaker and the tact switch inside the button housing will be used. So all you have to do is to rewire those 2 components correctly.

As for the LEDs. I have removed the original LEDs from the PCB inside the button housing and than glued some WS2812 stripes onto the PCB. This is the quick and dirty solution. Feel free to experiment with your own ideas here.

Preparing the SD Card

The program was written to support a maximum of 10 folders, with up to 255 songs in each folder. This also means that you will need to provide 10 folders on the SD card or the program might crash if you cycle through the folders.
The folders must be named:

  • 01
  • 02
  • 03
  • 04
  • 05
  • 06
  • 07
  • 08
  • 09
  • 10
  • 99

Next you can throw any MP3 or Wave file in those folders you want to play. Since it is not possible to leave folders empty, I suggest that you simply copy your songs in each folder that you don't need. This was the program will always find a file to play.
The files must be named 001 ... 255.mp3 or 001...255.wav

Inside folder no. 99 you can also store a single filed named 001.mp3 or 001.wav

How to use

The Red Button has 3 functions:

  • Short Button Press
  • Long Button Press
  • Double Button Press

Short Button Press
Will play a song from the current folder. Looping through all available songs in this folder.

Long Button Press
Will always play the single file stored in the directory named 99 of the SD card.

Double Button Press
Will cycle through the folders 1 ... 10 ... 1. Each time the last song you played for each folder will be stored. Upon return to this folder the next song in order will be played. The button will blink green if you change a folder. When you arrive back at folder 1 the button blinks red to indicate that you reached the first folder.

About

Musical Emergency button, cause everything is awesome

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published