Remove these ads by
Signing UpStep 1The Interface
1)A USB port is designed to provide 5volts at up to 500mA.
2)Sound recording inside PCs is becoming commonplace.
3)A lot of free software is available online.
These three items together with a little interface development can turn a laptop into a full audio bread-board lab environment. Outside of the breadboard, the full interface needed is shown below.
The MacBook provides a line-input stereo audio port in addition to its internal microphones. It looks like this port can only handle signals at the standard audio levels.
USB devices tend to become an open circuit right at the plug interface. The wires in this USB plug were wired to the correct color code. The 5V wire was red and the ground as black. Apparently a 100mA load is a unit load for USB. A 100 Ohm series resistor was added to the 5V line for safety reasons.
<< THIS IS NOT A NOVICE PROJECT >>
| « Previous Step | Download PDFView All Steps | Next Step » |

































![WORLDS CHEAPEST VIRTUAL DRUM at $10 [ Rs.500] - using pc ( no drum module required )](http://img.instructables.com/files/deriv/FA7/71UR/GUI0ZWAC/FA771URGUI0ZWAC.SQUARE.jpg)

















I'm asking because I have run into a project that needs a cheap oscilloscope, and without the ability to capture the signal and not damage my computer, I cannot get the timing stuff right. (I can provide a link to it if you're interested)
Never ask an engineer a simple question ;)
Much audio technology comes to us courtesy of Ma Bell. "Line level" is telephone line level. Signal strength is measured with an S meter. 0 dB= 0.775 volts @ 600 ohms. Anything @ +3 dB (1.55 volts) or higher can produce crosstalk on other lines, so +3 dB is considered to be an absolute maximum. Acceptable telephone signals are generally around -10 dB, 0.0775 volts.
I have an audio mixer that labels line, instrument, and microphone levels as -20 dB, -35 dB, and -50 dB respectively. In case you're not into logarithms, -3 dB = half power; +3 dB= double, -10 dB= 1/10th, and +10 dB= 10 times.
So assuming that the dweebs that designed your sound card knew the specs and STUCK TO THEM, yes, your guess is close enough. If you exceed it, the input amp will eventually enter a nonlinear region. If it's vacuum tubes (stop laughing you fool - I used to work with computers that used vacuum tubes - and relays; my $3 digital watch has more processing power :D ), peaks begin to softly flatten out, producing a distortion that's rich in lower harmonics and pleasing to the ear. If it's solid state, the clipping is hard, harsh, and as pleasing as fingernails on the blackboard. Interestingly, the harmonic content is similar - higher odd overtones.
But you're building a 'scope, so you should be able to see this.
Line input is 600 ohms, not good for a 'scope. I'd buffer it with an op amp voltage follower.
There used to be plans and kits for converting (all tube) TV's to a big screen oscilloscope. I never tried one, nor do I know anyone who did.
Good luck with your project.
-Mike
Any resources that can capture sound on your PC can be used. The Mac includes a line in port. SciLab provides a way to get at the captured audio frequency signal. See my web site at www.idea2ic.com .
I want it *now*!
*whine
Yes, serial I/O is great, but how did they make scilab do stuff with the sound card? (wondering out loud...)
http://www.idea2ic.com/PlayWithFink/LapPower/PowerInLap.html
This page shows where Apple has a full working Xcode two way audio interface example on line. If you have a Mac, your set up to get into the audio hardware interface with C++ like software.
I have a couple of comments (which sounds like I am picking holes in the instructable but that really is not my intention!):
1. Using a 100ohm resistor in series with the USB VBUS means you are going to drop some serious volts across it when your circuit is under load - you could end up with some bizarre consequences/observations as the supply voltage droops etc.
2. USB ports are designed (and this is part of the compliance testing and spec) to current limit or shutdown at 500mA load.
Sooo, dont worry about the 100ohm resistor - it aint needed ;-)
Many thanks.
PCB Police
Winscope will run under WINE on Linux.
PCB Police
Very useful in their intended purpose but the stacked breadboard jumper idea is excellent :-)
PCB Police