AncientBrit wrote:...Useful advice for those just setting out on circuit development. I've also found that derived mid-rails (for single rail op amps) need special attention. Regards, Graham
A very valid point Graham, something that is often glossed over in texts and electronic courses...most of us find out the hard way. Here's the nub of it...
Decoupling is used (also called bypassing sometimes) where a supply from a battery or a power supply can have unwanted noise on it which upsets in some manner another part of the system using the same supply in some way. A bit like interference on AM radio. A NBTV specific example is the use of a brushed DC motor (standard cassette-type) to spin a disc. Decoupling (perhaps 'uncoupling' would be better) is a bit like seperating the coaches or cars on a train, so that one cannot affect another.
Quoting Horowitz & Hill from "The Art of Electronics"..."In general it is a good idea to bypass power-supply leads to ground liberally throughout a circuit, using a combination of ceramic types (10-100nF) and electrolytic or Tantalum types (1-10uF)." In fact there are no less than ten references to bypassing in the index scattered throughout the book.
Good advice, one ceramic capacitor for four logic chips, and an electrolytic per board is the rule of thumb I go by unless the chip datasheet says otherwise, mainly A-D & D-A chips or hi-speed analogue circuitry (not NBTV!).
The other reason...don't groan...is stability, this mainly applies to analogue circuits, but is not unknown in simple logic too, especially Schmitt-trigger inputs. A simple short wire from a battery has an inductance, small, but it's there. Combine that with its opposite number (positive or negative as the case may be) and you've got a capacitor. Throw in some board capacitance, PCB or Vero track resistance & inductance and chip input capacitance and you've got one rather nasty resonant circuit awaiting to bite on the...wherever.
Even expensive regulated power supplies don't escape this. Often people use a simulator to evaluate a circuit on a PC, all fine and well, but the simulator assumes (usually) that all components are 'perfect', no lead inductance, no board capacitance and the power source is perfect and noise-free too. Sorry, not real life! They are very useful, but you must remember they don't work in the real world.
So stock up on disc-ceramic 10 & 100nF caps (50V)..cheap, under a penny in 100-off quantities and a load of 47uf electrolytics (16/25V).
Attached is one of the boards for "The Brute" undergoing testing (hence that's why it's a mess) but you'll note no less than seven ceramics and one electrolytic. Also note the short fat green ground leads to the chassis.
Steve A.