Project tutorial
Remote Controlled Jack-o-Lantern

Remote Controlled Jack-o-Lantern © CC BY-NC

BreakoutBros Halloween Special: A RF remote controlled Jack-o-Lantern

  • 1,563 views
  • 0 comments
  • 1 respect

Components and supplies

About this project

We wanted to get into the Halloween spirit at BreakoutBros but we are super busy writing reviews, tutorials, and decorating our houses. While I was testing parts to review the ControlEverything.com Arduino Shield I realized I was just a few spliced wires and a relay away from something fun.

So I combined that shield, the Arduino Light Control Tutorial, a ceramic Jack-o-Lantern, and some wire. The pumpkin I used already had a male plug, so I decided to make a relay controlled outlet. This also made it easy because modern wall outlets have places to simply push in wires. That way I didn’t need to use any wire nuts, just the screw terminals on the relay board. I even used the Normally Closed  terminal on a 2nd relay for the return wire.

To keep my dogs out of the wires, I put all the hardware in a shoebox and plugged in the Arduino and Pumpkin.

In the spirit of keeping it simple I have it come on when the button is pressed and stay on until its released.

Here is the code:

void setup() {
  pinMode(5, OUTPUT);   //Set up the pin for the Relay 
  pinMode(13, OUTPUT); //These two lines turn OFF the buzzer
  digitalWrite(13, LOW);   //The buzzer is rather useful most of the time
}
void loop() {
      if (digitalRead(6) == HIGH)  //check for remote press from the shield
      {
           digitalWrite(5, HIGH);      //Close the relay to turn on the light as long as the button is held
      }
    else
      {
      digitalWrite(5, LOW);     //leave the light OFF otherwise 
      }
}

Even my dog wanted to check out the show.

The great thing about this is how easily expandable it is, you could add a motion or proximity sensor to make it automatic or you could add a speaker and audio shield for a sound effect.

Happy Halloween Everyone.

Code

Code snippet #1C/C++
void setup() {
  pinMode(5, OUTPUT);      //Set up the pin for the Relay 
  pinMode(13, OUTPUT);     //These two lines turn OFF the buzzer
  digitalWrite(13, LOW);   //The buzzer is rather useful most of the time
}

void loop() {
      if (digitalRead(6) == HIGH)      //check for remote press from the shield
      {
           digitalWrite(5, HIGH);      //Close the relay to turn on the light as long as the button is held
      }
    else
      {
      digitalWrite(5, LOW);     //leave the light OFF otherwise 
      }
}

Comments

Similar projects you might like

TV remote controlled Light and Fan

Project tutorial by Rishabh

  • 17,120 views
  • 12 comments
  • 62 respects

Remote Controlled Bulb With Arduino

Project tutorial by muhammed shameel k.v

  • 1,774 views
  • 0 comments
  • 11 respects

IR Remote Controlled Home Automation

Project tutorial by suhail jr

  • 10,117 views
  • 5 comments
  • 15 respects

Remote Controlled Smart Lamp

Project tutorial by Team gadget programmers

  • 3,859 views
  • 1 comment
  • 14 respects

Remote Controlled Pet Feeder

Project tutorial by Amal Mathew

  • 2,814 views
  • 1 comment
  • 20 respects

Arduino Nano and Visuino: Infrared Remote Controlled Relay

Project tutorial by Boian Mitov

  • 2,513 views
  • 0 comments
  • 15 respects
Add projectSign up / Login