Music-Loving BeagleBone

Robotic control can get very complicated when multiple actuators need to work in coordination with each other. A simple robotic arm will require each joint to be controlled in sequence to attain a particular position. The BeagleBone Blue comes armed with motor drivers, sensor inputs, and wireless and is built for robotics.

[Andy] has prepared a musical robot called the BeagleBone Blue Electro-Mechanical Glockenspiel using the single board computer. The hardware consists of eight servo motors each with a mallet stick attached to them. The motors themselves are mounted on 3D-printed brackets allowing them to be mounted at the correct height. The servos connect to the main board for position control, however, an external supply had to be used to supply the necessary current to all the motors.

The software side has programs to translate notes into servo positions as well as connect to a web brower via MQTT and websockets. The basic user interface is simple and has buttons to connect to and send the keystrokes. The code, as well as the OpenSCAD designs, can be downloaded from GitHub. Check out the video below for a demo.

This project could be extended to an autonomous robot that plays tunes from the Internet. We are reminded of the rock throwing glockenspiel which was pretty cool and hope there are some permutations to come from both.

10 thoughts on “Music-Loving BeagleBone

    1. I did look into including midi. I don’t have any keyboards etc so it would have been all computer based. Geert Bevin has written some tools to allow you to send midi over a network. For me it was more useful to build a web interface.

    1. Solenoids have their problems too.
      They’re expensive compared to the servos used here.
      Cheap solenoids have pistons with magnets and those stick to the keys.
      If the solenoid piston isn’t a magnet it will at least be metal which sounds differently than wood or rubber hitting a key.
      Solenoids require a big jolt of power whereas a servo just needs a power supply and a signal so the circuit is simpler.
      I’ve done this both ways for a glockenspiel and there are about 1000 wrong ways to do it.

      1. The project was a test to see what the BeagleBone Blue could do. Interestingly, it could not power 8 servos directly so I had to put a shim in to provide power to them.

        I rarely choose the simple option, where is the fun in that!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s