Slashdot Mirror


Homemade Robotic Xylophone Plays Holiday Melodies

compumike writes "Just in time to add a bit of geeky holiday cheer to your office, this video demonstrates how to build a robotic xylophone featuring handmade solenoids and aluminum bars, and shows it playing several classic holiday tunes. New songs can be programmed in with C macros, and this project could even be extended to perhaps play a melody when a new e-mail arrived or a software build has finished compiling!"

70 comments

  1. What a bunch of nerds. by Anonymous Coward · · Score: 0

    I can't believe the actually designed their own xylophone. They could have just bought one.

    1. Re:What a bunch of nerds. by Anonymous Coward · · Score: 1

      Indeed, the project is the "robot that can play a xylophone" part, not the xylophone itself. The same goes for the solenoids.

      Anyone care to test their demo to tell them how much each note is untuned?

    2. Re:What a bunch of nerds. by DeathToBill · · Score: 2

      New songs can be programmed in with C macros

      I think this tells you everything you need to know about the people involved.

      --
      Slashdot - News for Nerds, Stuff that Matters, in ISO-8859-1 Has just realised that beta makes this signature redundant
    3. Re:What a bunch of nerds. by Anonymous Coward · · Score: 2, Funny

      Yeah! They could have bought all the other parts too! In fact, they could have not bought or built anything and just fucking googled jingle bells on youtube, stupid fuckers!

    4. Re:What a bunch of nerds. by Opportunist · · Score: 1

      True geeks would have used a much less suited and much more obscure language.

      --
      We used to have a Bill of Rights. Now, with the rights gone, all we have left is the bill.
    5. Re:What a bunch of nerds. by guruevi · · Score: 1

      Python?

      --
      Custom electronics and digital signage for your business: www.evcircuits.com
    6. Re:What a bunch of nerds. by Anonymous Coward · · Score: 0

      Python?

      I think Perl is a much better choice for programming music.

    7. Re:What a bunch of nerds. by Johnberg · · Score: 1

      MIDI? Oh, right. A geek/nerd wouldn't use a standard that has existed for 20+ years just to play jingle bells.

    8. Re:What a bunch of nerds. by _Shad0w_ · · Score: 1

      My thought was "I want to combine this with a MIDI interface now".

      --

      Yeah, I had a sig once; I got bored of it.

    9. Re:What a bunch of nerds. by Anonymous Coward · · Score: 0


      New songs can be programmed in with C macros

      I think this tells you everything you need to know about the people involved.

      That's not the programming language - it's the key. It's supposed to read "Serenade in C Macro"

    10. Re:What a bunch of nerds. by An+ominous+Cow+art · · Score: 2

      New songs can be programmed in with C macros

      I guess a C# joke would have fallen flat here.

  2. Now... by MrQuacker · · Score: 1

    Now we just need a printer than can play Fur Elise.

    1. Re:Now... by MrQuacker · · Score: 4, Funny
      Found it: http://www.youtube.com/watch?v=FHcV8vZ96OM

      Wasn't this on /. a few years ago?

    2. Re:Now... by DarkKnightRadick · · Score: 0

      Technically not a printer, but yeah...that's just nerdy. lol

      --
      "There is a way that seems right to a man, but its end is the way of death." Proverbs 16:25 (NKJV)
    3. Re:Now... by Anonymous Coward · · Score: 0

      no

    4. Re:Now... by Muad'Dave · · Score: 1

      How about a Formula 1 car that plays God Save the Queen, La Marseillaise or We Are the Champions?

      --
      Tiller's Rule: Never use a word in written form that you've only heard and never read. You will end up looking foolish.
    5. Re:Now... by mswhippingboy · · Score: 1

      Nothing new here. I remember way back (late 70's) when when we had the old IBM 1403 printer playing tunes.

      http://beemp3.com/download.php?file=8038028&song=1403+First+Noel

      --
      Sometimes the light at the end of the tunnel is the headlight of an oncoming train.
    6. Re:Now... by Obfuscant · · Score: 1
      The highlight of the 1976 or so Michigan State University Computer Science "Engineering Day" display was a large Calcomp plotter playing show tunes. This was a huge monster plotter, but it did a great Liza Minnelli.

      To date another technology, a different display showed a very early version of the Votrax voice encoder from Federal Screw Works, and how the students had programmed it to call the local pizza place and order a pizza.

    7. Re:Now... by Anonymous Coward · · Score: 0

      new version of that
      http://www.youtube.com/watch?v=6xMVOaGCecU

  3. I hope this by arndawg · · Score: 1

    doesn't make patrick moore redundant.

  4. Ding ding dong by Anonymous Coward · · Score: 0

    Does not compute!
    *ASPLODE*

  5. nerds are so self-satisfied by FuckingNickName · · Score: 2

    The meat of exercise could have been summarised in about 3 sentences; I did not need to watch 13 minutes of video. Congrats, you have a GCSE / high school knowledge of electronics.

    1. Re:nerds are so self-satisfied by Anonymous Coward · · Score: 3, Insightful

      You meanie. Knowing the theory is not the same as actually building it. The problems they solved with using re-pulser magnets at the bottom of the solenoids, hollowing out the striking bars for less mass etc are interesting. They show what happens when you try to build something like this in real life, as opposed to just sitting at home thinking you know it all already.

    2. Re:nerds are so self-satisfied by nschubach · · Score: 1

      ...opposed to just sitting at home thinking you know it all already.

      Are you kidding? Just this morning I flew to Jupiter and back then rebuilt the engine in my car. But I didn't have to get my hands dirty or dump a lot of cash on rocket fuel.

      --
      Every time I start to have faith in humanity, I ruin it by driving to work between 7 and 8 am.
    3. Re:nerds are so self-satisfied by realityimpaired · · Score: 1

      Would have been much more interesting if they'd done it with a pair of robotic arms, rather than a bunch of homemade linear actuators...

  6. Funny joke by Anonymous Coward · · Score: 0

    ReMi Fa DoDo.

  7. Pedantic correction by residents_parking · · Score: 4, Informative

    That's a glockenspiel. A Xylophone has wooden bars. I know because as a kid I assumed it would be the other way round.

    1. Re:Pedantic correction by Anonymous Coward · · Score: 0

      Not quite, since "Glocke" is German for "bell". Glockenspiel is just the German word for carillion.

    2. Re:Pedantic correction by Anonymous Coward · · Score: 0

      True, but this is typically nerdy hang up in technical details while missing the big point. This has to be the most annoying thing ever made!

    3. Re:Pedantic correction by Anonymous Coward · · Score: 0

      You're right it's not a xylophone. It's a vibraphone.

      http://en.wikipedia.org/wiki/Vibraphone

    4. Re:Pedantic correction by Anonymous Coward · · Score: 1

      You're right it's not a xylophone. It's a vibraphone.

      It is absolutely NOT a vibraphone. For one, it doesn't have resonators under the bars, and two (most importantly), it doesn't have the rotating valves in those resonators that give the vibraphone its distinct vibrato effect (which is where it got its name).

  8. Not a xylophone by diethelm · · Score: 4, Informative

    A xylophone has wooden bars. This would more correctly be called a metallophone.

    With that important piece of information pointed out, you can all carry on now.

    1. Re:Not a xylophone by Anonymous Coward · · Score: 0

      It's as if they've never seen a musical instrument. I mean come on, even if they never played an instrument in their life, how hard is it to look off of one?

      Or even use one already made? No need to re-invent the wheel...

    2. Re:Not a xylophone by clone52431 · · Score: 1

      It could also be a marimba.

      Not sure what the difference between them is, other than a metallophone has metal keys by definition and a marimba’s keys are usually wood (but unlike the xylophone, don’t necessarily have to be).

      --
      Distributed Denial of APK: It takes 15 seconds to reply to him anonymously, but wastes tons of his time if we all do it.
    3. Re:Not a xylophone by Anonymous Coward · · Score: 1

      It could also be a marimba.

      Not sure what the difference between them is, other than a metallophone has metal keys by definition and a marimba's keys are usually wood (but unlike the xylophone, don't necessarily have to be).


      Not entirely true. A critical component of a marimba is the resonators under the bars. Those who are referring to this as a glockenspiel, or more generally as a metallophone, are 100% correct.

      -- A long-time percussionist

    4. Re:Not a xylophone by _Shad0w_ · · Score: 1

      A marimba has resonator tubes suspended bellow the bars.

      --

      Yeah, I had a sig once; I got bored of it.

    5. Re:Not a xylophone by Technician · · Score: 1

      With a few modifications, it could sound much nicer than a toy piano. The plungers contact the bars too long. Examining a doorbell shows the plunger should overshoot the end of the electrical stroke to strike the bar and leave it free to resonate instead of remaining in contact to dampen the sound. Addition of either a cavity or tuned tube below the bar can give it the door bell or department store tone or a vibraphone with dampers in tuned tubes.

      Without either, it sounds like Schroder's piano on Peanuts.

      --
      The truth shall set you free!
    6. Re:Not a xylophone by Yvan256 · · Score: 1

      You know what else is made of wood?

      ...

      A WITCH!

    7. Re:Not a xylophone by kevinmenzel · · Score: 1

      Marimbas (like xylophones) have the bars made out of wood (or a synthetic substitute). Marimbas have a lower range than xylophones. Both xylophones and marimbas in modern western form have resonator tubes. Given the range, this is probably best called a metallophone... if it were chromatic, then maybe it could be called a glockenspiel. - also a long time percussionist, especially wanting to note that marimbas have wood bars.

    8. Re:Not a xylophone by kevinmenzel · · Score: 1

      So do most western xylophones.

    9. Re:Not a xylophone by Anonymous Coward · · Score: 0

      The salient different between a xylophone and a marimba, apart from range, is that marimbas have wooden bars of variable width (wider as the notes get lower).

  9. Power Supply by Anonymous Coward · · Score: 0

    During the time I worked on electronic HID ballasts, I wrote some python code allowing a string with notes to be played on the transformers of the ballast, by changing the lamp current commutation frequency accordingly through the serial debug interface of the ballast's microcontroller. This reminded me and it was really fun, and didn't cost my boss much time either.

  10. Related: geeks shot by annoyed coworkers by Anonymous Coward · · Score: 0

    "Their damn toys playing Christmas music all year round just drove us all crazy!"

  11. How ironic... by poptones · · Score: 1

    You're making jokes, but certain printers used to do EXACTLY THAT as part of their diagnostics. I believe it was certain IBM inkjet printers, though it's been so long I don't really recall. I do know we used to get calls from baffled users saying "you're not gonna believe this" at which point we'd ask "is your printer playing fur elise?"

  12. Orchestrion by Anonymous Coward · · Score: 0

    Pat Metheny's Orchestrion takes this to a much higher sphere: http://www.youtube.com/watch?v=9VymAn8QJNQ

    1. Re:Orchestrion by treeves · · Score: 1

      Mod up. I saw this on Metheny's website when I went there looking to see if I could stream or download samples of his newer music. I could do the former BTW.
      Long-time Pat Metheny fan.

      There was also a project in Australia to play a clarinet robotically. Much harder, if you ask me, than playing a percussion instrument robotically.
      See http://www.youtube.com/watch?v=mAIeTm4lO5Q

      --
      ...the future crusty old bastards are already drinking the Kool-Aid.
  13. Just holiday melodies? by clone52431 · · Score: 1

    They should write a few more tunes... it would easily supplant this project in geekiness.

    They have until February to design the robotic slide guitar and robotic congos. Cocktails not included...

    --
    Distributed Denial of APK: It takes 15 seconds to reply to him anonymously, but wastes tons of his time if we all do it.
  14. Hey, bartender! by SEWilco · · Score: 1

    featuring handmade solenoids and aluminum bars

    Nice handmade bar! I'll have two shots of transparent aluminum.

  15. It's not a xylophone. by Johnberg · · Score: 1

    I hate when nerds don't know their stuff. Xylophones and Marimbas are made from wood. Orchestra Bells and Glockenspiels are metal. Also, striking the bar directly in the middle is what makes them sound so bad. The 'mallet' should be off center for the same reason the suspension bars are. Putting the hammers on the ends of the bars would improve the sound dramatically (theoretically).

    1. Re:It's not a xylophone. by Johnberg · · Score: 1

      And why it is played with C macros and not a MIDI file?

  16. wound their own? by pz · · Score: 2

    I *loved* this project, even if it isn't brand-spanking new, and even if they got the xylo- / metallo- / whatever terminology not quite right. They got the physics right, even going back to original reports. Moreover, they didn't intone "4th degree differential equations" all-wide-eyed, but, instead with confidence that it's knowable and understandable. They not only machined their own bars, but wound their own solenoids on custom-machined forms! Holy western union, Batman! That's beyond nerdy: That's Thomas Edison / Alexander Graham Bell levels of intensity. Reminds me of MIT undergrads.

    And, beyond all that nerdfest of wonderfulness, they managed to make a very watchable and instructive video. To all of you who are bashing this impressive effort, I say: go do better, and then come back and sling your darts and arrows.

    They wound their own solenoids by hand! I can't get over that. My father, when he was working as an engineer, built a machine to wind coils because doing them by hand was so onerous. Doing it by hand, and showing how on a video, that's beyond showing off, that's showing *how*.

    My hat is off to these folks: well done!

    --

    Put my fist through my alarm clock with its ding-dong death inside my ear. - The Blackjacks.
    1. Re:wound their own? by timbos · · Score: 1

      Reminds me of MIT undergrads.

      Heh. They are MIT grads... From: http://www.nerdkits.com/team/ "We started NerdKits as MIT students "

    2. Re:wound their own? by clone52431 · · Score: 1

      They wound their solenoids by hand? Isn’t that a little like writing an application in assembly language? on a CPU you built from relays and piano wire?

      --
      Distributed Denial of APK: It takes 15 seconds to reply to him anonymously, but wastes tons of his time if we all do it.
    3. Re:wound their own? by pz · · Score: 1

      They wound their solenoids by hand? Isn’t that a little like writing an application in assembly language? on a CPU you built from relays and piano wire?

      Yes, *exactly*. Now that I've been told they are in fact MIT graduates, it makes sense. The MIT EECS curriculum (which I had the tremendous fortune of being able to teach all four of the core courses) emphasizes precisely that: build your own from scratch so that you understand every single aspect. In the Intro to Digital Design course (6.004) students, do, in fact, build CPUs from relays and piano wire, as it were. Then they code in machine language for a while, followed by writing an assembler so they can use assembly language.

      --

      Put my fist through my alarm clock with its ding-dong death inside my ear. - The Blackjacks.
    4. Re:wound their own? by Obfuscant · · Score: 1
      In the Intro to Digital Design course (6.004) students, do, in fact, build CPUs from relays and piano wire, as it were.

      Pure luxury. In my college, we had to produce our own coke to smelt the copper ore to produce the wire and bits to make relays by hand, and THEN we got to program them in BINARY -- we didn't have a "machine language" until senior year.

      Unless these MIT folks are extruding their own wire, I'm not impressed.

  17. Next step by Muad'Dave · · Score: 1

    The next step would be to add a simple MIDI interface - an optocoupler and a UART that runs 31,250 baud would work, IIRC. I build one in college (back in the early 80's). That baud rate is 1/64th of 2MHz, which was prescaled down by the Z-80 DART chip I used.

    --
    Tiller's Rule: Never use a word in written form that you've only heard and never read. You will end up looking foolish.
  18. doing it the hard way by Anonymous Coward · · Score: 0

    back in the day we just wrote the code to cause the correct radio interference pattern for each note so you didn't have to build a xylophone or solenoids or anything. Just put a simple little AM radio on top of the computer and, voila, music.

  19. A primitive electric pianola. by blind+biker · · Score: 1

    These guys have invented the electric pianola. Brilliant! But wait, this one is robotic!

    --
    "The agriculture ministry is not in charge of Gundam" - Japanese ministry official.
    1. Re:A primitive electric pianola. by hedwards · · Score: 1

      That beautiful music you hear, is the sound of Skynet coming to get you. Unfortunately, music makes it hard to sneak up on a person, so I'm guessing it'll go for the deaf first.

  20. This guy has an entire robot band! by maomoa · · Score: 1

    Just one instrument? "J-Bot" has and entire band with horns, guitars, and drums all controlled by robots. http://www.capturedbyrobots.com/

  21. Nothing to see here... already done by Anonymous Coward · · Score: 0

    Pat Metheny Orchestration Project. Been there and he owns the tee-shirt.

  22. Hardly "home made" by mlwmohawk · · Score: 1

    While I am a hobbyist in my own right, the tool set sophistication of this project is a bit high. Home cut and tuned aluminum bars? Give me a break, it would be less time consuming, easier and cheaper to run to "toys are us" and BUY a cheap xylophone. Seriously, lathe cut solenoid cases? OMG, who has a lathe? I would have gone to a hardware store, or sowing store to buy some plastic spools. Again, cheaper, easier, and less time consuming. MOSFETs are cool, but for the current and time constrains, a simple 2n2222 would work fine. Lastly LED's as a clamp diode? OMG! LEDs are slow, you'll eventually cook the mosfet regardless.

    1. Re:Hardly "home made" by mlwmohawk · · Score: 1

      Hohner Kids Glockenspiel, $19.99 on the web. Not having to find, cut, tune, and mount 8 aluminum bars, priceless.

  23. Comment removed by account_deleted · · Score: 1

    Comment removed based on user account deletion

  24. Pat Metheny by bigmo · · Score: 1

    Pat Metheny is touring now with a "robot band" on his Orchestrion tour. There are a couple videos on the web and a fairly good writeup on Wired: http://www.wired.co.uk/news/archive/2010-02/01/robot-band-backs-pat-metheny-on-orchestrion-tour

    Pat's website has more info about his reasons for this approach: http://www.patmetheny.com/orchestrioninfo/

    Not much tech weenie info, but pretty interesting for the musically minded.

  25. Comment removed by account_deleted · · Score: 1

    Comment removed based on user account deletion

  26. Comment removed by account_deleted · · Score: 1

    Comment removed based on user account deletion