How to make a Yellow Drum Machine

YDMIIDIY.wav (3936048Bytes)
YDMIIcode.bas (22458Bytes)
YDM_code_with_instructions.zip (21656Bytes)
YDMhookup.pdf (35290Bytes)

Update: Solarbotics has made this kit, were you will get all the vital parts needed for this project, at the best total price available out there :)


Welcome, funky friend :)

I have tried to make this project so easy that you should have fun doing it, even if you have never made a robot before, and do not know anything about electronics or programming.

However, if you have never made a robot before, I strongly recommend, that you first do the Start Here project :)

Apart from this, the skills that are needed are:
    •    Soldering
    •    Gluing, cutting, wire stripping, general assembling

Background: This is my "original draft" for an article on Make Magazine. The publiced article was edited, which may have made it better in many ways. However, unfortunately some errors occurred in the editing, and I am of course terribly sorry for that. This is my original tutorial on how to make a Yellow Drum Machine, published here in agreement with the nice people over at Make.

My YDM has released a single on iTunes :D


 

Materials

The materials used for this project, is a blend of things you can find for free, standard electronics components, and some components that can be a little hard to find.


Flat wooden sticks

DSCF8106.jpg



You can be very creative, and quickly make surprisingly strong robot bodywork out of flat sticks and hot glue, because they are so easy to work with.

The sticks can be drilled, cut, combined, shaped, and mounted in any angle, just how you want them, enabeling you to build any custom chassis and small robot body that you can imagine.

And you can often find them for free in shops that sell paint, in cheese cradles, ice creams and the like :slight_smile:


Plenty of hot glue

DSCF8128.jpg



The way I build, is I hold up components where I think they’ll look good. Then I cut a piece of wood, place that in the air between the component and the rest of the robot, and hot glue it all right there.
1 x Set of belt tracks and geared motors


DSCF8120_2.jpg



DSCF8189.jpg



You can buy pre-made robot tracks, including geared motors and chassis.

I like to buy individual parts, because as I will show you, it is fun to create designs that cannot be found in the shops, and it is really easy and fast to do.

Also, I like asymetry, and things to be a little out of angle. Specially when I am making a funky robot.


1 x Wheel axle

DSCF8113.jpg


A belt track setup of the kind we are building here uses 2 geared motors to hold 2 wheels in back, and an axle to let 2 wheels in front drive freely.

The axle can be anything that will fit into the holes, and let the wheels drive freely.

I like to use old radio antennaes for this part, as it is always easy to find a piece with a fitting diameter that way.

Perhaps also get a few metal washers that will fit over the axle.

Here is a nice tip on how to cut brass tubes: letsmakerobots.com/node/9266


4 x Spring-mounted geared motors

DSCF8143.jpg



These can only turn some 40 degrees to one side, and some 50 to the other. And when they are powered off, they jump back to where they started, because of the little spring.

They are also quite strong for their small size, and I use them to drive the 3 drum sticks, and to turn the robots head to the sides.


3 x Light weight drum sticks

DSCF8153.jpg



Even though the little motors are quite strong, it is absolutely essential that you only use very, very light weight material for the 3 drum sticks.

Thin fiber glass rods can be used, as well as the thin hollow aluminium that one can find on many old TV antennaes.

You can not use something like the chrome-covered brass from an old radio antennae, like we did for the axle - it is too heavy.


1 x Brains in board

DSCF8136.jpg



The microcontroller I am using for this project, is a PICAXE 28X1, in a 28pin project board (AXE 020). The board comes with both a Darlinton output buffer, and a place for one L293D motor driver.

If you do not have one already, you will also need an AXE027 download cable.


2 x L293D motor driver

DSCF8140.jpg



A microcontroller can only turn power on or off. With a motor driver as this, you can turn motors either way. We need to be able to drive both wheels and the head of the robot in both directions.


1 x Long battery holder

DSCF8133.jpg



While the AXE20 board for the microcontroller comes with a battery holder, the one I am using, is a little different in the design.

With it’s set of 2 by 2 batteries, it is long, and makes a nice little rear for the robot.



1 x Sampler board

DSCF8156.jpg



It is simply a little board with a microphone, a speaker, and 2 buttons.

The intended use is to press the red button, and record a message of up to 20 seconds, and then play it back over and again, by pressing the white button.

As I will show you, it is very easy to hack, so that the microcontroller controls the record and playback of the device.


1 x Cool looking speaker

DSCF8165.jpg



Speakers can be found in most old electronics. Find one that has a cool look to it, or combine a couple of old parts into a speaker in a case.


1 x Distance sensor

DSCF8123.jpg



I am using SRF05 ultra sound distance sensors from Devantech, because they are extremely reliable, and give a completely rock stable reading, even at extremely close distances.

As a bonus, they look cute as eyes.


15 x Female-to-female jumper wires

DSCF8157.jpg



Get some nice with colours to match your robot.

- And get a good piece of wire (without female jumpers in the ends), and just use that, when I am not specifically mentioning female headers on the wire.


4 x Snap off male header pins

DSCF8174.jpg



To be soldered into the main board.


1 x bundle of heat shrink tubing

DSCF8112.jpg



Get some nice colours, that match your design.


Cable ties

DSCF8162_2_2.jpg



These comes in many fancy colours and sizes. Get a grab bag, or chose some that will look good in matching colours.
4 rechargable AA type batteries

It is important that you use rechargables, as these provides approximately 1.2V each. Using something like standard alkaline batteries might fry your robot.


2 component glue

DSCF8293.jpg



Not to be confused with “Zap-a-gap” or similar “contact glue”, as we need glue with a body for support, not something that only holds two parts where they touch each other.


Double sided adhesive tape

DSCF8150.jpg



Either the foamy type (shown) or thin type will do fine.

It is nice to mount things with temporarely, while checking that everything is OK, before securing the part with hot glue.

Parts you will find around

I like to decorate my robots with little things and bits I find around; A cool little ring, pin, hat etc.
Tools

You will need
    •    Soldering equipment.
    •    Cutting tools.
    •    A lighter or a heatgun.
    •    A screwdriver.
    •    A hot glue gun.
    •    A computer running Windows, OSX, or Linux.



 



Assembly

Step 1 - Assemble tracks and motors



Belt tracks usually comes in individual pieces. Assemble the 2 belt tracks, solder 4 approximately 10 centimeters wires to the 2 geared motors, and put wheels on them.

Place it all in front of you, as shown on the picture, to get a good idea of the overall size of the robot.


Step 2 - Create the basic chassis

DSCF8210.jpg



Cut 4 pieces of flat wood; 2 longer, 2 shorter, and glue them together as shown.

The length should be so that the wooden square sticks a little out in front and back of the belt tracks. The dimensions of mine is 13.5 CM times 5.5 CM.

It does not matter if there is a wider or smaller gap in the middle of the plate that you create, or if you use more sticks. You can even use a single large flat piece, if you have a drill to make holes for wires in the board.


Step 3 - Mount tracks and motors on chassis


If you have some double sided adhesive tape, it can come in handy here. Simply use it to mount the motors, and later reinforce them with hot glue.

Hot glue one thing at a time. Hold it, till it is cooled down completely, and then secure it with more glue. Let that cool down and harden before you mount the next part.

3.A

DSCF8219.jpg



Mount the 2 motors, so that

    •    The belt tracks do not touch the chassis
    •    The belt tracks run paralel along the sides of the chassis
    •    The belt tracks are not sticking out behind or in front of the chassis
    •    The motors has as much flat surface to the wood as possible

3.B

DSCF8222.jpg


Prepare your front axle with what ever means you have. I used a metal screw, stuck into a blob of hot glue.

DSCF8231.jpg

I placed a couple of washers to hold the 2 front wheels in same distance from each other as the rear wheels, while enabeling the front wheels to turn freely, without touching the chassis. Use what ever parts at hand, to enable a mount of the axle, so the wheels can turn freely.


DSCF8250.jpg

You should try to get the belt tracks quite tight, as they always end up loser than planned. So press the axle away from the motors when you are mounting it.

DSCF8234.jpg

You can’t buy that kind of chassis in the shops :)


Step 4 - Mount the battery holder

DSCF8255.jpg



A single line of hot glue should hold it well.

DSCF8254.jpg



Step 5 - Mount the speaker that came with the sampler board

First, test how your sampler board works: Insert batteries into the attached holder, and play about with recording your voice and play it back.

Solder off the original wires from the sampler board, and solder on 2 wires with female headers.

DSCF8330_0.jpg



Mount the speaker underneath the robot as shown, with the wires sticking up to the top side.

speakerunder_0.jpg


Step 6 - mount the “face”


6.A - Solder wires on the SRF05

DSCF8301.jpg



Solder 4 times approximately 10 centimeter thin / easy bendable wires to the SRF05, see the picture. Make sure to solder in the right holes of the print, as shown.


6.B - Mount the SRF05 to the neck motor

DSCF8311.jpg



Take one of the 4 little spring-mounted geared motors, and the SRF05. Mix a blob of 2 component glue, and mount with the aid of an improvised holder like shown on the picture.

Make sure the SRF05 can turn freely without touching the little pin that sticks up, and that the SRF05 is right angled on the motor.


6.C - Mount the head on the chassis

If you are new to using a hot glue gun, make sure first to practice on something else first. You can also read some tips here.

When you are about to mount a component on the robot, you can cut one or more pieces of wood, and hot glue it on to support that component. It is often a good idea to wait with extra supporting pieces till later, when you know the spot is right.

You will have to use as much supporting wood and hot glue as needed. But try and make the mount take up as little space as possible. You can always reinforce it later.

DSCF8342.jpg



Mount the head on the front of the robot, with these guidelines:

    •    The head should be vertical (or leaning only a tiny bit forward, not as much as the tilted chassis)
    •    The SRF05’s “eyes” should end up a couple of milimeters behind the front edge of the chassis.

DSCF8353.jpg


When done, you can try and turn the head to each side. You may notice that it can look more to one side than the other.
If this is the case, place a little piece of wood or stick that will stop it to move more to one side than the other. It should be looking right ahead when not touched, and be able to look just as much to the left as to the right.
This does not need to be extremely accurate.


Step 7 - Mount the drumsticks

The finished robot will have 3 drumsticks in total. I refer to them as:

    •    Bass Drum: The little “tail” on the rear of the robot.
    •    Snare Drum: The right (from robots perspective) front stick.
    •    Hi Hat: The left (from robots perspective) front stick.
It does not matter if you should mix up Hi Hat and Snare Drum. Basically they are just 2 front drum sticks.
The sticks should be mounted on the motors, and the motors should be mounted on the chassis.
The order in which I do this is
    •    Mount long sticks on motors
    •    Mount motors on robot
    •    Cut the length of the sticks while mounted (because then I know the length needed)
    •    Balance and decorate the sticks

7.A - Mounting drum sticks on motors
Each stick is directly mounted on 3 of the little spring-mounted geared motors. These can turn more to one side than the other.
When estimating lengths of the sticks, observe which way you turn the motors, and make sure that you are mounting the motors in the same direction as you used when working out the appropriate lenght of the stick.


DSCF8277.jpg

DSCF8295.jpg


First pre-mount the sticks, to make gluing easier. The pre-mounting can be done with a small piece of wire, hot glue, or by drilling a hole in the stick, to fit the little pin on the geared motors. Then mix some 2 component glue, and mount it.

7.B - Mount the motors on the chassis

Mount them where you think they’ll look good; 2 in front, one in back.

DSCF8362.jpg



Make sure to thoroughly test that the sticks can move uninterupted, also when the head and other sticks are moving.

DSCF8325.jpg



No, I am not sponsored by a hot glue company :wink:

7.C - Find the right lenght of the drum sticks

DSCF8273.jpg


The length of the Bass Drum should be, so that just when touching the ground, the stick is in an approximatetely “8 ‘o'clock” angle.
The length of the 2 front sticks should be so that they can reach to drum on things a couple of centimeters in front of the robots chassis, when facing a wall.
A rule of thumb is that shorter sticks are better performing - but look less cool, so you will have to find a balance.

7.D - Weight balancing and decorating the sticks

DSCF8350.jpg

DSCF8373.jpg



After cutting the right lenghts, the sticks can be ajusted in weight, and be decorated.
The weight should be so that the motors can easily move the sticks, but if you are using something like fiber glass, or at the short Bass Drum, you may want to add something like a bolt or screw at the end, to make sure the sticks hitting is audible.
You can wait with the fine tuning till when you come to running the test program for the sticks.


Step 8 - Mount the remaing electronics

The 3 remaing larger parts are
    •    The main board (AXE020)
    •    The sampler board
    •    The cool looking speaker
Around on the bodywork that holds these parts, you can decorate with the remaining, parts one by one, after you solder wires on them (Step 10).

First mount a couple of sticks to hold and seperate the 2 boards.

mounta.png

mountb_0.jpg


Note that the little jack slot on the main board needs to be easily accessible on the finished robot.
You can cut off the battery clip from the sampler board (cut them close to the bettery clip).

You are now done with my instructions for the design of the body. With these boards in place, you can see how long wires to the connecting parts should be.

From now on, I will leave you to mount each part that you solder with wires in the next steps. So after soldering a part, you can mount it.

DSCF8386.jpg



It is up to your personal design where to mount what. Remember that you can place anything anywhere: Just cut a piece of wood, and hot glue it on.
This is also the time where you can be creative with extra little parts that you find around. I found a little shiny round piece of plastic, that I think will work well to hold my microphone.
Just be aware, that you may have to acces wires plugged into the main board later.


Step 9 - Prepare the main board (AXE020)

    •    The board may come with some red plasctic on the back, that just needs to be pieled off.
    •    Place one L293D into the board, where there is an empty slot. Note that the chip has a marking in one end, that should match the marking on the board. You will have to bend the pins on the L293D before it will fit into the slot. This is done easily by pressing it down against a table.
    •    Snap off, and solder 2 times 2 male header pins into the holes marked A and B on the board
    •    Temporary mount, or place the board where it should be, because from now on, you will have to adjust lengths of wires according to this.


Step 10 - Solder wires

Below are pictures of some components, with names to wires and pins.
See the attached file (top of this page: YDMHookup.pdf) for information on what should be connected to what.


Converting “normal wires” to “wires with female headers in the ends”:

When ever possible, you should use female headers that will fit onto the main board. Most of the times, you will have to cut a female-to-female-header wire in 2, and use the ends to extend existing wires.

You may have to replace wires later - keep that in mind.


This is how I recommend you to solder 2 wires together:

    •    Remove a small piece of insulation on both ends to be connected
    •    Cut off a piece of heat shrink tubing, and slide it over one end
    •    Twist the 2 ends of bare wire
    •    Solder the twisted wires together
    •    Slide over the heat shrink tubing, and heat it up, with a litghter or similar, till it shrinks around the soldered part.


S1-S4:
The SRF05

You may already have soldered 4 wires to this (or you should do so noe :wink: This is how I reference to these wires.

srf05connect.jpg



L1-L6:
The spare L293D

You simply solder wires on to the pins. You can bend them outwards first, to make access easier.

l293Dwires.jpg

 




G-V:
The main board

When a wire is indicated to be connected to either V or G, each time you can just pick any of these points marked as being V or G on the main board.

axeydm.jpg




O0-O7,  MA-MB, I0-I7:
The main board

ax20hokup.jpg






What to connect to what

Please see the atached file: YDMHookup.pdf

Take one item at a time from this list, and connect that with the corrosponding part (written as Wire A & Wire B). For now, if an item has 2 wires, it does not matter which wire goes to A and which goes to B.

The “Tech notes” is only for your information, you do not need to understand them.


Connecting V1 and V2 on the L293D


Step 11 - Hack the sampler board

The sampler board has these pepherials, each connected with 2 wires:

    •    Battery clip (you just have 2 wires - black and red - as you already cut off the battery clip)
    •    Speaker (you just have 2 wires, as you already cut off the speaker)
    •    Microphone
    •    LED
    •    Record button
    •    Playback button

    -    And earlier you have already tested the board.
Mount female headers on the black and red wires that was connected to the battery clip. Plug the red onto V on the main board. Plug black onto G on the main board.

    •    Mount the cool looking speaker. I mounted mine on top of the robot. Solder the 2 wires from the sampler board to the speaker.
    •    Insert batteries in your robot. Your sampler board should now work as before, if you press the record / playback buttons.
    •    Cut the playback button wires close to the button. Now let one of them touch G on the main board. Does it play back? If yes, this is the wire we will need, and you can cut off the other close to the sampler board. If not, try the other.
    •    Note which was the playback, and do the same with the record button.
    •    Mount female headers on both wires, and connect Record to I2, and Playback to I3.
    •    Mount the LED somewhere nice on your robot.


Step 12 - You are done building

DSCF0139.jpg

DSCF0141.jpg

DSCF0142.jpg

DSCF0162.jpg



You should now have a nice little robot :)

If you have left things to be mounted better for later, just wait a little longer, till you have downloaded the test programs, and seen that everything works. When done, cable ties and hot glue will do wonders :)

It is time to give the robot its program.

Enter picaxe.co.uk to get help on how to upload programs to the PICAXE, driver to your AXE027 cable, and to download the free editor. (I would love to help you more on this, but they update with new instructions, drivers etc, so this has to be the place to learn how to upload programs)


When ready, see the top of this page for code and further instructions. (YDM_code_with_instructions.zip)

I'll see you in your PICAXE editor :D

nice!

do they sell their magazine internationally??

I’m not sure, but you can

I’m not sure, but you can get a print + digital or a digital-only subscription. I imagine you can enjoy the digital-only subscription no matter where you are.

I receive Make Magazine in Denmark

I get have a subscription to Make Magazine, and they send it to Denmark (Northern Europe). It does take a little time for it to get here, and there has been a few times where it got lost in the mail, but they where really nice and send me a replacement.

The digital editions are also nice and includes PDF files that can be loaded in the iPad… I have the full collection with me all the time :wink:

/Thomas

what do you use to read it

what do you use to read it on your ipad?

 

I just use iBooks

iBooks isn’t the ultimate PDF reader on the iPad, but the other ones I have tried was slow when moving through the magazine and zooming + panning wasn’t as smooth, so for now I’m just using iBooks. This also makes the syncronization simple through iTunes.

Make

I dont have a subscription, but i get ‘Make’ here in the UK via amazon.

The instructions are available now @

 

http://makeprojects.com/Project/Yellow-Drum-Machine/1077/1

 

Frits…when will the kits be available and also who will be selling them?

Adrian

Solarbotics are on their way

Solarbotics are on their way with a kit. This page will be updated with the un edited version of my tutorial, on August 26, 2011

I’m having a lot of fun

I’m having a lot of fun building my YDM clone and it’s good to hear there will be a kit available, because the world needs more YDMs :smiley:

In a town, in

In a town, in Denmark born,
Lived a man who invited thee,
Let’s Build Robots, he said,
In the land of LMR,

So we joined, on his website,
Sharing robots, to be seen,
All LMR, are belong to us,
And our Yellow Drum Machines,

We all want to build a Yellow Drum Machine,
Yellow Drum Machine, Yellow Drum Machine,
We all want to build a Yellow Drum Machine,
Yellow Drum Machine, Yellow Drum Machine.

Good Reader

"Good Reader" is the best and fastest PDF reader I have seen for iPad (and iPhone)

Also has plenty of features to connect to different servers/repositories

HaHa

"Yellow submarine" by the Beatles, right?

Quick question.

How do you make an Interface cable connect to an Output and Ground pin if the board is set set up as Output/+5V/Ground (three pins next to each other) when an Interface cable only has a place to connect two pins (i.e. Output/+5V or +5V/Ground)? Do you connect ground cable somewhere else?

The thing I am talking about is in this pic surrounded by a red circle:

IMG_3476_JPG.jpg

This picture illustrates what I mean.

eqpoKFxudcTEGyLB_medium.jpg

I only ask because my YDM Clone is having a major ground problem (I think) and I don't see any other place you have grounds connected in that pic.

This is not the connector you are looking for…

Here are some suggestions.

  1. You could order some 90 degree header pins, and solder them on the ground row. Then connect your grounds individually.
  2. It looks like your connector has ten rows of two pins each; the top three pins on the Picaxe board shown in the picture are connected to ground, so you can pull ground from the top two pins of your connector. Incidently, the bottom two pins on your connector should give you V2 power.
  3. Ditch your connector and work with three pin connectors like those used on servos, or with individual female-female jumper wires.

Not sure I understand you

Not sure I understand you 100%, but if I do, this might be helpful:

On that robot that you show, I did use the ribbon. It has a couple of G’s and V’s, and the outputs. I use the outputs individually, of course, but for the G and V, I solder several wires onto the same chunk of solder :slight_smile:

Nevermind…

I figured out what I am doing wrong. You can delete the above post so as not to add confusion for someone else, thank you!

YDMHookup

I ran into promlem hooking up drum motors to picaxe project board.  My version of the board has something called a darlington buffered output.  If you hook up the motor between the output pin and ground you get very small voltage. Instead you hook up the motor between +V and the output pin. Then it works fine.  I notice this because I attach the “ground” to the solder pads instead of the pins.  Perhaps your YDMhookup.pdf should say hookup between O0/1/2/3 and +V instead of ground.  Also make magazine corrected the Pinout, but it still looks different than my board which is 28X1.   

I haven’t finished yet, but its much fun to build with my daughter!  Thanks for sharing your robots. 

 

Hi “Clueless” :)I am not

Hi “Clueless” :slight_smile:

I am not 100% sure I understand you. However; I did not intend to say that you should hook up before the darlington. The motors should be hooked up after the darlington, and I think the documentation only says that?

If this does not help you, please take one single wire, tell me (with pictures of your setup) where you think the documentations says it should we hooked up, and what you think would be better - just to make sure I understand you, thanks.

Jinnarin had a lot of the

Jinnarin had a lot of the same problem. He commented here about the same issue.

Hello Clue.

I ran into the same problems when building my YDM clone and it caused me a lot of frustration, so I will try to tell you what I learned so that maybe it will help you.

First, I would agree that because you have a “Darlington” you need to connect to the Ouput and +5V. If you read the Picaxe Manual 1 and do a search for “Darlington”, you can see a lot of special notes about the Darlington chip that all basically say the same thing:

“When a digital output is set HIGH, the corresponding darlington output is connected to ground.”

Second, I don’t know how far along you are in your build, but because of the Darlington I ran into the same problem with my small speaker. It’s important to note that (in my case) the small speaker should be connected directly to the picaxe output and not run through the Darlington. I also used a 10uF capacitor on the small speaker.

In the end, this is how my drum motors and small speaker are connected, and they work now. 

http://i54.tinypic.com/2ugkzh5.jpg

Hopefully that is helpful to you!

-Jinn-