Pumpkin NotiFire

Introduction

The pumpkin NotiFire is a delicious but questionable combination of a Glade aerosol air freshener, fire and text messages. We hacked a Glade air freshener and combined it with our Bean+ to make a pumpkin spit fire based on iOS notifications.

The Bean+ is connected to the phone over Bluetooth Low Energy using ANCS (Apple Notification Center Service) to receive the phones notifications. The Bean+ sketch filters through the notifications and triggers the air freshener on any new text message. ANCS can be used to trigger on any notification, have fire shoot every time your favorite team scores using the ESPN app or really light your fire when you get a Tinder match.

Let's start by saying, this is just a horrible idea. One of those horrible ideas that is just so good you can't resist making it. While building this, Mike singed his eye brows, burned his hand and even inhaled flaming hair spray. The upside is your home will have an overwhelming smell of fresh burning linen.

Now that we have warned you of the dangers, let's start creating this fire-breathing Halloween contraption!

Before You Begin

This tutorial assumes you have completed the Getting Started guide and that you understand how to upload a sketch to Bean using Bean Loader.

Software

Hardware

Make it

Hack the Glade

The air freshener is controlled through it's one-shot button located on the back of the unit. Normally the air freshener is operated on a timer but glade added a manual button for those especially dank moments. The button is a micro-switch that connects an active low signal to ground in order to activate the unit. The signal from the air freshener is connected to D0 on the Bean+ and is used to trigger the spray.

We removed the batteries that came with the air freshener and opted to power the whole device from the Bean+'s 3.3V regulator. This allows the Pumpkin NotiFire to be re-charged and more importantly there is one power switch. It is really important when you are working with things that breath fire ;)

New Glade!
The insides
Candle!

Glue or place the candle as close to the Glade nozzle as possible. Protip: Make sure the flame isn't in the path of the stream, otherwise it puts out the candle every time.

Carve your pumpkin

It is essential that your pumpkin looks amazing otherwise the Halloween gods may punish you with a proper burning (I lost my knuckle hair for my sins). This means making sure you line up the nozzle on the Glade Air Freshener with the mouth of your pumpkin.

Get everything you need

Get everything together to gut this pumpkin!

STAB TOP OFF

Safely use a large knife to remove the top.

Gutt it!

Use hands to cleanly remove insides.

REMOVE EYES!

Safely hold pumpkin in one hand while using sharp knife to stab eyes out.

All Done!

Admire your creation. It is time to turn this pumpkin into a fire breathing dragon.

Program Your Bean

In order to get the Pumpkin NotiFire to spit flames whenever you get a text we used ANCS (Apple Notification Center Service) to receive all the phones notifications. The Bean+ goes through the notifications and triggers if there is a text message. The opportunities are endless, as it can be triggered with any notification or a specific text message!

After the Bean+ is paired with the phone, it will forward all notifications over ANCS. Be careful because it sends all the queued up notifications that you have never looked at. So before you go throwing flames you better clear the notifications for all those tinder matches and the text messages that come with them.

Code

#define FIRE    0

AncsNotification notifications[8];

void setup() {
  // Serial port is initialized automatically; we don't have to do anything
  BeanAncs.enable();
  pinMode(FIRE, OUTPUT);
  digitalWrite(FIRE, HIGH);
}

void loop() {
  int msgAvail = BeanAncs.notificationsAvailable();

  if (msgAvail) {
    Bean.setLedRed(30);

    BeanAncs.getNotificationHeaders(notifications, 8);

    for (int i = 0; i < msgAvail; i++) {
      if (notifications[i].catID == 4) {
        Bean.setLedGreen(155);
        delay(500);
        digitalWrite(FIRE, LOW);
        delay(500);
      }
      Bean.setLedGreen(0);
      digitalWrite(FIRE, HIGH);
      delay(3000);
    }
    Bean.setLedRed(0);
  }
}

Add the Fire and Test

Bring it all Together! ( 📱 + ✉️ = 🎃🔥🔥 )

Place your now working flamethrower inside the pumpkin making sure the nozzle points out of the pumpkin, otherwise you could end up with a Note 7 situation inside.

Inside!

👋 Goodbye.

Learn More