loading
Picture of Discreet Data Logger
There is no better way to hide a covert device than to stick it inside a larger conspicuous device.

That said... Essentially, this is a guide for making a data logging system for use with the breathalyzer microphone.

To accomplish this, an Arduino and a Logomatic SD data logger are embedded into an old and considerably large tape deck. The data is fed into the tape deck through an unassuming 1/4" audio jack.
 
Remove these adsRemove these ads by Signing Up

Step 1: Go get stuff

Picture of Go get stuff
To do this, you will need...

materials:
- old tape deck or similar
- Arduino Diecimilia
- Logomatic V1.0 SD Data Logger (available from Sparkfun)
- SD card
- An SD card reader
- A 10K resistor
- A schotky diode
- 1/4" jack (unless you already got one fo the breathalyzer mic)
- 9V battery connector
- 9V battery
- PCB
- hookup wire
- electrical tape

tools:
- philips head screwdriver
- soldering setup
- pliers and/or cutters
- power drill

Step 2: Prep the case

The first thing to do is open the case and determine where the arduino, data logger, battery and 1/4" jack are going to be placed. This may mean, in many cases, removing some of the parts inside the device.

I decided that the best place to insert my electronics was in the battery slot of the tape player. Unfortunately, the battery slot was just slightly not deep enough for the Arduino. This was easily resolved by disassembling the case, breaking off some excess plastic and reassembling.

Once the plastic was broken, everything fit in with room to spare.

The only real rule with this is that there needs to be enough room to comfortably fit all of your parts inside. Don't forget to factor in a reasonable place for mounting the 1/4" stereo jack without creating too many problems.

Step 3: Insert the stereo plug

Picture of Insert the stereo plug
DSCF5824.JPG
DSCF5826.JPG
Once you have carefully determined where the stereo plug should be positioned, double check that it will actually work in that position. Once you are absolutely sure, drill a 1/4" hole in the side of the case. Pass through your 1/4" stereo plug from the inside and secure it on the outside with the mounting bracket.

In my case, I didn't have to drill a hole. I was able to pass it through an existing hole in the case and secure it that way.

Step 4: Prepare the SD card

Picture of Prepare the SD card
IMG_0822.JPG
Plug your SD card into the card reader for your computer. Format the card to FAT 16. Once this is done, unplug the card and insert it into the Logomatic.

Step 5: Setup the Logomatic

Basically, this involves inserting the SD card into the socket on the datalogger and applying power from the Arduino.

Wait for a few minutes. You should see a flashing sequence of lights. When the lights are done flashing, remove the card and put back into card reader.

Two text files should appear called ___ and ____. You want to open them and configure it to have the following settings ______

Step 6: Build the interface circuit

Picture of Build the interface circuit
Using the following schematic, build the circuit to interface the Arduino to the Datalogger.

Step 7: Program the Arduino

Picture of Program the Arduino
Program the Arduino with the code found below.

In other words, download this code. Download the Arduino development platform. Load this code into the Arduino development platform. Once the code is loaded, hit the upload button as shown in the picture below.

That's about it.

Step 8: Connect it all together

Picture of Connect it all together
step_8B.JPG
step_8C.JPG
Connect the Arduino to the Logomatic data logger using your interface circuit as pictured.

Step 9: Finish it up

Picture of Finish it up
step9B.JPG
step9C.JPG
step9D.JPG
Plug the positive battery terminal into 9V socket on the arduino and ground to ground. secure everything inside of case so that the terminals can't accidentally touch. Finish by closing up the case.
it would be cool if it could log data onto the tape itself. I'm considering doing a bit of research into converting a VCR to store data on VHS tapes. Nice instructable.
the beta units if u can find 1 will work even better. vcr will still record if u use a vcr hook up. recieving the data will be a bit problematic tho.
timmy1234s6 years ago
also, what type of 10k resistor do you get ? Is it the one with 1/8 watt, 1/4 watt, or 1/2 watt?
or 3/4 or full watt type
any of those should work
beehard444 years ago
i was thinking of an analog datalogger using the tape...
timmy1234s6 years ago
so what value of the diode do you get!?!?
doesnt matter
tyeo0987 years ago
What exactly is it logging?
randofo (author)  tyeo0987 years ago
In this case, breathalyzer data. But, it can be modified to log any analog sensor.
could you use it to log position data from an incremental position encoder? (like on a cnc)
randofo (author)  vatosupreme6 years ago
I don't see why not. I actually didn't make the datalogger itself. I bought it from here:

http://www.sparkfun.com/commerce/product_info.php?products_id=752

They have full documentation. You should be able to log most anything so long as you want it on an SD card.
merseyless7 years ago
Quote "Two text files should appear called _ and . You want to open them and configure it to have the following settings " somthing is WRONG with what is NOT in this sentence. What are the settings?!?
randofo (author)  merseyless7 years ago
Oh yeah... I forgot to finish that. Basically, you want to open the text file and keep the default settings for serial communication. Sparkfun has documentation about configuring the datalogger on their site. I'll fix that tomorrow.
thx
ongissim7 years ago
It would be cool to use an open PWM pin of the Arduino and hook it up to the input of a VCO, and connect the output of the VCO to the taping mechanism in the recorder so you can tell how much someone is intoxicated by the pitch of the tone.