Drawdio: A pencil that lets you draw with music! - The Drawdio kit was designed in collaboration with Jay Silver based on his original design.When I first saw the Drawdio at Maker Faire I knew it would be a great project for beginners: A lot of fun with instant gratification! Essentially, its a very simple musical synthesizer that uses the conductive properties of pencil graphite to create different sounds. The result is a fun toy that lets you draw musical instruments on any piece of paper.
Step 1: Design
How does it work?The Drawdio kit is pretty simple compared to most electronic projects.We will go through it one section at a time, please refer to the schematicPower supplyThe first part to understand is the power supply, which keeps everything running. The power source is a single AAA battery which is held in a plastic container that is soldered to the PCB. There is also a switch S1 which can connect or disconnect the battery from the rest of the circuit. Finally there is a large electrolytic capacitor C4, which is used as a 'bypass capacitor'. This means that it goes across the AAA battery and smooths out any ripples that are caused from power surges (like when the drawdio makes noise!)The OscillatorThe heart of the kit is a TLC551 chip, which is a low voltage version of the famous LM555 timer chip. This integrated circuit is specifically designed for creating timers and oscillators. The original LM555 needs at least 5V to run (which is more than 3 1.5 batteries!) so we are using the 551 which can run as low as 1V. Its a little more expensive but makes the whole thing fit on a pencil.One of the more popular ways that '555s are used is as a 'astable multivibrator' which is another way of saying an oscillator. The frequency of the oscillation is set by 2 resistors and a capacitor. The chip slowly feeds current into the capacitor until it is full and then, likewise, slowly drains it out. The resistors set how fast to fill and drain the capacitor and the size of the capacitor indicates how long it takes before it fills.This system is pretty much identical to Japanese water fountains, as this video shows: Except its all with electrons instead of water molecules and capacitor C1 is the 'bucket'. The water fountain oscillates maybe once a minute (1/60 Hz). But electrons are so much faster, a '555 can oscillate at thousands of Hertz, which means it can make audible sound. (Human hearing tends to range from 20Hz to 20000 Hz)f = 1.44 /(C3 * (RA + 2 * RB))C3 = 680 pF = 0.00000000068 FRA = 10000 ohmsRB = 300000 ohm to 1000000 ohm (1 Mohm)In this case, we use two resistors RA and RB but also have an 'open connection': two tabs at the end of the PCB. If the two tabs are shorted with a piece of wire, then the frequency of the oscillation is 3500 Hz, if instead there is a resistor of 1 Megaohms between the two tabs, the frequency of oscillation is about 1000 Hz. You can use a calculator to do the math yourself using the formula aboveInstead of a 'everyday' resistor between the tabs, however, we use something else - the conductivity of the human body and graphite! The human body has a resistance similar to a 200,000 ohm resistor. Graphite has resistance of about 1 ohm per inch when its in the form of a pencil lead. When its spread out on a piece of paper, the resistance goes up a lot, up to a megaohm for a few inches of 'drawn resistor'AmplifierThe 551 can create audio-frequency oscillations but it is not powerful enough to play them on a speaker, just like an MP3 player needs an amp to play music on large speakers. That's because the 551 was designed mostly for digital logic, not for low impedance (8 ohm) audio outputs. So we will use a Class B 'pushpull' amplifier, which uses two separate transistors to amplify the sound.This is pretty much the same thing in your stereo, except your stereo has enormous transistors with gigantic heatsinks so that it can drive large speakers.
Step 2: Make it! Preparation
Three step plan for successThis is a very easy kit to make, just go through each of these steps to build the kit 1. Tools and preparation 2. Check the parts list 3. Assemble itPrepLearn how to solder with tons of tutorials!http://www.ladyada.net/learn/soldering/index.htmlDon't forget to learn how to use your multimeter too!http://www.ladyada.net/learn/multimeter/index.htmlToolsThere are a few tools that are required for assembly. None of these tools are included. If you don't have them, now would be a good time to borrow or purchase them. They are very very handy whenever assembling/fixing/modifying electronic devices! I provide links to buy them, but of course, you should get them wherever is most convenient/inexpensive. Many of these parts are available in a place like Radio Shack or other (higher quality) DIY electronics stores.I recommend a "basic" electronics tool set for this kit, which I describe here.http://www.ladyada.net/library/equipt/kits.html#basicSoldering iron. One with temperature control and a stand is best. A conical or small 'screwdriver' tip is good, almost all irons come with one of these.A low quality (ahem, $10 model from radioshack) iron may cause more problems than its worth!Do not use a "ColdHeat" soldering iron, they are not suitable for delicate electronics work and can damage the kit (see here) http://www.epemag.wimborne.co.uk/cold-soldering2.htmSolder. Rosin core, 60/40. Good solder is a good thing. Bad solder leads to bridging and cold solder joints which can be tough to find. Dont buy a tiny amount, you'll run out when you least expect it. A half pound spool is a minimum.Multimeter/Oscilloscope. A meter is helpful to check voltages and continuity.Flush/diagonal cutters. Essential for cutting leads close to the PCB.Desoldering tool. If you are prone to incorrectly soldering parts. 'Handy Hands' with Magnifying Glass. Not absolutely necessary but will make things go much much faster.Good light. More important than you think.Check out my recommendations and where to buy.http://www.ladyada.net/library/equipt/kits.html#basic
Step 3: Make it! Parts List
Show All 15 Items
Bill of MaterialsCheck to make sure your kit comes with the following parts.Sometimes we make mistakes so double check everything and email email@example.com if you need replacements!Name: PCBDescription: Printed circuit boardDatasheet: Distributor: AdafruitQty: 1Name: IC1Description: TLC551 or similar low voltage '555 timer chipDatasheet: TLC551Distributor: Digikey MouserQty: 1Name: Q1Description: NPN transistor, EBC pinout Such as PN2222 or 2N3904Datasheet: PN2222Distributor: Mouser DigikeyQty: 1Name: Q2Description: PNP transistor, EBC pinout Such as PN2907 or 2N3806Datasheet: PN2907Distributor: Mouser DigikeyQty: 1Name: C1Description: 680pF ceramic capacitor (681)Datasheet: GenericDistributor: Mouser DigikeyQty: 1Name: C3Description: 0.1uF ceramic capacitor (104)Datasheet: GenericDistributor: Digikey MouserQty: 1Name: C2, C4Description: 100uF / 10V capacitorDatasheet: GenericDistributor: Digikey MouserQty: 2Name: RADescription: 1/4W 5% 10K resistor Brown, Black, Orange, GoldDatasheet: GenericDistributor: Digikey MouserQty: 1Name: RBDescription: 1/4W 5% 300K resistor Orange, Black, Yellow, GoldDatasheet: GenericDistributor: Digikey MouserQty: 1 Name: ON/OFFDescription: SwitchDatasheet: E-Switch EG1218Distributor: Digikey MouserQty: 1 Name: BATTDescription: AAA battery holderDatasheet: EPD BH412Distributor: MouserQty: 1 Name: SPKDescription: Small 8ohm speakerDatasheet: Kobitone PS603Distributor: MouserQty: 1Name: Copper foil tapeDatasheet: 3M 1181Distributor: Digikey MouserQty: 6"Name: ThumbtackDatasheet: GenericDistributor: Any stationary store Qty: 1Name: PencilDatasheet: GenericDistributor: Any stationery store Qty: 1Name: Zip TieDatasheet: GenericDistributor: Any hardware store Qty: 1Name: WireDatasheet: GenericDistributor: Any electronics or hardware store Qty: 6"
Step 4: Make it! Solder it! part 1
Show All 15 Items
Make sure you have all the parts necessary. Check the BOM for a list of everything in the kit.Get ready by placing the PCB in a viseHeat up your soldering iron to 700deg F, clean the tip and make sure your sponge is wetLets go! First thing we will place is RA, a 10K resistor (brown, black, orange gold). This resistor sets the brightness of the indicator LED.Bend the resistor into a staple as shown, and slip it in. (The stock photo at left shows a 100 ohm resistor but just ignore the stripes and focus on the shape)Place the resistor in the location marked RA. Resistors do not have polarity which means you can put it in 'either way' and it will work just fine. Bend the wire legs out so that the resistor sits flat against the PCB.Turn the PCB over. Using your soldering iron tip, press and heat both the pad (the silver ring around the hole) and lead (wire) at the same time for 2 or 3 seconds. Then poke the end of the solder in to create a nice solder joint. Do this for both leads.Using your diagonal cutters, cut off the long leads just above the solder joint.Next is the other resistor, RB. This resistor has a different value, 300K. The stripes are Orange Black Yellow Gold.Solder in this resistor using the same technique you used for the first resistor.Clip the resistor
Step 5: Make it! Solder it! part 2
Show All 11 Items
Next are the two ceramic capacitors C1 and C3. Ceramic capacitors also have a nice property that they are symmetric/non-polarized. That means they can go in 'either way'. The capacitors are different values so make sure to not mix them up.C3 is a 0.1uF capacitor and has a "104" marking on it. C1 is the 680pF capacitor and has a "682" marking on it.Place the capacitors so that the 2 legs (leads) slide thru the two metal holes in the PCB (pads). The capacitor will sit flat against the PCB. Solder in the capacitorsClip the leadsNext is the power switch. The switch is symmetric so it will go in 'either way'You may want to use a piece of tape to keep the switch against the board while it is being soldered.Once it is soldered in, clip the leadsNext is the heart of the kit, a low voltage 555 timer chip. This one is called the TLC551. The important thing to note about the chip is that it is not symmetric. If it is put in wrong it will not work! Its also nearly impossible to fix if the chip goes in wrong so make triple-sure before you solder it in!The silkscreen on the PCB has a little notch in the top. That notch indicates where the top of the chip is. If you look on the chip, there is a circle/dot imprinted in it on one end. There's also a TI logo at that side. Make sure the chip is inserted so that the top of the chip lines up with the silkscreen notch. Check the photo to the left if you're not sure.Solder in all 8 pins. You might want to use a piece of tape to hold the chip in place, or use a spare finger if you are dexterous.The leads are very short to they wont need clipping.
Step 6: Make it! Solder it! part 3
Show All 12 Items
Next are the two electrolytic capacitors C2 and C4.Electrolytic capacitors are polarized and must be placed correctly or the circuit will not work. The longer lead is the positive (+) one and must go into the pad marked with a + as shownFold the capacitors down so that they lie flat against the PCB.Solder them in, and clip the leadsNext are the two transistors Q1and Q2. They are matched, one is NPN (Q1) and one is PNP (Q2). The importing thing to notice is that although they look very similar, they are different.The NPN has a "2222" marking on it. The PNP has a "2907" marking.Make sure that the PN2222 goes into the NPN slot, and the PN2907 goes into the PNP slot!Make sure the shape of the transistors matches the silkscreen shape as shown. The transistors will sit a few mm above the PCB.Flip over the PCB and solder in the two componentsThen clip the longer leadsAfter soldering in the transistors, you can bend them down a little so they sit almost flat-faced to the PCB.
Step 7: Make it! Solder it! part 4
Show All 13 Items
The electronic components are soldered in, next it is time to attach the speaker. Use the diagonal cutters to clip off 2 2-3" pieces of wires
Next, nick the insulation 1/4" from the ends of the wire, and pull it off. If you have 'wire strippers', use them as they are a little easier!
Next, it is a good idea to tin the ends of the wires. Its a little tricky because it requires holding three things. However, if you have a 'third hand tool' or a vise, you can use that to hold the wire while you heat up the stripped end and coat it with a little bit of solder. This will make it easier to connect to the speaker.
On the opposite side of the speaker there are two solder tabs. Heat them up and add a little more solder. Don't spend too much time on them (more than 3-4 seconds) since the speaker is made of plastic and if it heats up too much it will melt!
Next, warm up the tabs and slide the tinned ends of wire into the melted solder pool. Then remove the iron and wait a few seconds, the solder pool will cool with the wire in place. Do the same for the other pad
Twist the wires, this will reduce the strain on the solder joints when bending. Put the end of each wire into the PCB hole marked SPK. The speaker is 'symmetric' so it doesnt matter which wire goes in which hole.
Solder the wires into place.
Step 8: Make it! Solder it! part 5
Show All 7 Items
Give a general description of the StepSlide the battery holder into the PCB (but do not solder it in). Make sure that the battery is aligned correctly. Putting in the battery backwards shouldn't damage the circuit but its still not a good idea so try to get it right the first time. The back of the PCB has a silkscreen to help determine which way the battery goes in.With the battery holder in place (but, again, not soldered in) and the switch in the ON position, touch both sides of the PCB. A squeaking noise should come out of the speaker! As you press harder/softer, the pitch will change. That indicates the circuit is working.If its not making noise, try:1. Wiggle the battery holder a little to make sure its making contact2. Check that the switch is turned on3. Check that the components are correctly placed and soldered well. Re-touchup the solder points in case you have cold solder joints.Once you are tested and happy, its time to finish up!Remove the battery and place the battery holder on top of the components, as shown. Bend the leads a little so that it sits as tight as possible.Solder in the battery holder, and clip the leads short.
Step 9: Make it! Solder it! part 6
Show All 8 Items
Next you can mount the PCB to your pencil. Place the PCB on the flat side of a pencil, and thread the zip tie through as shown and tighten it. You'll want it about an inch or less from the top of the pencil. The higher it is the more pencil you'll have to sharpen but it may be a little more unbalanced.
Next cut a 1.5" piece of copper tape using the diagonal cutters. Don't use scissors as the metal tape can damage them. peel off the paper backing. The copper tape is conductive, sticky and flexible which makes it perfect for wrapping the pencil
Wrap the tape along the top of the pencil so that the beginning is at the silver metal tab on the PCB, as shown
Then take the thumbtack and gently push it into the end of the pencil. You might have to twist it back & forth a little to get it all the way in. The thumbtack will grip the copper tape and also make contact with the graphite in the middle of the pencil to make the first half of the drawing sensor
Next take 3 or 4" of copper tape and start wrapping around the bottom of the pencil, starting with the silver tab on the PCB and ending an inch before the end of the pencil. This will make contact with your hand and provide the second half of the sensor.
Solder the copper tape to the tab directly as shown
Finally, insert a battery and turn on the kit. Then grip the pencil with one hand and touch the point of the pencil to your other hand. You will be able to hear the drawdio make noise!
Next up, see the user manual for ideas on how to make the most of your drawdio