Mario Theme played on Stepper Motors with an Arduino

Now that I’ve figured out how to store song information in flash memory on the Arduino, I can actually play full songs. This is a little suite of Mario Brothers themes that I put together. Enjoy!

The sound you’re hearing is coming entirely from the motors. The song information is taken from a MIDI file that I composed. An Arduino provides the necessary commands to spin the motors at the required frequencies.

Note: See my earlier video at http://www.youtube.com/watch?v=8L8hY8siUMQ

Motor #2 buzzed a bit on the table this time. I’m going to find a better way to hold the motors still while still allowing them to vibrate.

———————————

Answers to common questions:

Q: Will you give me the computer code you used?

A: Apparently I will because everyone seems to think I’m for not wanting to. Ask for the code and I’ll be happy to email you a copy.

Q: Where are the other videos?

A: Sorry. I am quite busy with my PhD work and don’t have an enormous amount of free time. I promise to get around to these videos in the next few months (by the end of the Summer at the latest).

Q: What hardware did you use?

A: The stepper motors are bipolar NEMA 17 motors. The microcontroller is the Arduino Deumilanove. The power supply is 24 V, 4 amp. I am also using a 3-axis stepper motor driver board manufactured by Xylotex (xylotex.com). I actually don’t recommend the Xylotex board anymore. Instead, try the drivers available at Probotix.com.

Duration : 0:2:39


[youtube Kh2AWswAMvw]


Posted

in

by

Comments

25 responses to “Mario Theme played on Stepper Motors with an Arduino”

  1. estlib Avatar
    estlib

    you shouldve …
    you shouldve dishuised the motors as castles and the yellow thingies as flags

  2. compu2004 Avatar
    compu2004

    could you please …
    could you please grant access to the code?

  3. metro2002 Avatar
    metro2002

    Great stuff.
    Great stuff.

  4. TheDamnSpot Avatar
    TheDamnSpot

    2:38 of my life …
    2:38 of my life that was WORTH IT!

  5. fujitsulifebooke342 Avatar
    fujitsulifebooke342

    What happens if you …
    What happens if you wire up a motor to a speaker amp?

  6. TailsX97 Avatar
    TailsX97

    make green hill …
    make green hill zone theme : )

  7. Hogaboga101 Avatar
    Hogaboga101

    The star theme …
    The star theme makes me feel so powerfull! o.O

  8. sworteu Avatar
    sworteu

    put some mirrors on …
    put some mirrors on the motors, then aim a laser to it, you would have a cool music disco and sound !!

  9. MusicGaming1 Avatar
    MusicGaming1

    19 people dosent …
    19 people dosent understand that motors can play music

  10. LupusNoctu Avatar
    LupusNoctu

    Total geek moment …
    Total geek moment there! Lol. Nice work. 🙂

  11. RJacobs8907 Avatar
    RJacobs8907

    You sir just made …
    You sir just made my day lol

  12. MegaDarktom Avatar
    MegaDarktom

    Could you email me …
    Could you email me the code. Darkme1922@hotmail.com

  13. fleanine Avatar
    fleanine

    thanks for posting …
    thanks for posting this! quality stuff. made me smile. nice work!

  14. TheCheky Avatar
    TheCheky

    que coño es esto??
    que coño es esto??

  15. FrancoDucati Avatar
    FrancoDucati

    MITO!!!!!
    ma come …

    MITO!!!!!
    ma come caxxo hai fatto?
    sei un grande

  16. cmhiekses Avatar
    cmhiekses

    @cipriuss There is …
    @cipriuss There is no Gcode associated with this project. Please read the video description. This music is being made using an Arduino microcontroller. If the arduino code is what you’re after, then I will gladly send it along. But I don’t have any Gcode to send you.

  17. cipriuss Avatar
    cipriuss

    Do you have a gcode …
    Do you have a gcode to be used with a cnc controller please? I have a Gcode with the Mario theme, but its not sound that good.I also have Tetris song. If anyone wants them, email me cipriuss@yahoo.com

  18. slanderousndgs Avatar
    slanderousndgs

    Free inexhaustible …
    Free inexhaustible energy is real!But the coverup is very strong,Get the blueprints for a real Magnet motor free enegy machine at LT-MAGNET-MOTORdotCOM ,Be a part of the energy revolution!

  19. the1stbuilder65 Avatar
    the1stbuilder65

    @cmhiekses @ …
    @cmhiekses @cmhiekses lol the smiley face makes it all ok

  20. the1stbuilder65 Avatar
    the1stbuilder65

    @cmhiekses lol the …
    @cmhiekses lol the smiley face makes it all ok

  21. axel1973w Avatar
    axel1973w

    How many Pins does …
    How many Pins does one of your steppermotors have? just can see two wires yet. but that may not be possible i guess.

  22. magopo84 Avatar
    magopo84

    cool!! can i get …
    cool!! can i get the code?

  23. philsmoviesinc Avatar
    philsmoviesinc

    @Nagraath Aggggh! …
    @Nagraath Aggggh! Invasion of little kids!

  24. jpap967 Avatar
    jpap967

    I’m an electrical …
    I’m an electrical engineer but I’m also a musician, and I must say, very nice arrangements you put together!

  25. chillieluvr45 Avatar
    chillieluvr45

    I can’t even …
    I can’t even imagine how long this might’ve taken lol. Then again, if you’re doing things like this for funsies, you’re probably very good at it. Kudos!

Leave a Reply