Mario the Magician's Magical Lapel Flower

Pages
Contributors: Dia
Favorited Favorite 2

Introducing the Magical Lapel Flower

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!

Recommended Reading

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.

Supplies

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:

  • Hook-up Wire
  • Cardboard for the back of your servo and to mount your circuit
  • Fake Flower from any craft store or dollar store
  • Velcro to help cover the top of your servo motor
  • Hot Glue
  • Masking Tape
  • Black Acrylic Paint (optional)

Put it Together!

  1. 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.

  2. Upload the sketch. (The code can be found here)

  3. 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.

alt text

    4. Clip the female part of your servo cable, and solder red to positive, dark brown to negative, and light brown to pin 10.

alt text

    5. Clip your flower to the desired size. I clipped mine to about 4 inches in length. Depending on how thick the wire is that holds the flower, drill a matching hole through your servo arm.

alt text

    6. Push the stem through the drilled hole and bend it down. I used a pair of pliers to press it down.

alt text

    7. Use a piece of shrink tubing to really secure the flower to the servo arm.

alt text

    8. Cut the cardboard to fit on top of the servo. Hot glue it down. Hot glue two magnets to the cardboard. Cut out a second piece of cardboard, with holes for the magnets to poke through, and hot glue it on top of the first piece of cardboard. Cover the magnets and cardboard with a piece of masking tape.

alt text

    9. Glue a piece of velcro to the other side of the servo.

alt text

    10. Cut out a rectangle of cardboard that will fit the Pro-Micro and power supply. Same as the flower… glue two pieces of cardboard together, with holes in one of the pieces of cardboard for two magnets to poke through. Make sure the spacing of the magnets matches the spacing of the ones on the servo so they can connect.

alt text

    11. Now is a good time to decide which side of your hoodie you want your flower on. The on/off switch should be closest to your zipper, so you can turn it on without fumbling deep into your hoodie. Mine is on my left “lapel.” Hot glue the Pro-Micro and power supply first. No need for a lot of glue! I am always cautious when hot gluing electronics. Next, glue the tiny battery down, and you are complete!

alt text

    12. I finished my project by painting the cardboard and tape with black acryclic paint.

alt text

    13. You need to find a sweet spot on your hoodie for the flower, where you can fold over your zipper and cover the servo. Use the circuit as a guide. Connect the magnets so you can slide the servo without having to hold it. Once you find that spot, clip a small opening in the fabric of your hoodie, so the servo wire can slide through. Take a smaller piece of velcro, and place it on the edge of the servo. Put some hot glue on the small piece, fold your hoodie over to the servoʼs edge, and press down so the glue sticks. Connect your servo wire to the circuit. Before screwing the servo arm to the servo, turn it so the servo arm is all the way down to a wilted flower position.

Code

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/////////////////////////////////////////////////////////////////////////////////////

Performance

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!

Mario using his Magic on the Lapel Flower

Mario using his magic on the lapel flower

Going Further

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!