Skip to content

Category Archives: Ask MAKE

Ask MAKE: Why are some LEDs tinted?

18-Feb-10




Ask MAKE is a weekly column where we answer reader questions, like yours. Write them in to mattm@makezine.comor drop us a line on Twitter. We can’t wait to tackle your conundrums!

ask_make_led_colors.jpg

Jacob asks:

I’m new to electronics, and am interested in LEDs. One thing I can’t figure out is why some of them are colored, while others are clear. What’s the deal with that?

Hey, good question! I’d never actually thought about it before, and now that you mention it, it does seem a bit confusing. My initial guess was that the coloring might be used as a filter to block out other colors, but that doesn’t make sense- in general, LEDs put out a very narrow spectrum of light, so they shouldn’t need filters (and it would probably be difficult to build a filter with that narrow of a cutoff range). One exception would be more complicated LEDs such as white ones, which normally start with blue light and then use a phosphor to convert it to white light. It seemed possible that at least for those, the color could be part of the phosphor- except that white LEDs are almost always clear! Besides, the phosphor part turns out to be located right on top of the dye.

So, the best I can tell is that the tinting is added to make it easier to tell them apart when they are off. The clear ones are a pain to sort out, because you have to plug them in to figure out what color they might be. Kind of funny, but I guess that’s how it goes!

Read more | Permalink | Comments |

Read more articles in Ask MAKE |

Digg this!

Share and Enjoy:
  • Digg
  • del.icio.us
  • Netvouz
  • DZone
  • ThisNext
  • MisterWong
  • Wists
  • Add to favorites
  • blogtercimlap
  • Facebook
  • Google Bookmarks
  • Gwar
  • LinkaGoGo
  • Live
  • MSN Reporter
  • MyShare
  • RSS
  • Slashdot
  • StumbleUpon
  • Suggest to Techmeme via Twitter
  • Technorati
  • Twitter

Ask MAKE: Cleaning an old motor?

11-Feb-10




Ask MAKE is a weekly column where we answer reader questions, like yours. Write them in to mattm@makezine.comor drop us a line on Twitter. We can’t wait to tackle your conundrums!

ask_make_motor.jpg

Andy writes:

Recently I acquired a vintage Leslie speaker cabinet. The speaker cabinet uses ac motors to turn baffles and horns to create a Doppler effect. Upon opening up the speaker, I found that the motors were working, but very dirty and coated with gunk. What is the best way to clean a motor with an excess of build up?

Congratulations on your acquisition! Since the motors seem to be working fine, my guess is that it might be best to clean them cosmetically, but not to try and take them apart and rebuild them. Even though they are electrical devices, you should be able to clean them like anything else, using some form of solvent and a brush. Just make sure to let them dry out completely before you power them up!

I would start a mild detergent (soap and water). If that doesn’t do the job (which it probably won’t), try mineral spirits or a specialized electric motor cleaner. The biggest things I can think to look out for when using a solvent to clean the motor are that it doesn’t damage the varnish on the motor windings or get into any greased bearings. The varnish is used as a coating on the motor windings, to keep them from touching each other and shorting out, so removing it would not be a great thing to do. If the motor does have greased bearings, you might want to lubricate them as well.

I’ve taken apart a few motors, but admittedly don’t have a lot of experience in this field. Does anyone have a favorite technique or solvent that they use to restore vintage machines like this?

Read more | Permalink | Comments |

Read more articles in Ask MAKE |

Digg this!

Share and Enjoy:
  • Digg
  • del.icio.us
  • Netvouz
  • DZone
  • ThisNext
  • MisterWong
  • Wists
  • Add to favorites
  • blogtercimlap
  • Facebook
  • Google Bookmarks
  • Gwar
  • LinkaGoGo
  • Live
  • MSN Reporter
  • MyShare
  • RSS
  • Slashdot
  • StumbleUpon
  • Suggest to Techmeme via Twitter
  • Technorati
  • Twitter

Ask MAKE: Continous rotation potentiometer?

15-Jan-10




Ask MAKE is a weekly column where we answer reader questions, like yours. Write them in to mattm@makezine.comor drop us a line on Twitter. We can’t wait to tackle your conundrums!

ask_make_potentiometer.jpg

Paul asks:

I’m a museum educator, and working on an exhibit where I want to have a knob that you can spin around to change the color of an exhibit. I thought about using a potentiometer, but I am worried that it might break if people try to turn it too far. Any idea what I could use? Do they make a potentiometer that you can keep turning?

Interesting question. I now know that museums are pretty tough environments, so I understand your concern about it breaking. I can think of three options that might work:

  • Rotary encoder
  • Continuous turn potentiometer
  • Regular potentiometer, with a slip clutch

Using a rotary encoder is the first thing that comes to mind. These devices have a disc with markings in them that spins when their shaft is turned, and have a sensor (usually optical) that detects when the marking move by. Because the sensor part is non-contact, they are generally more robust and can last longer than, say, potentiometers. The downsides to using them is that they are more complicated to use, and have a lower resolution than a potentiomer solution. The Arduino playground has a nice example of using a rotary encoder with a microcontroller.

A continuous turn potentiometer is an interesting option; I actually didn’t know they existed until now. They certainly solve the issue of breaking by turning too far, because they don’t have a hard stop. The only issue that I can think of is that their value will will probably jump suddenly from full on to full off as they make a complete revolution, which may require special handling. Actually, there is a second issue- I don’t know where to buy them! Anyone have some pointers?

If you can’t find a continuous turn potentiometer, a final idea might be to use a regular potentiometer, but connected indirectly through a slip clutch. The idea is to use something that will limit the amount of torque that the user can put on the potentiometer, which will prevent them from turning it too far and breaking it. You can purchase a special mechanical device that will do this, or perhaps even use a loose belt that will slip when the knob is turned too far.

Good luck with your project, and be sure to let us know how it turns out!

Have a different way to do this that you think might work better? Sound off in the comments!

Read more | Permalink | Comments |

Read more articles in Ask MAKE |

Digg this!

Share and Enjoy:
  • Digg
  • del.icio.us
  • Netvouz
  • DZone
  • ThisNext
  • MisterWong
  • Wists
  • Add to favorites
  • blogtercimlap
  • Facebook
  • Google Bookmarks
  • Gwar
  • LinkaGoGo
  • Live
  • MSN Reporter
  • MyShare
  • RSS
  • Slashdot
  • StumbleUpon
  • Suggest to Techmeme via Twitter
  • Technorati
  • Twitter

Ask MAKE: How to wire up LEDs?

18-Dec-09




Ask MAKE is a weekly column where we answer reader questions, like yours. Write them in to mattm@makezine.comor drop us a line on Twitter. We can’t wait to tackle your conundrums!

ask_make_wiring_leds.jpg

Bjorn writes in:

I’m wondering if you could help me out with resistors. I’m a computer science guy and am very new to electronics. Most of my resistor usage in my experimentation has been because I read about situations when I should use them online and just used a specific resistor because it was recommended. Obviously this only gets me so far. How do you go about determining what level of resistance you need and when you should or need to use resistors? I didn’t know I was supposed to be hooking up LEDs to my Arduinos with resistors until I started burning out LEDs and read somewhere what type of resistor someone recommended. I know it has to do with the Arduino running at 5V and most LEDs being lower voltage, but how do you know what voltage an LED is if it’s not labeled? And more importantly (like my question above), even if you know what voltage and LED is how are you supposed to figure out what kind of resistor to use?

Sure thing! This question actually comes up quite a bit, and it’s a good thing to understand.

Putting a resistor in series with an LED limits the amount of current that can flow through it, preventing it from blowing up. It’s nice to be able to figure out an exact resistance to use, but if you aren’t too worried about your light being a bit dim, you can always just stick in a largish resistor, and you will get some light. For instance, if I am making a prototype circuit and just want an indicator light that I can control from an Arduino, I’ll grab a 220 ohm resistor and put it in series with the first LED I can find. It’s probably fine for a quickie circuit, but if you are soldering up a project that you intend to keep around, it’s probably a better idea to actually calculate the correct amount of resistance to use.

So, how do you do it? Well, for a single LED, you can use the LED circuit equation:

ask_make_led_diagram.jpg

led_calculator_equation.jpg

Unfortunately, this only helps if you know the forward voltage and current rating of your diode. So, how can one figure those out? You can make an estimate abut the forward voltage of the diode based on it’s color, because the wavelength of the color and the forward voltage are roughly inversely proportional to one another. Some typical forward voltages are: Red:1.8V, Green: 2V, Blue: 3.4V. Once you have an estimate, you can measure the forward voltage of your LED by hooking it up with the suggested resistor value, and measuring the voltage across it. Then, if you were way off, you can re-calculate the resistance with the actual voltage to get a better result.

Once you know the forward voltage drop, you can choose a current value based on how bright you want the LED to be, as long as it is lower than the current rating of the device. Unfortunately, it’s a little bit harder to figure out the current rating, because most LEDs will continue to operate at higher than the recommended amount. If they are, though, their lifetime will be much shorter, and they won’t be as efficient at producing light. If you don’t have the specifications for your LED, 20ma is probably a safe maximum.

If you don’t feel like solving all of that by hand, or have a more complicated design involving multiple LEDs, you could also use an online LED calculator. This one looks nice, because it will also tell you how to hook up multilple LEDs.

Ok, enough calculations. This is what can happen if you don’t connect the LED up properly:

Boom! Engineers sometimes call these ‘unauthorized thermal events’

Related:

Read more | Permalink | Comments |

Read more articles in Ask MAKE |

Digg this!

Share and Enjoy:
  • Digg
  • del.icio.us
  • Netvouz
  • DZone
  • ThisNext
  • MisterWong
  • Wists
  • Add to favorites
  • blogtercimlap
  • Facebook
  • Google Bookmarks
  • Gwar
  • LinkaGoGo
  • Live
  • MSN Reporter
  • MyShare
  • RSS
  • Slashdot
  • StumbleUpon
  • Suggest to Techmeme via Twitter
  • Technorati
  • Twitter

Ask MAKE: Liquid level sensor for brewing system?

10-Dec-09




Ask MAKE is a weekly column where we answer reader questions, like yours. Write them in to mattm@makezine.comor drop us a line on Twitter. We can’t wait to tackle your conundrums!

ask_make_liquid_sensor.jpg

Brett writes in:

Hi, I am building an automated brewing system for home brew beer. It will be controlled via an Arduino and network interface. I am using 15 gallon stainless steel kegs as brewing vessels. What is the best method or type of sensor to use to accurately detect liquid levels in the kegs? The liquid won’t be water alone, and all three vessels will be heated. I was thinking of using an external sight glass + a pressure sensor of some kind. Maybe someone in the Make community has a better idea or has done this before?

I have been a Make subscriber for the last two years(since I found out about you guys) keep up the great work!

Thanks Brett! So, you want to measure the level of a liquid in a tank. These are some of the ways that I can think of to do this:

  • Capacitive: Measure difference in dielectric constant between air and water
  • Differential pressure measurement: Measure pressure at bottom of liquid
  • Optical: Use an array of light sensors to sense where liquid is/isn’t
  • Float: Put a float on a stick, then measure the displacement of the stick
  • Weight: Weigh the liquid, and calculate volume based on density
  • Conductivity: Measure liquid conductivity at a few discrete points

Out of these options, what would be best? I think for your project, the best way to go is probably to use a differential pressure sensor, like you suggested. It seems like it would be the most reliable and least invasive method. Also, it just so happens that the folks who wrote the Practical Arduino book have a Water Tank Depth Sensor project that might be a good starting point.

If you only want an approximation of the amount of liquid in a tank, a simpler way to go would be to test for conductivity at a few points along the side of the tank. You wouldn’t be able to sense the exact amount of liquid present, but it would be a fine way to check if the tank is half-full or not. The folks at electronics labs built a single-point Water level detector using a PIC microcontroller, which could be expanded to measure multiple points

Capacitive sensors might work, but might be hard to set up in a metal tank. Optical sensors work the same way as the conductivity sensors, and would be more expensive, so they probably aren’t worth the trouble. A float could potentially work, but could get gummed up by hops or dead yeast, so it might be unreliable. The weight sensor could also work, but I think it might be tricky to keep it calibrated.

Good luck, and remember to let us know when you have it working!

Have you attempted a system like this before? Have some experience to share, or a better way to accomplish this? Sound off in the comments!

Read more | Permalink | Comments |

Read more articles in Ask MAKE |

Digg this!

Share and Enjoy:
  • Digg
  • del.icio.us
  • Netvouz
  • DZone
  • ThisNext
  • MisterWong
  • Wists
  • Add to favorites
  • blogtercimlap
  • Facebook
  • Google Bookmarks
  • Gwar
  • LinkaGoGo
  • Live
  • MSN Reporter
  • MyShare
  • RSS
  • Slashdot
  • StumbleUpon
  • Suggest to Techmeme via Twitter
  • Technorati
  • Twitter

Ask MAKE: Three leaded piezo?

03-Dec-09




Ask MAKE is a weekly column where we answer reader questions, like yours. Write them in to mattm@makezine.comor drop us a line on Twitter. We can’t wait to tackle your conundrums!

ask_make_piezo.jpg

Chris writes in:

I have been experimenting with my Arduino and piezo buzzers as simple speakers – noisy and fun. But one question has been bugging me, what on earth is the third blue lead for on some piezos? If I leave the blue lead disconnected, the piezo seems to behave identically to its two-lead cousins. Am I missing out on some noise making opportunities?

Aha, good question. The short answer is no- the third lead is most likely used for feedback in an oscillator circuit, so leaving it disconnected shouldn’t affect your circuit. The long answer is, well, maybe, if want to make your piezo into a buzzer.

There are two kinds of piezoelectric devices that are commonly sold as piezos: buzzers and transducers. Though they both use the same kind of ceramic disc to make noise, the difference is in how they are controlled. A piezo buzzer already contains some circuitry to create a buzzing noise, so all you have to do to make it work is connect it to a power source. The buzz can range from a tolerable alert to signal that your clothes are dry, to the ear-splitting noise of a fire alarm. A piezo transducer works more like a speaker, where you have to feed it an audio signal to get it to make noise. This is what you are using if you are generating your own frequencies with your Arduino.

So what does this have to do with your question? Well, it turns out that a really simple way to make a piezo buzzer is to use the feedback electrode that you were talking about to make a Harley oscillator circuit. As an example, I found this schematic in Murata’s (a piezo manufacturer) Piezo Electric Sound Components Applications Manual:

ask_make_piezo_schematic.jpg

The circuit is a little advanced, however the basic idea is that a small amount of the energy fed into the piezo device is fed into the input of the transistor, which amplifies the signal and feeds it back into the piezo. If the component values are chosen correctly, the resonation can be very efficient and loud, perfect for that fire alarm!

[title photo by Flickr user Josh Kopel]

Related:

Read more | Permalink | Comments |

Read more articles in Ask MAKE |

Digg this!

Share and Enjoy:
  • Digg
  • del.icio.us
  • Netvouz
  • DZone
  • ThisNext
  • MisterWong
  • Wists
  • Add to favorites
  • blogtercimlap
  • Facebook
  • Google Bookmarks
  • Gwar
  • LinkaGoGo
  • Live
  • MSN Reporter
  • MyShare
  • RSS
  • Slashdot
  • StumbleUpon
  • Suggest to Techmeme via Twitter
  • Technorati
  • Twitter

Ask MAKE: Software for designing circuits

19-Nov-09




Ask MAKE is a weekly column where we answer reader questions, like yours. Write them in to mattm@makezine.comor drop us a line on Twitter. We can’t wait to tackle your conundrums!

ask_make_pcb_design.jpg

Bjorn writes in:

I’m doing my 2nd Arduino project (and 2nd electronics project ever) and am trying to design some of the circuit stuff on computer instead of just wiring it up or scribbling some stuff on paper. I’m trying out Fritzing and am wondering if you have any other suggestions for software that can be used for breadboard, schematic and/or PCB design. I would like to maybe figure out/learn/teach myself enough about electronics to be able to design my own PCBs, so it’d be nice if I could do all the types of designing in one program. I downloaded Eagle but haven’t really tried that out yet and am not entirely sure what that’s used for, but I think it relates to PCBs.

You sound like you are off to a good start. The kind of programs you are looking for are referred to as Electronic Design Automation (EDA) tools, and traditionally allow you to draw out a symbolic representation of a circuit using a schematic capture interface, (sometimes) simulate it with a circuit simulator, and then finally lay out the circuit on a printed circuit board (PCB). In the commercial world, many companies use tools designed by Synopsys, Cadence or Mentor graphics, but these are prohibitively expensive and overly complex for most hobbyist use. You are on the right track with Fritzing and Eagle. They are both good choices for documenting your circuits and designing PCBs, although they have been designed for somewhat different purposes.

fritzing_pictoral_editor.jpg

For people who don’t already have a strong background in electronics, Fritzing is a great place to start. Instead of forcing you to understand the circuit schematics for each piece, you can use it’s pictorial ‘breadboard’ mode to connect drawings that look like the actual pieces that you would place on your breadboard. It sounds kind of cutesy, but it is pretty powerful because it also generates a schematic view of your circuit. This way, you can learn what the symbols for all of your parts look like by just connecting them up and flipping between the two views. You can either leave it at that to document a project that you made on a breadboard, or try out the PCB mode to design a simple 1-layer board that you can then etch yourself. To get started, check out their tutorials.

eagle_pcb_editor.jpg

While Fritzing is a great way to get started with electronics, if you start to do more complex things, you will eventually need to turn to a more powerful tool. The second program that you mentioned, Eagle (Easily Applicable Graphical Layout Editor), is a good choice for this. It isn’t open source software, however they offer a freeware version that is powerful enough to build many useful circuits. It doesn’t have a breadboard mode, so you have to start by making your circuit as a schematic. Once you have a schematic drawn up and have checked to make sure everything is connected properly, you create a new PCB and lay the components out. To get started, check out this tutorial by the folks at Sparkfun.

There are a multitude of other free PCB design programs out there. For instance, ExpressPCB is a proprietary schematic capture/PCB layout program that is closely integrated with the companies PCB fabrication service. gEDA aims to be a comprehensive open source circuit simulation/design environment, but appears to be quite complex. FreePCB looks good for designing PCBs, however it doesn’t appear to include a schematic capture program.

My advice would be to stick with Fritzing and Eagle for a while, use them to design and build a few PCBs, and if you aren’t satisfied with them, try out one of the other tools to see if it works better for you. Good luck!

[photo by Flickr user Zach Hoeken]

Related:

Read more | Permalink | Comments |

Read more articles in Ask MAKE |

Digg this!

Share and Enjoy:
  • Digg
  • del.icio.us
  • Netvouz
  • DZone
  • ThisNext
  • MisterWong
  • Wists
  • Add to favorites
  • blogtercimlap
  • Facebook
  • Google Bookmarks
  • Gwar
  • LinkaGoGo
  • Live
  • MSN Reporter
  • MyShare
  • RSS
  • Slashdot
  • StumbleUpon
  • Suggest to Techmeme via Twitter
  • Technorati
  • Twitter

Ask MAKE: Repurposing electronic detritus

12-Nov-09




Ask MAKE is a weekly column where we answer reader questions, like yours. Write them in to mattm@makezine.comor drop us a line on Twitter. We can’t wait to tackle your conundrums!

old_computer_junk.jpg

Jon writes in:

I saw the tweet about sending questions to MAKE and I’ve got kind of a big one.

I have all this electronic detritus that I would like to re-purpose (i.e. a couple old Compaq iPaqs, a bunch of cell phones, several laptops, several old desktop computers and monitors).

I don’t code but I can run a soldering iron. Short of sending this heap off to the landfill what are my options? I would like to make something cool that used all of the little screens (cell phone and iPaq) and I have seen (I don’t remember where) somebody had morphed a cellphone screen (I think) into a laptop on the outside.

Sure, there are lots of options for them. If the hardware still works and you don’t want it around, you can donate it to a charity. Otherwise, here are some ideas.

Mobile devices

The LCD displays on mobile electronic devices can difficult to interface directly. Your best bet may be to put new software on it. Here are some possibilities:

  • Identifying Nokia LCDs: If you have a Nokia phone, you might be able to control the LCD from a microcontroller.
  • PalmOrb: Turn an old palm pilot into a serial LCD.
  • Linux on an iPAQ: Smartphone magazine has a nice article about getting extra life out of old Pocket PCs by installing Linux.
  • PdPod: Convert an old iPod into a portable synthesizer.
  • Reware: Tips and tricks for unlocking old phones and installing new firmware

Laptops

The canonical use for an old laptop is to make it into a picture frame. You can convert an older laptop into a second monitor for your desktop using some simple software. If the laptop still works but is just slow, try turning it into an internet device by installing a lightweight Linux distro such as Xubuntu. If the laptop is broken but the screen still works, you might be able to program an FPGA to control it, but note that it is not easy or cheap to do.

Desktops

The advice for usable but slower laptops holds for desktops as well- they can make a nice internet kiosk, if given a software update. If the computer is really old or broken, though, you can try to salvage components from it. The power supply can be converted into a bench supply. 5.25″ floppy drives (from really old computers) usually have excellent stepper motors in them. Many PCs have a nice speaker mounted to the case, and sometimes have neat power switches. Old CRT monitors can used for art projects, such as displaying glitchy video. Personally, I’ve been considering using a bank of them as (very inefficient) color-controlled mood lighting.

This is a pretty open-ended question, and I’m sure that I have barely scratched the surface of what can be done with old electronic junk. Do you have a favorite use for a cast-off bit of electronics? Sound off in the comments!

Photo by Flickr user Victoria Reay

Read more | Permalink | Comments |

Read more articles in Ask MAKE |

Digg this!

Share and Enjoy:
  • Digg
  • del.icio.us
  • Netvouz
  • DZone
  • ThisNext
  • MisterWong
  • Wists
  • Add to favorites
  • blogtercimlap
  • Facebook
  • Google Bookmarks
  • Gwar
  • LinkaGoGo
  • Live
  • MSN Reporter
  • MyShare
  • RSS
  • Slashdot
  • StumbleUpon
  • Suggest to Techmeme via Twitter
  • Technorati
  • Twitter

Ask MAKE: Image sensors: CCD vs CMOS

05-Nov-09




Ask MAKE is a weekly column where we answer reader questions, like yours. Write them in to mattm@makezine.comor drop us a line on Twitter. We can’t wait to tackle your conundrums!

image_sensor.jpg

Ian writes in:

I was looking at buying a digital camera, and read that there are two kinds of sensors that they can use to take a picture- CMOS and CCD. Can you tell me what the difference is, and if one is better to get?

Sure! It’s actually a pretty topical question, as the inventors of the CCD just won this year’s Nobel Prize! As you mentioned, there are two basic kinds of image sensor that are used in today’s digital cameras, CCD (charge-coupled device) and CMOS (complementary metal oxide semiconductor). They both work by converting light energy (photons) into electric charge (electrons), and the difference is in how this charge is read out.

To start, both kinds of sensor are made of a grid of ‘buckets’ placed evenly across a flat semiconductor surface. Each bucket acts as an individual sensor, which only sees a tiny portion of the image. By displaying a bunch of these tiny points in a grid (using a computer monitor or printer), we see the image.

Making color images is a bit more complicated. Because the buckets are sensitive to any wavelength of visible light, if we just looked at the results we would see a monochrome image. To get color information, we arrange the sensors into groups of four, and place tiny red, green, and blue color filters over them. Each group of four sensors is what we call a pixel, and it is interesting to note that modern cameras have millions of them.

Ok, so both CCD and CMOS sensors are basically just big arrays of individual sensors, so how are they different? The difference is in how the charges are collected and read out. In a CCD, the ‘bucket’ that collects charge is just a capacitor. To read the image data out of the CCD, the charge in each bucket is pumped individually over to an ADC (analog to digital converter), which actually measures charge. In a CMOS sensor, each bucket contains a photodiode and some amplifier circuitry. To read the image data out, the output of each amplifier is connected to an ADC through a multiplexer, which measures the voltage at each cell.

I don’t think that either technology is necessarily better, but each has its own quirks. There is an interesting site at dvxuser which talks about the different kinds of sensor artifacts associated with each kind of sensor. For most cases, though, I think that other specifications, such as ease of use and sensitivity to light, are probably more important to think about when choosing a digital camera. Good luck!

[photo by SarahCartwright]

Read more | Permalink | Comments |

Read more articles in Ask MAKE |

Digg this!

Share and Enjoy:
  • Digg
  • del.icio.us
  • Netvouz
  • DZone
  • ThisNext
  • MisterWong
  • Wists
  • Add to favorites
  • blogtercimlap
  • Facebook
  • Google Bookmarks
  • Gwar
  • LinkaGoGo
  • Live
  • MSN Reporter
  • MyShare
  • RSS
  • Slashdot
  • StumbleUpon
  • Suggest to Techmeme via Twitter
  • Technorati
  • Twitter

Ask MAKE: Playing back a recorded sound

29-Oct-09




Ask MAKE is a weekly column where we answer reader questions, like yours. Write them in to mattm@makezine.comor drop us a line on Twitter. We can’t wait to tackle your conundrums!

singing_scope.jpg

George writes in:

I’ve been wanting to make a prank project, that I can leave somewhere to play back a recorded sound and flash some lights. I’ll use LEDs for the lights, but don’t know how to play back sound. Do you have any suggestions?

Aha, this sounds like it could be a fun project. I’m going to assume you are using a microcontroller to monitor an input (sound? light? time? vibration?), and then initiate a sequenced event. It’s a bit late for Halloween, but this would be a good way to make lawn props that react when someone comes near your house.

Because playing back sound takes a reasonable amount of memory and speed, it’s not something that can be done easily with a standard microcontroller. Instead, the best way to handle this would be to hook up another device, that can be started by the micro and then do the heavy lifting of actually playing back a sound. At least three possibilities come to mind: using a Wave Shield, hacking an MP3 player, or hacking a cheap toy with a sound recorder.

If you are using an Arduino, the Wave Shield might be an ideal solution to your problem. It is an expansion module that allows you to play sounds off of an SD card, and there is a nice library to control it as well. It runs in at about $22 bucks, which seems pretty reasonable for what you get.

If you aren’t using an Arduino, or already have an old MP3 player and don’t want to spend the bucks on a project you will only use once, then you can try to use that. The best way to do this is probably to wire an optocoupler to the play button on the MP3 player, and then trigger that with your microcontroller. If you have more than one sound track that you want to trigger, you could also wire up the next button, but that might get tricky. The bonus for going this way is that you could recycle some electronics junk that would otherwise go to the scrap heap.

Either of the two above solutions are great if you are only thinking of making one or two of the devices, but what if you want to make a bunch of them? In that case, it might be more economical to try hacking a cheap toy, such as this one. Somehow these are still available, and are less than $2 in quantity. The sound quality probably won’t be anywhere as good, but hey, the’re cheap! If you are in a rush, you could also try hacking a voice recording card that you can pick up at a local store. Good luck!

In the Maker Shed:

Makershedsmall

Arduino WaveShield Kit

Read more | Permalink | Comments |

Read more articles in Ask MAKE |

Digg this!

Share and Enjoy:
  • Digg
  • del.icio.us
  • Netvouz
  • DZone
  • ThisNext
  • MisterWong
  • Wists
  • Add to favorites
  • blogtercimlap
  • Facebook
  • Google Bookmarks
  • Gwar
  • LinkaGoGo
  • Live
  • MSN Reporter
  • MyShare
  • RSS
  • Slashdot
  • StumbleUpon
  • Suggest to Techmeme via Twitter
  • Technorati
  • Twitter