Introduction: Making Music With Makeblock

Picture of Making Music With Makeblock

Makeblock is an aluminum extrusion based construction system that provides an integrated solution for aspects of mechanics, electronics and software design. With Makeblock you can make professional robots, toy machines or even art-ware. It's super easy-to-use and helps bring your creations to life. The only limit is your imagination.

For more information, please visit Makeblock website listed below:

www.makeblock.com/


The Music Robot was built with the timing belt, sliding rail, step motor, electromagnet, motor driver and an Arduino Uno. And even you can build a play the piano robot with Makeblock by yourself.


So far the robot can be controlled by application via USB cable installed on computer, and it can also be controlled by the Smartphone through the Bluetooth. The special application for Android Phone is in planning.

Getting Started
This instructable, Making Music with Makeblock, will show you the step-by-step instructions on how to build a robot to play the Xylophone by Makeblock.
Now let's have some fun!

Step 1: Materials List

Picture of Materials List

Materials list:
1 × Beam 0808-144
3 × Beam 0824-64
7 × Beam 0824-80
4 × Beam 0824-96
1 × Beam 0824-128
4 × Bracket 3×3
1 × Bracket P3
1 × Step Motor Bracket
2 × Timing Pulley 90T
4 × Timing Pulley Slice 90T
1 × Link Rod
1 × Rubber band
2 × Slider 496
1 × Timing Belt
8 × Bearing for Slider
4 × Flange Bearing 4×8×3mm
1 × Shaft Connector 4mm
2 × Threaded Shaft 4×31mm
2 × Shaft Collar 4mm
2 × Headless Screw M3×5
2 × Copper Stud M4-15
12 × Plastic Rivet R4120
4 × Plastic Rivet R3075
2 × Countersunk Screw M3×8
14 × Screw M4×8
49 × Screw M4×14
8 × Screw M4×22
26 × Nut M4

Electronic Modules List:
1 × Arduino
1 × Acrylic Arduino Bracket
1 × Me – Motor Driver
1 × Limit Switch
1 × Step Motor
1 × Step Motor Controller
1 × Solenoid - 12v
1 × Wall Adapter Power Supply - 12VDC
Jumper Wires

Xylophone:
1 × Xylophone
1 × Xylophone Hammer

learn more

Step 2: Tools

Picture of Tools

Tools

1.5mm Hexagonal Screwdriver

3mm Hexagonal Screwdriver

Cross Screwdriver

Slotted Screwdriver

Pincer Pliers

Scissors

Glue Gun

Adhesive Tape

Step 3: Driven Pulley Holder

Picture of Driven Pulley Holder

Materials List:
3 × Beam 0824-80
2 × Beam 0824-96
1 × Bracket 3×3
1 × Timing Pulley 90T
2 × Timing Pulley Slice 90T
4 × Plastic Rivet R4120
2 × Flange Bearing 4×8×3mm
1 × Threaded Shaft 4×31mm
1 × Shaft Collar 4mm
1 × Headless Screw M3×5
2 × Screw M4×8
1 × Nut M4
10 × Screw M4×14

Procedure:
1. Installthe Beam 0824-80 on Beam 0824-96 by using a Screw M4×14.
2. Install the other 3 Screw M4×14.
3. Install another Beam 0824-80 on Beam 0824-96 with 4 Screw M4×14.
4. Install the Beam 0824-80 on Beam 0824-96 to make a Driven Pulley Holder.
5. Install the Bracket 3×3 on Beam 0824-96 with 2 Screw M4×8.
6. Put a Timing Pulley Slice 90T on the Timing Pulley 90T.
7. Insert a Plastic Rivet R4120 into the holes on the Timing Pulley Slice 90T and the Timing Pulley 90T.
8. Insert the other 3 Plastic Rivet R4120.
9. Turn over the Timing Pulley Slice 90T and the Timing Pulley 90T.
10. Put the other Timing Pulley Slice 90T on the Timing Pulley 90T.
11. Press the Plastic Rivet R4120.
12. Insert the Threaded Shaft 4×31mm into the Flange Bearing 4×8×3mm.
13. Insert the Threaded Shaft 4×31mm with the Flange Bearing 4×8×3mm into the Timing Pulley 90T.
14. Insert the other Flange Bearing 4×8×3mm into the Timing Pulley 90T.
15. Put the Shaft Collar 4mm on the Threaded Shaft 4×31mm.
16. Insert a Headless Screw M3×5 into the Shaft Collar 4mm.
17. Install the Driven Pulley on the holder.

Step 4: Cut Link Rod

Picture of Cut Link Rod

Materials list:
1 × Link Rod

Procedure:
Cut the Link Rod by using the Pincer Pliers.

Step 5: Slider Device and Music Play Arm

Picture of Slider Device and Music Play Arm

Materials List:
1 × Beam 0808-144
1 × Beam 0824-64
2 × Beam 0824-80
2 × Bracket 3×3
1 × Bracket P3
8 × Bearing for Slider
2 × Flange Bearing 4×8×3mm
1 × Threaded Shaft 4×31mm
1 × Shaft Collar 4mm
1 × Headless Screw M3×5
2 × Copper Stud M4-15
1 × Link Rod
5 × Screw M4×8
9 × Screw M4×14
8 × Screw M4×22
22 × Nut M4
1 × Solenoid - 12v

Procedure:
1. Insert the Screw M4×22 into the Bearing for Slider.
2. Insert the other 3 Screw M4×22 into the Bearing for Slider.
3. Insert and tighten Nut M4 per screw.
4. Insert the 4 Screw M4×22 with Bearing for Slider and Nut M4 into the Beam 0824-64.
5. Insert and tighten Nut M4 per screw on the Beam 0824-64.
6. Do the same as 1~5 discribe to install another Slider Device.
7. Insert 2 Screw M4×14 into the Beam 0824-64 to install it on the Slider Device.
8. Insert 2 Screw M4×14 into the Bracket 3×3 and the Beam 0824-64 to install them on the other Slider Device.
8. Insert 2 Screw M4×14 into the Bracket 3×3 and the Beam 0824-64 to install them on the other Slider Device.
9. Install 2 Copper Stud M4-15 on the Beam 0824-64 by 2 Screw M4×14.
10. Put the Solenoid - 12v on the Beam 0824-64 next to the Copper Stud M4-15.
11. Use the Link Rod and 2 Screw M4×14 to fix the Solenoid on the Beam 0824-64.
12. Insert the Flange Bearing 4×8×3mm into the Bracket P3.
13. Insert the Threaded Shaft 4×31mm into the other Flange Bearing 4×8×3mm.
14. Insert the Threaded Shaft 4×31mm with the Flange Bearing 4×8×3mm into the Bracket P3.
15. Put the Shaft Collar 4mm on the Threaded Shaft 4×31mm.
16. Insert a Headless Screw M3×5 into the Shaft Collar 4mm.
17. Tie the electromagnet core of the Solenoid - 12v to the Beam 0808-144 by Iron Wire.
18. Install the Rubber Band into the Bracket 3×3.
19. Install the Music Play Arm on the the Bracket 3×3.
20. Insert a Screw M4×14 into the Beam 0808-144 with a Nut M4.
21. Connect the Bracket 3×3 and the Beam 0808-144 by the Rubber Band.
22. Install the other Bracket 3×3 on the Bracket P3.

Step 6: Step Motor and Electronic Modules Holder

Picture of Step Motor and Electronic Modules Holder

Materials List:
2 × Beam 0824-64
2 × Beam 0824-80
2 × Beam 0824-96
1 × Beam 0824-128
1 × Bracket 3×3
2 × Screw M4×8
1 × Limit Switch
16 × Screw M4×14

Procedure:
1. Install the Beam 0824-64 on Beam 0824-96 by using a Screw M4×14.
2. Install the other 3 Screw M4×14.
3. Install another Beam 0824-64 on Beam 0824-96 with 4 Screw M4×14.
4. Install the Beam 0824-128 on Beam 0824-96 with 4 Screw M4×14.
5. Use the Glue Gun to install the Limit Switch on the Bracket 3×3.
6. Install the Bracket 3×3 with the Limit Switch on Beam 0824-64.
7. Install the Beam 0824-80 on Beam 0824-64 to make the Step Motor Holder.
8. Install another Beam 0824-80 on Beam 0824-128 to make the Electronic Modules Holder.

Step 7: Install to the Slider

Picture of Install to the Slider

Materials List:
2 × Slider 496
8 × Screw M4×14

Procedure:
1. Install the Slider Device to the Slider.
2. Install the Driven Pulley Holder to the Slider.
3. Install the Step Motor and Electronic Modules Holder to the Slider.

Step 8: Add Electronic Modules

Picture of Add Electronic Modules

Electronic Modules List:
1 × Arduino
1 × Acrylic Arduino Bracket
1 × Me – Motor Driver
1 × Step Motor
1 × Step Motor Controller
Jumper Wires

Materials List:
1 × Step Motor Bracket
1 × Timing Pulley 90T
2 × Timing Pulley Slice 90T
8 × Plastic Rivet R4120
4 × Plastic Rivet R3075
1 × Shaft Connector 4mm
1 × Headless Screw M3×5
2 × Countersunk Screw M3×8
3 × Screw M4×8
6 × Screw M4×14
3 × Nut M4

Procedure:
1. Put a Timing Pulley Slice 90T on the Timing Pulley 90T.
2. Insert a Plastic Rivet R4120 into the holes on the Timing Pulley Slice 90T and the Timing Pulley 90T.
3. Insert the other 3 Plastic Rivet R4120.
4. Turn over the Timing Pulley Slice 90T and the Timing Pulley 90T.
5. Put the other Timing Pulley Slice 90T on the Timing Pulley 90T.
6. Press the Plastic Rivet R4120.
7. Put the Step Motor Bracket on the Step Motor.
8. Insert 2 Countersunk Screw M3×8 into the Step Motor Bracket to install the Step Motor.
9. Install the Shaft Connector 4mm on the Timing Pulley 90T by 2 Screw M4×14.
10. Put the capstan with the Shaft Connector 4mm on the Step Motor.
11. Insert a Headless Screw M3×5 into the Shaft Connector 4mm.
12. Install the Step Motor on the Step Motor Holder.
13. Install the Step Motor Controller on the Step Motor Bracket.
14. Put the Arduino on the Acrylic Arduino Bracket.
15. Insert a Plastic Rivet R3075 into the holes on the Arduino and the Acrylic Arduino Bracket.
16. Insert the other 3 Plastic Rivet R3075.
17. Press the Plastic Rivet R3075.
18. Install the Arduino on the Electronic Modules Holder by 4 Plastic Rivet R4120.
19. Install the Me – Motor Driver on Beam 0824-128 by a Screw M4×8.

Step 9: Connect the Electronic Modules

Picture of Connect the Electronic Modules

Materials List:
Jumper Wires

Procedure:
1. Connect the Step Motor to the Step Motor Controller.
2. Connect the Step Motor Controller to Arduino.
3. Connect the Limit Switch to Arduino.
4. Connect the Me-Motor Driver to Arduino.

Step 10: Add Timing Belt

Picture of Add Timing Belt

Materials List:
1 × Timing Belt
1 × Link Rod
2 × Screw M4×8

Procedure:
1. Install the Timing Belt on the Slider Device by the Link Rod and a Screw M4×8.
2. Install the Timing Belt on the Driven Pulley.
3. Install the Timing Belt on the Capstan.
4. Measure the length of the Timing Belt.
5. Cut the Timing Belt.
6. Install the Timing Belt on the Slider Device by the Link Rod and a Screw M4×8.

Step 11: Add Xylophone Hammer

Picture of Add Xylophone Hammer

Materials List:
1 × Xylophone Hammer
1 × Adhesive Tape

Procedure:
Install the Xylophone Hammer on Beam 0808-144 by the Adhesive Tape.

Step 12: Upload the Arduino Code and Play the Music

Picture of Upload the Arduino Code and Play the Music

Materials list:
1 × USB Cable(A plug to B plug)
1 × Wall Adapter Power Supply - 12VDC

Procedure:
1. Connect the Arduino to the computer by using the USB cable.
2. Connect the Wall Adapter Power Supply - 12VDC on the Arduino.
3. Upload the Arduino Code of the Music Robot.

The Arduino Code can be downloaded here:

www.makeblock.com/download

The application for Windows:
http://blog.makeblock.cc/wp-content/uploads/2012/11/MusicRobot-V2.0.zip

The Music Robot can also be controlled by the SmartPhone through the bluetooth, and the special application for Android Phone is in planning.

Comments

edurobo (author)2014-05-24

Hi we buy it recently after construction it programming getting error please let me know where i will get full working code/procedure for the same that will be great help me

Machine (author)2014-01-22

Very nicely made. Love it.

wnoskray (author)2013-10-22

Where is the PC application used to control the robot? It's not available from the link in the description.

Hi, wnoskray, I'm sorry for the link unavailable. You can download the program here: http://blog.makeblock.cc/wp-content/uploads/2012/11/MusicRobot-V2.0.zip

GastonLagaffe (author)2013-10-06

Salut,
I got the new version of this kit. The materials list is different:
- the solenoid mounting is different (seems upside down now) and no mounting material is provided
- the arduino is connected through the ME Base Shield
- the connections are provided using RJ11 cables
- M4x8 and M4x22 screws are missing (bad luck if you are in the US, luckily I am in Germany)
There is NO documentation on how to connect the electronics. The kit is a real beauty, the documentation and guide the exact opposite.
Would be nice to provide at least the cabling and a drawing on the solenoid mounting

Hi,

Gaston, I'm very sorry for the screws missing, could you supply your email for contact and we can make up for you? And, the electronics connection was shown on step 9, if you need more information, you could visit http://wiki.makeblock.cc/index.php/Product, we have update our electronics documentation.

Robot Melvis (author)2013-08-13

Those parts look expensive. What does it cost for all the parts? $500? $1000? Couldn't one save a whole lot of money using wood?

It may cost about 200$, now it is 159.99$ in the onlin store end to October 9th.
See more details here.

DemolisionWolf (author)2013-06-22

This is inspiring.
What is the difference between a step motor and a servo? Is one more accurate and is one better cost and is one better at moving a weight?

askjerry (author)DemolisionWolf2013-06-23

A servo is a DC motor that turns an internal sensor to determine position. You send it pulses of a specific width and it moves until it's internal sensor matches that width as closely as possible. You must send a constant stream of pulses to maintain the position.

A stepper has a series of magnetic poles arranged in a polar array N-S-N-S etc... and a set of coils set up as a N-S and a S-N pair. when a coil is energized, it moves into position to the closest opposite magnetic field. As the coils are stepped (hence the name) the motor advances to the next position. A stepper only needs a change when you want it to move... so a contant stream of commands is not required. The down side is that it constantly draws poer. However, because it will always return to the exact same spot, they are more accurate than the traditional servos.

There is another type of servo called a quadrature servo, but this us usually not used in a small hobby application. You will however find them in larger CNC machines. These are given a STEP and DIRECTION signal... every time the STEP signal is pulsed it advances one position which is based on an optical encoder and electronics package. Encoders are available up to 1000 steps per revolution. You can research GECKODRIVE for more on these, or look at the encoders found at US DIGITAL.

Hope that helps,
Jerry

DemolisionWolf (author)askjerry2013-06-24

Thanks everyone, the info really does help- a lot. I'm a total noob in electronics.

The information sparks a new question-
If I wanted to have 4 motors that act as pillars of a small platform to angle or level it, and i was using an micro controller (arduino), are the commands going to be done sequentially, or uniformly? because it sounds like a servo would move the first motor, then move the second only after the first is done and held in position because of the 'pulse' concept. Is this true?
And is this true for step motors too? and quadrature.. but if quadratures are used in cnc... i would think they would have to all work in unison or they couldn't get a diagonal path in 3 dimensions.

askjerry (author)DemolisionWolf2013-06-24

Servo - the pulses could be sent in rapid succession, normally there is a 14 mS delay between pulses on a single servo... but if you do them sequentially, all the servos would appear to move in unison.

Stepper - You would set the bit mask for the direction and another bit mask for the pulses... fire them out in parallel. That is how software such as EMC2 works.

DemolisionWolf (author)askjerry2013-06-26

I appreciate your incite, thanks for sharing it helps me a lot in learning how this stuff behaves.

GordieGii (author)askjerry2013-06-23

Of course if you come from an industrial background then what you describe in your first paragraph would be refered to as an RC servo of hobby servo. What you describe in your last paragraph would described as a digital servo. The motor could be AC or DC. The command pulses could be Direction and Step or Quadrature (two square waves 90 degrees out of phase). The encoder is often built into the motor, can be quadrature or absolute, and could have up to hundreds of thousands of pulses per revolution. Those units are much more precise than hobby servos, more reliable than steppers (they don't slip when overloaded), much MUCH faster than hobby servos and steppers, work on high voltage and are outrageously expensive.

If you want to see some you could look here:
http://www.meau.com/eprise/main/sites/public/Products/Servo_Systems/default
The Linear Servos are pretty cool. They are like a solenoid with constant force, with virtually unlimited stroke. So you could do the xylophone slide with no belt. Mitsubishi has ones that can produce 60N (~13 Lbf) up to ones that can produce up to 18000N (~4000 Lbf).

I'm drooling just thinking about it.

Gordie.

askjerry (author)GordieGii2013-06-23

My CNC mill has DC motors... I added a quadrature 500 line encoder and a Geckodrive for each motor. You then tie two lines to the parallel port for each... step and direction. If you set direction high and pulse the step it goes clockwise... change the direction to a low and each pulse will drive it counterclockwise.

Pretty simple to control... and as you stated, they don't miss steps.

GenAap (author)2013-06-23

Is a piano next? ;)

AJMansfield (author)2013-06-23

This "makeblock" is just T-slot framing for wimps. Real T-slot hardly even costs more, either, looking at the prices.

GordieGii (author)2013-06-23

One word: MIDI

norfintork (author)2013-06-23

Very nice! It would be handy if MakeBlock would post which base kit comes closest to providing the required parts and then a differential list as well.

avergara lopez (author)2013-06-22

Does anyone have a good site for the materials?

avergara lopez (author)2013-06-22

This is amazing!

chipalip100 (author)2013-06-20

How much will it cost me to buy the parts

armstk180 (author)2013-06-19

This is very great idea ! Nice !
I have seen this technology in Epson ink color printer
can you tell me where do you buy this plastic stuff to making your needed chassis ? it looks like is so fast , flexible , easy way to making chassis

The stuff is aluminum, not plastic. You can see more details about it here(http://makeblock.cc/). They have distributors in several counctries, you can find the distributors here(http://makeblock.cc/distributors/).

Stone2013 (author)2013-06-19

It's very cool,I like it!!

Honus (author)2013-06-19

Awesome!!

HollyMann (author)2013-06-19

wow cool - :) Technology is amazing

About This Instructable

23,357views

127favorites

License:

Bio: Makeblock was founded in 2012 as the world's first open-source robot and programing platform. With more than 400 mechanical components, electronic modules, and software ... More »
More by Makeblock Robotics:How to Use Scratch or Arduino to Program a MBot 3D Capture B by Makeblock How to do a cartoon project with Airblock and paper cups
Add instructable to: