Hack-The-Spy-Ear-and-Learn-to-Reverse-Engineer-a-C
Hack-The-Spy-Ear-and-Learn-to-Reverse-Engineer-a-C
Table of Contents
intro: Hack The Spy Ear and Learn to Reverse Engineer a Circuit . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
File Downloads . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
step 3: Simulations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
Related Instructables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
Advertisements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
Comments . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
http://www.instructables.com/id/Hack-The-Spy-Ear-and-Learn-to-Reverse-Engineer-a-C/
intro: Hack The Spy Ear and Learn to Reverse Engineer a Circuit
This instructable introduces the venerable Spy Ear in details and my way to reverse engineer a circuit.
-It has a self limiting property and adjusts the gain so that the amplified signal volume is always just right.
-It runs of two LR44 1.5 volt button cell alkaline battery, so it's perfect for portable projects.
-Many of today's projects, such as in robotics, require analogue front end for sensing the environment and the Spy Ear circuit is just right to fill in as a multi-purpose front
end amplifier.
So the Spy Ear is a fantastic cheap,small and rugged circuit for modding and hacking
2. Trace the pcb layout on the back using a graphic program like photoshop. Try using the "bucket fill" tool first. if that doesn't work color it by hand.
Don't color the whole pcb layout. Leave the areas where a solder is made clear, so that you can figure out which component's leg goes where.
3.Copy the pcb layout you made and paste it on top of the device's front picture. Flip it horizontally and adjust the scale and position so that the trace is super-imposed
exactly on top of the components (see picture below).
4.Then comparing the different pictures and looking at the actual circuit, draw in the components' symbols from node to node. (see last picture).
5. Next, you'd need a circuit drawing program to rearrange the rough circuit that you drew by hand (see next step).
Count the components. Use the count as a checksum when you reconstruct the schematic. It is easy to forget something.
http://www.instructables.com/id/Hack-The-Spy-Ear-and-Learn-to-Reverse-Engineer-a-C/
Image Notes
1. Trace of the PCB made by Hand
2. Notice that I leave the portion where there is a solder clear
Image Notes
1. the above picture with the trace super-imposed
Image Notes
1. this is a transistor
2. This is a capcitor
3. This is a resistor
4. The battery
5. The earphone
6. The variable resistor is drawn in the schematic as two resistor in series. Notice
the outer trace are for the switch which I omitted in the schematic
7. The microphone leads go here
http://www.instructables.com/id/Hack-The-Spy-Ear-and-Learn-to-Reverse-Engineer-a-C/
step 2: Draw the Schematic
To draw the circuit and simulate it I used Linear Technology's LTspice. It's free and it is great.
LTspice
http://www.linear.com/designtools/software/switchercad.jsp
I make the Spy Ear schematic available for the first time on the web in this instructable.
V1 N001 0 1.5
Q1 N006 N009 0 0 2N3904
Q2 N004 N008 0 0 2N3904
R6 N001 N004 4.7k
Q3 N005 N004 0 0 2N3904
R7 N004 N008 200k
C4 N008 0 5n
R���§VR1 N002 N003 5k
R���§VR2 N003 N006 5k
R2 N001 N002 220
C���§BigC N002 0 10���µ
R8 N006 N009 200k
C1 N007 N009 .1���µ
R1 N002 N007 3.3k
C2 N003 N008 .1���µ
V���§Microphone N007 0 SFFM(0 1u 2000 100 100) AC .1u
R���§Earphone N001 N005 75
C3 N001 N005 .1���µ
.model NPN NPN
.model PNP PNP
.lib C:\Program Files\LTC\SwCADIII\lib\cmp\standard.bjt
.tran 0 100ms 0 1ms
.backanno
.end
File Downloads
spyear.asc (2 KB)
[NOTE: When saving, if you see .tmp as the file ext, rename it to 'spyear.asc']
step 3: Simulations
Here are the simulations that I ran from the previous netlist and they show the characteristics of the Spy Ear.
You'd notice the frequency response is not even which produces distortions in the output (see next pic).
But this is ok, because Spy Ear is designed to focus on speech. The main spectrum of speech is between 300 and 3000Hz and if you are trying to spy on someone's
conversation as the package claims, the goal is to amplify speech frequencies while cutting out ambient noise.
There is an advantage of having a schematic for simulation because with a few clicks you can investigate the effect of modding the components without actually doing it
physically. For example, if C1 and C2 are replaced with larger capacitors, like on the order of 100u, the response approaches HiFi (see last picture). HiFi requires that the
frequency response be flat and wide.
http://www.instructables.com/id/Hack-The-Spy-Ear-and-Learn-to-Reverse-Engineer-a-C/
step 4: Picachu's Spy Ear
Picachu bought spy ears that are different than the one I used. It turn out they are missing two capacitors that makes it amplify less.
http://www.instructables.com/id/Hack-The-Spy-Ear-and-Learn-to-Reverse-Engineer-a-C/
Related Instructables
Advertisements
Customized Instructable T-shirts
Comments
50 comments Add Comment view all 91 comments
http://www.instructables.com/id/Hack-The-Spy-Ear-and-Learn-to-Reverse-Engineer-a-C/
Biotele says: Oct 16, 2008. 12:48 PM REPLY
The microphone goes where the green dots are on the reverse side picture in step 4.
i used BC547 instead of 2n3904(that's what i have but the specs are the same) and used 220K instead of the 200K resistors(didn't think it would matter)
but it just didn't work for me ,as hard as i tried i made noise and talk to the mic and there is no sound through the speaker. :-O
i checked the mic,speaker and the VResistor and they are fine.
also i checked to see if i didn't do a mistake of connection the wires and component. but still no sound :(
i put(instead of the mic) a tone out of my radio through a headphone (one of the channels) and i could hear real good the sound coming out
of the circuit speaker,amplified.
http://www.instructables.com/id/Hack-The-Spy-Ear-and-Learn-to-Reverse-Engineer-a-C/
i805 says: Jul 4, 2008. 8:49 PM REPLY
this also resemble to the pc sound card inputs
the line in & the mic in
my circuit works as a line in. i don't understand much of it ,but this analogy seems the same here.
"A typical electret microphone preamp circuit uses an FET in a common source configuration. The two-terminal electret capsule
contains an FET which must be externally powered by supply voltage V+. The resistor sets the gain and output impedance. The audio
signal appears at the output, after a DC-blocking capacitor."
http://en.wikipedia.org/wiki/Electret_microphone
i think i know why i made this mistake. as i was preparing the parts for making the circuit ,my eyes confidently passed through the
diagram from right to left and as i glanced the the R7 220k and then R8 220k i saw the beginning of R2 200 and my brain
automatically completed it to 200K because R7 & R8 were 200k.
i know it may not make a lot of sense,but that's what happened.
all is fine, but there is a problem though,there is a very load inbearable high pitched sound coming from the earphone as i
increased the VR ,does it happen to you too?
i don't have a scope so i checked the mic and speaker like this :
connected the mic to an old computer mic wire and i could recorded my self in windows.
connected the speaker to an old headphone wire and i could hear a music file in windows.
i tested the bc547c in the test circuit shown in the pic it, was taken from here:
http://www.kpsec.freeuk.com/components/tran.htm
the led went on.
i put 5k VR in my circuit cause i saw 5K in each side,but then i figured out you meant 5k in each side,so i put 10K VR,where its middle leg goes to
C2.
in the bigCAP you didn't mention it was electrolyte( + -) but i saw it in the original circuit so i figured it was electrolyte and not ceramic.
after all that and endless checking of right wire connections, the only thing i got was a little hamming through the speaker,but sound(as i talked and
made noise to the mic)never came out.
didn't see something in the scope i even downloaded this nice soft:
http://zeitnitz.de/Christian/Scope/Scope_en.html
http://www.instructables.com/id/Hack-The-Spy-Ear-and-Learn-to-Reverse-Engineer-a-C/
Picachu says: Jun 25, 2008. 5:16 AM REPLY
Well, I must apologize. I was paying so much attention to your device and schematics, didn't realize mine is somehow different, can't explain why. Packaging
is the same, model is the same, case is the same, even the pcb looks the same, but at a closer look it isn't. The component layout is very different, I have
only 2 ceramic caps, while your device has 4! Damn! All I can say is mine doesn't work as it should, I'll probably try to build yours, so your reverse
engineering schematics will be very handy.
http://www.instructables.com/id/Hack-The-Spy-Ear-and-Learn-to-Reverse-Engineer-a-C/
Biotele says: Jun 26, 2008. 1:37 PM REPLY
I got it and I am working on it. The ceramic caps should be in the nanofarad range not in in the microfarad. Thanks
http://www.instructables.com/id/Hack-The-Spy-Ear-and-Learn-to-Reverse-Engineer-a-C/
Biotele says: Jun 26, 2008. 1:08 AM REPLY
Intresting. Can you send me a pic?
http://www.seseyann.com/circuits/LM386.html
http://www.amazon.com/Forrest-Mims-Engineers-Notebook/dp/1878707035.
http://www.instructables.com/id/Hack-The-Spy-Ear-and-Learn-to-Reverse-Engineer-a-C/