Let's Make Robots!

How to make a Yellow Drum Machine

fritsl's picture
Learn how to make a "Yellow Drum Machine"
Time to build: 
50 hours
Cost to build: 
$175

 

Your browser is not able to display this multimedia content.

Your browser is not able to display this multimedia content.

AttachmentSize
YDMIIDIY.wav3.75 MB
YDMIIcode.bas21.93 KB

Update: Minor correction, nothing new here ;)


On this page I will help you making your own "Yellow Drum Machine" (from now on: "YDM", though it can be in any color, of course :)

If you have never build a robot before, I would STRONGLY suggest that you start by making this (follow link) project instead. Many of the parts can be used in making an YDM afterwards.

What You will find on this page is free instructions in:

  • What to buy
  • Suggestions on where to buy it / links
  • How to connect everything to everything
  • How to mount everything on everything
  • How to test everything
  • Short examples of the programming, and tips on how to learn more.


This instruction is made with what ever pictures and other material I had available - I have not made a new machine and taken pictures of it. Therefor you will find different robots posing as models - and the guide will be kind of rough, as I cannot show you every detail.

Links on items below are made to save space on this page, and to give you an idea of where to buy the parts, or the chance to see what they look like, get more info etc.

Most likely you want to buy the parts somewhere else, perhaps in your own country to save money or get it faster.

Please use this forum to discuss with others on where to find the parts cheap / local etc..


Enough said :) Start here, shop, here is all you need:

(The items below here can be found in the Picaxe-shop)

1 x SRF05 Ultra Sonic Range Finder (the shop has a wrong image of it, it looks like this)

2 x L293D Motor Driver

1 x Sampler board with microphone and speaker

1 x Picaxe start-pack. It comes with the choise of USB or Serial. I recomend USB. Note that the picture on the shop is wrong on USB-option, it shows serial. But if you buy the USB-starter-pack, your USB cable is in there. (Of course if you already have a cable or bought a start-pack before, only buy the parts you need)

1 x Battery Holder for 4 AA Batteries

 

(The items below here can be found at solarbotics.com)

1 x 2 Geared motors + 2 Belt tracks & 2 wheels that fit the geared motors + 2 wheels for freewheelin' They used to have these in Yellow, but at the time writing this, it seams you will have to do a Black Drum Machine, or find your tracks somewhere else..

4 x Small geared pager Motors

 

(The items below here I suggest you simply find in stores near you)

1 x Melt glue gun, and plenty of glue sticks. (You will be very happy for this purchase later in your life)

1 x PerfBoard Is cheaper to get in your local electronics store, and if you cannot find one, you can easily do without, you will just have some more cables on a chip - read more and see pictures here

1 x roll of Double adhesive tape, the foamy sort,not the thin kind.

1 x about 50 centimeters of thin aluminum tube, or other light but unbendable material to be used as sticks. (Old areal / antennas can be used, and is what I have used, along with some thin fiberglass from kite-hobby stores. However, it is paramount that this is LIGHT material, and so an old "chrome" radio antennae can NOT be used, as it is some sort of brass covered with some sort of chrome etc. Also any non-hallow metal stick will not be usable, it will be way too heavy. Take this very seriously; find as light and unbendable material for the sticks as possible, it will affect drum-performance 100%.)

1 x Old speaker (to work like the top-speaker on mine, so look & size matters) I found the speaker used on the first YDM inside a satelite-speaker of an old cheap Surround system (all plastic) - the kind you get for your PC. For the second YDM, I did not have a such, so I painted half a table-tennis ball yellow, and inside it I mounted a small tiny plastic speaker form some toy. Note that different speakers gives extremely different volumes in a setup like this. If your speaker is too loud for the overall sound-mix, add a resistor on it. It is unlikely to bee too low, as this part is the one to get most straight voltage.

1 x about 1 meter flat stick / wood for the body

1 x Something to cut the sticks

1 x some super strong glue (2-component preferred)

1 x small piece of single thread (thin) (steel) wire (to hold things in place)

1 x some (cable) wire (to lead current)

1 x Soldering equipment

4 x AA cells/batteries - or better, preferred, recomended, what I use: 1 charger, and 4 rechargeable AA cells - the more mAh the better. Actually the rechargable batteries will feed the robot with lower power, and I recomend it for that reason as well - to ensure longer life of vital components such as the pager motors.

 


Stop shopping, start building!

.. But first you should practice your melt-glue gun! Remember, it is an artform to melt-glue!



  • The smart thing about old areals / antennaes, is that there is always one size in there that fits. Cut that off in as long a piece as possible, and ensure that the wheels that do not have the fitting for the geared motors has a perfect free run on these. Better too loose than too tight.
  • Assamble your belt-tracks if they came in parts.
  • Attach the other 2 wheels on your motors (They come with a a screw, that will fit in and secure them firmly on the motor)
  • Take some wire, and solder a piece on each of the 4 poles on the 2 geared motors.
  • Cut 2 pieces of stick in a length so that the belt track will not stick out, we want the stick to be out in front and back.
  • Cut a piece of the foamy double adhesive tape to fit each motor.
  • Mount the motors so that when the belt is on it can just, but without touching, run free from the stick - and so that the belt does not stick more out than the sticks at the back.
IMG_3438.JPG?imgmax=512IMG_3441.JPG?imgmax=512

 

 


What we want to build is this:

 

IMG_3446.JPG?imgmax=512

- But there are steps first, I suggest you just do it in your own way, here are some highlights:

You will have to find a way to make the wheels on the antennae sit in place, while being able to turn free. Some metal rings will do well, but this can easily be done with only melt glue. If you poke a hole in a piece of paper 4 times, and have one piece on each side of your wheel, there is no danger that the glue will make the wheel get stuck once it has hardened. And the paper can just be torn off.

IMG_3444.JPG?imgmax=512

Another way of stopping the wheels from sliding off the antennae, is to inject some super-glue into the hollow areal, and add a screw to lock it:

IMG_3628.JPG?imgmax=512

if you start by making a frame of 4 pieces of wood, it may be easier to estimate everything.

IMG_3625.JPG?imgmax=512

On the picture above, from the construction of YDMII, I have also added some screws. Double adhesive tape is however plenty, but I was doing my best to make a very strong robot with that.

Remember from your glue-gun lessons, that you start with mounting a fine line of glue, and then add more once you are sure all is in right place:

IMG_3629.JPG?imgmax=512

You want your tracks to be firm & tight. But not so they cannot easily flex. Too lose is better than too tight.

IMG_3631.JPG?imgmax=512

When done, cut a little piece of wood that fits between the motors (see top image in this paregraph). Add a little glue on the inside of each motor, and fit it in there.

On this stick, the microphone from the sound sampler board is going to be placed, if you want to make it 100% like YDM. You are going to have to cut the wires for that anyway, so if you prefer, you can glue the microphone on the stick before mounting it between the motors.

Seen from the side, you should en up with something like this:

IMG_3449.JPG?imgmax=512

 


Now, if you cannot wait, you can try to hook up the motors to a battery. Note that I am using a very flat 9V, and am connecting so that each only get 4,5V - If you do not know how to du this, then do not use a 9V battery :)

Here are some of my first run with this "chicken without a head".

.. OK.. this video may show me feeding the motors too much voltage :) FOR A SHORT TIME!

 


Next thing you want to mount is "the head".

 

First cut off some wire from the pager motors (the yellow and green ones). Reason: It is very light. If you use more heavy cable, the head might not turn so well. If you cut too much of the pager motors, you can always add some to them, they can use any cable. However, the ones I got, had very long wires attached, so taking off some 10 centimeters ("The lenght of your hand") will not matter.

Solder the cable on to the 4 places where wewill need them later:

Billede_4.png

Soldering such small cables (and even getting the plastic off) may be your first challenge :) (I used my teeth to get the plastic off, and pre-soldered the SRF05 to make it work)

Now the SRF05 has to "stand on a pager motor, somehow. See more pictures of YDM to get details.

What I did was I got some angled alloy, cut a piece, and drilled 2 holes in it to start. However - the SRF05's distance between the 2 cylenders is not - to my knowledge - documented anywhere. And so it is hell on earth to find the excact place to drill the holes. If they are too far apart, your robo will be cross-eyed to look at etc.

So, what I would do, is to take a piece of wood, and glue it on 90 degress on the SRF05, so it has "a stand.

Then I would glue this onto the pager motor. "Mount the pager motor in free air" (your lessons with the melt glue gun, remember? If you skipped them, you will be sad now, as your head will be a glue-mess). Perhaps first mount, to make sure the head is pointing forwards when in relaxed position - and is turning left / right in a proper manner.

Make sure not so leave glue on the little parts of the pager motor so it get's stuck :)

The head must be placed so that when the YDM is driving into a wall, it is not the eyes that it hits with first, but the flat front of the body!

 


Next thing is mounting the sticks.. You will need 2 component / super glue, steel wire and something to use for the sticks..

 

This picture should show you pretty much what to do; Mount with wire, add glue, done!

IMG_3643.JPG?imgmax=512

When the glue is hardening, you can move the whole thing around, so that the blob falls nice in place (and avoids touching or hindering what it should not of the moveable parts).

I recomend you not to do as I did, deciding the length of the stick before gluing. THis is a pure show off from my side; in every other occation I have made it too long first, mounted the whole thing, and THEN cut off when I was sure about the length!

Another thing you should not do, as I have done in the picture, is to use that antennae made of chrome and brass. I only did this at the "bass drum" - "tail" - and only because this was not the first time, so I knew what I was doing :)

You want to use lighter material. And you want to have it too long, and then cut it off after mounting.

And.. you want to make sure where to mount it (and thereby which way to turn it) before you mount the stick on the motor.

Tail goes in back :)

IMG_3490.JPG?imgmax=512

This one has glue inside, and a drilled hole has the wire through. Tape wrapped aroung to sort of finish up the looks.. in a way :)

Many times I add a screw or something else in the end to give a better punch.

What you want regarding length, is your stick to be as short as possible whils still hitting "on" the surface, and not "to" the surface. And then you want to make it as heavy in the end that it easily and fast comes back in position with the force of the spring on the pager motor.

Every one of my sticks where individually made, so I do not have any other "rules" than the fact that they should work :)

"Left stick" (seen from robots point of view - the lower front stick) should be placed so that the head can turn all the way without touching it.

"Top stick" should of course also be mounted in a way so that it can never touch the head.

It is allright if the sticks end up having different lenghts - in fact it is cool, we will compensate for it in the code.

I will now assume that you have mounted 3 sticks on 3 motors, and mounted the motors and the head on the body.

Please study pictures of the YDM to see how all functions should be regarding things I may not have mentioned :)

 


For the next to steps (The sampler board and the L293D motor driver in spare) you should only concentrate on the individual parts, not mount them, and not how to finaly hook them up to the Picaxe. We will look at the parts and get them working first, and then get back to them later, when all needs to be mounted and connected.

 


The Sound Sampler board

You should have a sound sampler board, and a picaxe 28x1 installed on a proto board. The motor driver should be inserted to the motor board. Please see here if in doubt / for further instructions.

You should also have your Picaxe editor up and running on a PC, and you should be ale to program your Picaxe (upload code to it from the PC). If not, please refer to the Picaxe manuals, the starter tutorials.

The sound sampler board should have 2 buttons (record & play) and a speaker and a microphone.

The next instructions will have to be done with temporary wires. This is for test, so we later just can "hook it up". You should make notes of what you learn, how to connect the things to make it work, that is the purpose of the following instructions:


  • Hook up the sampler board with batteries, and play around with it. Get to know how it works; What happens if you press play twice, can you record while playing, when and for how long is the LED on etc. Just to get a feeling with it for what is to come
  • Hook up the power to the Picaxe board (4 DD cells, preferable rechargeables)
  • Cut off the battery holder from the sampler board, it is no longer needed for this project
  • Hook up the Sampler board to the Picaxe's power supply, V&G to the right poles
  • Test it is till working - you can record a sound and play back
  • Cut off the "Play" button from the sampler board, you will et 2 wires
  • Enter your Picaxe programming editor, write the following code and upload it to your Pic:
main:
high 0
wait1
low 0
wait1
goto main
  • Now try to take one of the wires from the sampler board's play button, and hook it up to output 0 on the Picaxe board. One of them will work, note which / cut off the other one completely.
  • Your Picaxe is now "pressing play" once every second.
  • Do the same with "record", so the sampler board can be completely controlled from the Picaxe.

You are likely to be going to cut off the microphone as well once we get to assembling, to make longer wires. Maybe you have already done so, to place it between the tracks.

The Speaker is going to be cut off as well. On YDM I placed it between the tracks.. BUT the sampler board is NOT playing on it's own speaker. It should be hooked up to the "top-speaker", alone for the fact that this setup is more cool.

The port used for sound out is going to the sampler board's original speaker. More on this later, when we return to the sampler board.


L293D motor driver in spare (The one not mounted on the Picaxe 28 board)

 

Try to read this about the L293D, and follow the links.

Cut out a piece of PerfBoard to match the chip, or do the following with just lots of wires:

  • Power the L293D from the Picaxe board
  • Hook up the "head"'s pager motor to one motor-driver-set from the L293D
  • Hook up the L293D to 2 Picaxe outputs, let's say 0 & 1
  • connect everything so that you can write the following code, and make the head turn to each side & look forward:

main:
high 1 low 0
wait 1
low 1 low 0
wait 1
low 1 high 0
wait 1
low 1 low 0
wait 1
goto main


Now, try to download the code atached, and hook up like written in there :)

Best of luck on your project!

 

MaltiK's picture

YES!!!!!!!!!!!!!!!! 

YES!!!!!!!!!!!!!!!!


 

Of all the tech projects

Of all the tech projects I've seen in all the blogs across the internet, this one (and in fact, this whole blog in general) has got to be one of the coolest. It's funny because I have just read about the benefits of adhesives over mechanical fasteners to make a whole little band of these and have them play a little drum solo. Sort of reminds me of that self playing robot band. Do yourself a favor and look that up on Youtube if you haven't heard of it. Sure it sounds a little "mechanical", but the robot band is actually surprisingly convincing.

great

That's really usefull.

I hope you will continue updating while the pieces are coming!

TofuRobot's picture

yay

yay finally!
Edtronic's picture

Thats such a cool robot

Thats such a cool robot that  i was going to reverse engineer before this

Very nice fritz!

Very nice fritz!

PLEASE CONTINUE

I'm teaching my daughter (she's only 4) the principles of robotics, motors, etc and can't wait to build this robot.  She thought YDM was AWESOME and is asking everyday "is the robot ready yet ?".  I haven't purchased the parts but will do so now that you're posting the instructions.

 Please accept this as a vote to CONTINUE posting.

 

Thanks for your efforts !

 

dsmalone. 

tanx....

tanx 4 putin dis up!!.....sum of the parts cost a fair bit though!!!!
TofuRobot's picture

Continue Please

I'm waiting for my sensors to come. But in the mean time, I've been studying this

Please continue 

fritsl's picture

Thank you all, I will - but

Thank you all, I will - but I will finish the wall racer walk through first. Read my (current) profile for more info.

yellow drumming robot

Look forward to the rest of the design...hurry!

fritsl's picture

Hey - are you working on

Hey - are you working on this? If so, post your progress, please :)

Add content:

wrench_orange.png Robot project Your work in progress or a finished robot

 

Yellow Drumming Machine

I have put an order in for the parts needed so far, but wanted to know when you are publishing the entire project?

here here

I too have been reading the tutorial, sourcing the parts and eagerly awaiting the sound of DHL to come knocking at the door.

 So hip hip hoorah. For he is a jolly good fellow for sharing!

fritsl's picture

I have finished the how to

I have finished the how to make an RWR (Robot Wall Racer) - tutorial now. Next thing is this, I will add content in the coming days.
rxox's picture

Alright!

Wooo my first post here. (for some reason i wasnt able to post before)

Im new here but just to let you know, i look at the site everyday, so dont give up on the tut, im really interested,

Im going away on holiday for a month now but i cant wait to get back, order a picaxe and get building.

I really appreciate all your work on the tutorials and everything.... and i dont even have parts yet!

Im learning all this type of thing in college and just finished my first year, ( Automation and Manutronics) .

Thanks Frtzl.

Talk to yis soon. 

Ros, In Ireland

TofuRobot's picture

Which motor is it. GM3 or

Which motor is it. GM3 or GM9?

The slow one or the fast one?

fritsl's picture

Either one will do fine. And

Either one will do fine. And even faster ones, and even slower ones. YDM & YDMII used GM3 & GM9 -I cannot remember which was which, but I noted that either was fine..

It is sort of cool that it it slow, but it is also sort of cool that it is fast :)

The code wont matter, you will not have to change anything, unless you get something extraordinary speed, like in REALLY fast :) 

Air Canada

So all the parts are now here - i need to visit the shops for some construction material for the frame, something for the axle and some more glue sticks.

I have spent the last hour assembling the tracks - giving it a break for now and my hands hurt, surely there is an easier way to make these things, heh. Photographs to follow once assembly has commenced.

Vansu's picture

Is it really take $750 to

Is it really take $750 to build this YDM? I want to buid this after my first robot is done this weekend.

Vansu's picture

Oh you mean $75.okay!

Oh you mean $75.okay!

fritsl's picture

No, sorry, that was a typo.

No, sorry, that was a typo. USD 175!

chicken without head

So all the mats from solarbotics and picaxe shop have arrived!!!

I've allready got my "chicken without head" done and hope to continue fixing paged motors and sticks!

 Great work mate

Vansu's picture

Hey Fritsl! Can you upload

Hey Fritsl! Can you upload more photo with these instruction? It would help to clear up a lot of thing if there are more picture. Is it possible to just modify my first robot and just adding the speaker and the pager motor to make it work like YDM? I really don't want to take it apart because I work and struggle so hard to get it working.
fritsl's picture

Please read what I have

Please read what I have written, and you will find answers to these questions. Thanks.
Vansu's picture

can we use one of the toy

can we use one of the toy from Toy*R*Us that record and play back? Its only cost $4 Canadian. http://www.toysrus.ca/search/index.jsp?f=Taxonomy%2FTRUSCA%2F2510384&kw=SOUND

jklug80's picture

You probably can, but you

You probably can, but you have to figure out how to wire it up to the picaxe. If you are lucky it will have a part numbe ron it and MAYBE find a datasheet.
MaltiK's picture

The geared motors that come

The geared motors that come in the http://www.solarbotics.com/products/gmtpkg/ package, are they the same as these:

 http://www.hobbyengineering.com/H1415.html

from the Start Here tutorial?

because I bought the Hobby Engineering ones and I dont want shell out an extra $20 for them.
fritsl's picture

Yes they are.

Yes they are.
MaltiK's picture

does the steel rod that

does the steel rod that comes with the treads fit the Hobby engineering geared motors perfectly? because ones a G2 and the other G3?


 

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.