Project tutorial
Game of Thrones Shame Button with Arduino and 1Sheeld

Game of Thrones Shame Button with Arduino and 1Sheeld © GPL3+

Inspired by shaming Cersei in Game of Thrones, I built a shaming button to mess with my co-workers.

  • 3,818 views
  • 0 comments
  • 7 respects

Components and supplies

About this project

Warning! This project contains spoilers from Game of Thrones season 5, episode 10.

A tribute to Cersei Lannister, who will be dying soon, I guess!

I built a shame button with Arduino and 1Sheeld to mess with my co-workers at the office, since we are all Game of Thrones fanatics!

It's very easy to build, I got  push button, put it into the 1Sheeld package, and connected it to Arduino. 

When the button is pressed, it triggers the music player shield in 1Sheeld to play the 'shame' soundtrack.

I used an Olkya Bolt Bluetooth speaker so I can shame my co-workers from a distance, and not feel the shame myself.

The code is very easy, with 1 line of code I was able to play this soundtrack, everything is in the code attached below, it's a modification of the music player shield example in 1Sheeld library.

Enjoy the shame button, shame your friends, shame your co-workers and don't forget to shame the project .. I mean share it!

P.S: If you don't like to build hardware, there is this shame app. But, hardware is cool, build it!

Code

Arduino Shame ButtonArduino
/*

Arduino Shame Button

OPTIONAL:
To reduce the library compiled size and limit its memory usage, you
can specify which shields you want to include in your sketch by
defining CUSTOM_SETTINGS and the shields respective INCLUDE_ define. 

*/

#define CUSTOM_SETTINGS
#define INCLUDE_MUSIC_PLAYER_SHIELD

/* Include 1Sheeld library. */
#include <OneSheeld.h>

/* A name for the button on pin 12. */
int buttonPin1 = 12;

void setup() 
{
  /* Start communication. */
  OneSheeld.begin();
  /* Set the two buttons pins as input. */
  pinMode(buttonPin1,INPUT);
  /* Set the volume. */
  //MusicPlayer.setVolume(10);
}

void loop()
{
  /* Always check button 1 state. */
  if(digitalRead(buttonPin1) == HIGH)
  { 

       /* Turn on the music. */
       MusicPlayer.play();
       /* Wait for 300 ms. */
       OneSheeld.delay(300);
  }
}

Schematics

Button_Shame_Circuit.png
Button shame circuit

Comments

Similar projects you might like

Control Music Volume and Ledbar Using Slider of 1Sheeld

Project tutorial by ahmed ismail

  • 1,996 views
  • 2 comments
  • 14 respects

Tweet from Arduino through your smartphone

Project showcase by Amr Saleh

  • 585 views
  • 0 comments
  • 2 respects

Arduino can hear and understand your voice with 1Sheeld !

Project tutorial by Alessandro Didonna

  • 3,925 views
  • 1 comment
  • 10 respects

Security System With 1Sheeld

Project showcase by nada abdelnaby mady

  • 2,071 views
  • 0 comments
  • 2 respects

Led fading using 1Sheeld

Project tutorial by Nado Hollow

  • 849 views
  • 1 comment
  • 2 respects

SMS based Home Automation system using 1SHEELD

Project tutorial by Tanishq Jaiswal

  • 29,573 views
  • 11 comments
  • 64 respects
Add projectSign up / Login