The day we found Mario The Magician, we were enchanted! Mario is an NYC-based maker and street performer, and he is the subject of Mario the Magician: Building Magic. His amazing delivery of Arduino-powered humor makes it look so easy, we had to approach him and ask for a lesson! Lucky for us, it turned out the love was mutual, and thus was born an endlessly entertaining guest tutorial. Not only does he provide step-by-step instructions to create his magical lapel flower: he also offers a great tutorial on the comedic timing that makes it shine!
Here are a few foundational tutorials that might help you get started with your lapel flower:
This tutorial uses the SparkFun Pro Micro. We recommend checking out the Getting Started Tutorial for this product before you dive into this tutorial as it plays an integral role in making this project.
To create your own Magic Lapel Flower, you'll need the following parts:
The Pro Micro tells your flower when to rise and fall. The LiPo Battery powers everything up, and the LilyPad LiPower Power Supply is used to pump up your lightweight battery to 5v and to provide an on/off switch. The servo makes the flower move, and the heat shrink keeps the flower from wobbling around on the servo. The micro USB cable is for uploading code to your circuit, and the LiPo charger is for charging your battery, Last, but not least, the magnets secure the flower and circuit to your hoodie.
You will also need these other tools and supplies to follow along:
The first thing you need to do is upload the drivers needed to operate your Pro- Micro. The process is painless. All the info is in the quickstart guide.
Upload the sketch. (The code can be found here)
Solder ground to ground and positive to RAW. Be sure to solder it to RAW and not to VCC, or you will fry your board! Also, keep your wires kind of tight, because this makes for a snug fit in the end.
This is the code that you'll want to upload to your Pro Mini to perform Mario's routine! Remeber to select the correct board (SparkFun Pro Micro 16MHz/5V) and the correct serial port. If you haven't done so already, follow the installation instructions found in the Pro Micro Quickstart
language:c
#include <Servo.h>
///////COMEDY FLOWER BY: MARIO THE MAGICIAN///////////////////
////////MARCH 2013 www.mariothemagician.com //////////////////////
/////////////////////////////////////////////////////////
Servo Flower;
////////////////////////////////////////////////////
void setup()
{
Flower.attach(10);
}
void loop()
{
Flower.write(0); // Flower Wilted :(
////////////////////Flower///////////////////////////////////
///////////////////PHASE 1 ////////////////////////////////////
delay(8000); // You have 5 seconds to yell at the flower to rise, then
// Look away and scream at yourself for the flower not working
Flower.write(180); // Flower has Risen!
delay(500); // wait
Flower.write(0); // Flower Wilted :(
delay(500); // wait
Flower.write(180); // Flower has Risen!
delay(500); // wait
Flower.write(0); // Flower Wilted :(
///////////////////////////////////////////////////////////////////////
//////////////////flower///////////////////////////////////
///////////////////PHASE 2///////////////////////////////////
delay(8000); // here you explain you can make the flower rise by the power of
/////////////// of your mind. Wiggle finger underneath while humming and the
/////////////// the flower slowly roboticly rises.
Flower.write(10);
delay(200);
Flower.write(20);
delay(200);
Flower.write(30);
delay(200);
Flower.write(40);
delay(200);
Flower.write(50);
delay(200);
Flower.write(60);
delay(200);
Flower.write(70);
delay(200);
Flower.write(80);
delay(200);
Flower.write(90);
delay(200);
Flower.write(100);
delay(200);
Flower.write(110);
delay(200);
Flower.write(120);
delay(200);
Flower.write(130);
delay(200);
Flower.write(140);
delay(200);
Flower.write(150);
delay(200);
Flower.write(160);
delay(200);
Flower.write(170);
delay(200);
Flower.write(180);
delay(3000); /// Now make a high pitch sound and wiggle your fingers
Flower.write(170);
delay(200);
Flower.write(160);
delay(200);
Flower.write(150);
delay(200);
Flower.write(140);
delay(200);
Flower.write(130);
delay(200);
Flower.write(120);
delay(200);
Flower.write(110);
delay(200);
Flower.write(100);
delay(200);
Flower.write(90);
delay(200);
Flower.write(80);
delay(200);
Flower.write(70);
delay(200);
Flower.write(60);
delay(200);
Flower.write(50);
delay(200);
Flower.write(40);
delay(200);
Flower.write(30);
delay(200);
Flower.write(20);
delay(200);
Flower.write(10);
delay(200);
Flower.write(0);
///////////////////////////////////////////////////////////////////////////
delay(1000);
Flower.write(180); // Flower has Risen :)
/////////////////Flower//////////////////////////////////////////////////
////////////////////PHASE 3 ///////////////////////////////////////////
delay(6000); // Explain that you can blow on the flower to make it wilt again
/////////////Blow once nothing happens. Blow twice nothing happens
////////////Breathe in and hold it till the flower wilts. look at it
///////////shrug your shoulders and say HUH!
Flower.write(0); // Flower Wilted :(
delay(50000);
}
////////////////////////////////////////////////THE END/////////////////////////////////////////////////////////////////////////////////////
Here's where the magic comes in!
Practice in front of a mirror for each comedy phase. Change the code if the timing is not right for you. Also, practice turning the circuit on without fumbling. I get better reactions when I know exactly where the ON switch is. I can talk and look someone in the eyes while I'm turning the circuit on.
This small routine is a prime example of what my whole magic show is like. It's taken years for me to figure out how to entertain people with electronics. It feels so much more rewarding when you build something from scratch to make someone laugh!
Want to try more Arduino projects? Who can blame you! Here are some of our most whimsical Arduino projects that might be right up your alley:
Want to know more about Mario the Magician? You can find more of his projects on his YouTube Channel. We also recommend checking out his website, where you can find information, press, and ticket sales for upcoming shows!
learn.sparkfun.com | CC BY-SA 3.0 | SparkFun Electronics | Niwot, Colorado