Don't be intimated by the number of steps. It's one of the least complicated projects I've ever made.
This project was initially developed with the love and support of the Eyebeam OpenLab.
Step 1: Go get stuff
- A MQ-3 Alcohol Sensor (available via Futurlec. Allow a few weeks for shipping from Thailand. Be warned! Ordering anything else from Futurlec may place your order on backorder and leave you waiting a long, long, time without being notified).
- An XLR microphone (you can pick up cheap dynamic XLR microphones intended for karaoke all over the internet)
- An Arduino Decimilla
- Logomatic Data Logger (via Sparkfun)
- An SD Card (can get a cheap 256MB card at Radioshack)
- An SD Card reader
- XLR to 1/4" stereo plug
- A professional-looking audio device (working or not)
- resistors (100K, 10K, 1K)
- a schottky diode
- Acrylic or cardboard
- solid hookup wire
- 9V battery plug
- 9V battery
- isopropyl rubbing alcohol
- a 12 pack and some friends
(other stuff for interfacing Arduino and data logger?)
Mini screwdriver set
Needle nose pliers
Power drill or other rotary tool
Scissors, saw and/or laser cutter (see step 15)
Step 2: Remove the wind screen
Step 3: Loosen the Mic
Step 4: Take out the switch
Once the label is removed, there should be two screws. Unscrew these screws to free the switch from the case.
Set aside the label and screws for reassembly later. If you lose these, you won't be able to reassemble this easily.
Step 5: Remove the XLR plug
Step 6: Take out the wiring
Step 7: Prepare the XLR plug
For the purpose we are using the XLR plug, only one pin should be grounded. This means that the two round pins should no longer be connected. Take your wire cutters and cut away this connection. Bend any extra wire on these pins away from each other.
Step 8: Prepare the switch
By doing this, you have just cut free the microphone element. This is a perfectly good microphone and element and could be used for a host of other projects. Store it away somewhere safe.
Step 9: Attach more wires to the XLR plug
Also, take your wire cutters and remove the remove the remaining black wire. Replace that black wire with another black wire that is 8" long.
Step 10: Attach more wires to the switch
A good way to figure out which is the right tab is by figuring out which two tabs the slider button is directly above when the microphone is turned on. It is these two tabs that need wires connected to them. One should already have a wire connected to it (probably the center one). It is the bottom tab that needs to have a wire connected to it (there should already be some solder on the pin, since you cut a wire off of it earlier). If you are still confused, just look at the pictures below.
Step 11: Reassemble
It helps to push the XLR plug as far as you can in using your fingers and then to pull it through with a pair of needle nose pliers.
Line it up correctly, and reinsert the screw you removed earlier.
Next, hold the switch in place with your finger and screw that in as well. Once that is screwed in place, stick the "on/off" label back on.
Make sure that the switch is orientated correctly with the label. In other words, when the switch is put in the "on" position, it should be sitting directly over the two tabs with wires attached to it.
Step 12: Test your connections
Using the continuity tester on your multimeter (normally has a picture of a diode next to it) touch one probe to one of the pins on your XLR plug and then, one at a time, touch each wire at the other end. For each pin, there should only be on corresponding wire that gives a positive reading of being connected.
If more than one wire gives you a positive reading, you need to remove everything once more and check the connections.
Also, if you find a pin that does not seem to be connected to any wires, try turning the switch on. If that still doesn't work, you need to disassemble and re-check your work.
Speaking of the switch, be extra careful to make sure that the switch both turns on and off.
Step 13: Prepare the stereo plug
Step 14: Test your connections... again
So, first of all, connect the XLR cable to the microphone. Connect the other end of the cable to the 1/4" plug.
With the continuity tester on your multimeter test to make certain that the black wire connected to the 1/4" plug makes a connection with the other black wire coming out the top of the microphone.
Next determine which red wire coming from the 1/4" plug corresponds to the red wire coming out of the top of the microphone that is connected to the switch. This is easy to test because when the switch is turned on, they should make a connection and when the switch is turned off, the connection should be broken. Once you found these two wires, mark them with a piece of tape.
For good measure, double check that the other two red wires that aren't marked also make a connection when tested with your multimeter.
Step 15: Mounting Bracket
This file is set up for a laser cutter and can be used to cut out the bracket in seconds should you be lucky enough to have access to a laser cutter.
If, like most people, you don't have access to a laser cutter, this file is still very helpful to you. You can print it out on any sheet of computer paper and then cut out the outer circle with a pair of scissors. Once this is done, tape this circle to whatever material you wish to make this bracket out of. Once its taped down, use this as a guide to cut out a circle and drill holes. I recommend using wood, acrylic or a thin, sturdy, board-like material.
Step 16: Start soldering
Twist together the two closest metal leads and then connect them with solder.
Step 17: Finish soldering
Flip over the bracket. There are two groupings of three pins coming from the sensor.
For the first grouping of three pins, you are going to want to connect one of the outside leads from the resistors to one of the outside pins in the group. Then, you will need to solder the other resistor lead to the middle pin.
Once those connections are made you will need to solder the wires from the microphone. Solder the black wire also to the middle pin. If it is easier, you can also solder it to resistor lead connected to the middle pin.
Next, solder the red wire that is not connected to the power switch to the other outside pin that resistor lead is connected to.
Lastly, it is now time to connect the red wire coming from the power switch to the sensor. This wire gets connected to the grouping of three pins that you have yet to connect wires to (the one furthest from the resistors). Simply wrap this wire around either of the two outter pins and the center pin and then, in turn, solder it to the outter and center pin.
Step 18: Glue the bracket in place
If you sized your bracket right, you won't need all too much glue to hold it in place, since it should stay pretty securely on its own.
Step 19: Put the windscreen back on
Step 20: Make a discreet datalogger
Step 21: Program the Arduino
First, open the Arduino development environment. Next, load up the file found below. Lastly hit the "upload" button.
Note: Older version of the Arduino may require hitting the restart button first before uploading
Step 22: Testing... Testing... Is this thing on?
If you really want to test it, you are going to need to get some beers and a couple of friends. Monitor their alcohol intake. Vary the rate at which they are drinking. Also, take note of their height and weight to accurately calculate their intoxication level.
Or... you could just bring it to an art opening and see what happens.
Step 23: Taking a reading
Once you turn the microphone back on, it probably will no longer be completely accurate and need some time to reset.
Step 24: Reading the SD card
The readings are the spikes in numbers in your text file