LapTop BreadBoarding

LapTop BreadBoarding
Analog Breadboarding on a laptop costs almost nothing, at least on a MacBook Pro.
 
Remove these adsRemove these ads by Signing Up
 

Step 1The Interface

The Interface
Three things make laptop breadboarding convenient.

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 StepDownload PDFView All StepsNext Step »
23 comments
Oct 27, 2009. 11:39 AMUnit042 says:
I apologize if this quesstion has been answered before somewhere, but what exactly is the standard audio level for PC machines? I'm guessing from 0-1v, right?

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)
Sep 8, 2010. 10:02 AMIronManMC says:

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
Aug 17, 2009. 11:57 PMUnit042 says:
This is excellent! However, I have always wondered how people program those oscilloscope programs, ie, get values from sound card. Now, if you could program the sound going out, you have yourself a programmable two-way stereo audio interface! But, when I look up how to interface to hardware with C++, I get either a beginner's tutorial, or a half-baked API that I have no idea what it does. (Not that I am good at C++, I have just been trying to justify the time and effort to put into learning it. I want to control serial ports, CD drives, etc.!)
Aug 19, 2009. 12:23 PMUnit042 says:
*whine
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...)
Apr 10, 2009. 2:09 PMste5442 says:
Excellent instructable!
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
Apr 7, 2009. 5:16 PMDa_Fudge says:
That is truly awesome! Are there any similar programs out there for windows or linux? I like that circuit simulator! Keep up the good work. Fudge.
Apr 10, 2009. 2:03 PMste5442 says:
There are many for Windows - do a search for 'sound card scope free software' or 'winscope' - th ebandwidth is extremelly low as we all know but they are useful for audio electronics debugging.
Winscope will run under WINE on Linux.

PCB Police
Apr 7, 2009. 5:27 PMstuuf says:
There are versions of the Spice simulator and various frontends for it available for other platforms. I haven't heard of any other sound card oscilloscope programs though; unfortunately most Mac developers don't understand the benefits of writing cross-platform software...
Apr 9, 2009. 9:01 AMruss_hensel says:
Could you give some details on how you made the stack-able jumper-leads? They look very handy.
Apr 10, 2009. 2:01 PMste5442 says:
Do a search for 'socket strip' on the Farnell or DigiKey websites - you can snap off single sockets or use a couple of strips to make a DIP IC socket.
Very useful in their intended purpose but the stacked breadboard jumper idea is excellent :-)

PCB Police
Apr 8, 2009. 3:10 AMPazzerz says:
There are PLENTY of oscilloscope programs for Windows. There are at least a dozen spice type circuit simulators as well. I presently use an old version 5 of Electronics Workbench for circuit simulation. I believe there is a Winscope(??) program that works with the sound card. You can also buy USB oscilloscopes for less than $200 which some provide signal injection. Check out Parallax's site or just Google USB Oscilloscope.
Apr 8, 2009. 10:41 AMPazzerz says:
Absolutely! Try it with a wideband ELF receiver. You'd be amazed at the 'picture' it creates.

Pro

Get More Out of Instructables

Already have an Account?

close

All Steps Viewing
View all steps of an Instructable on the same page when you're a Pro Member.

Upgrade to Pro today!
10
Followers
16
Author:dsauer
Have 30+ years of experiences as a Mixed Signal IC Design Engineer.