<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://www.opencircuits.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=121.220.220.96</id>
	<title>OpenCircuits - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="http://www.opencircuits.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=121.220.220.96"/>
	<link rel="alternate" type="text/html" href="http://www.opencircuits.com/index.php?title=Special:Contributions/121.220.220.96"/>
	<updated>2026-06-02T15:25:01Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.34.2</generator>
	<entry>
		<id>http://www.opencircuits.com/index.php?title=Techniques&amp;diff=19346</id>
		<title>Techniques</title>
		<link rel="alternate" type="text/html" href="http://www.opencircuits.com/index.php?title=Techniques&amp;diff=19346"/>
		<updated>2010-03-24T11:17:53Z</updated>

		<summary type="html">&lt;p&gt;121.220.220.96: /* Theory */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;There are a wide variety of techniques used in electronics.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Printed circuit board design/fabrication ==&lt;br /&gt;
=== Overview ===&lt;br /&gt;
=== Software Design ===&lt;br /&gt;
See [[#Software_design_tools|Software Design Tools]] below.&lt;br /&gt;
&lt;br /&gt;
==== Step by Step by using Software Design Tool ====&lt;br /&gt;
*make sure the dimension and shape of PCB&lt;br /&gt;
*make sure the size and location of Via for PCB stand&lt;br /&gt;
*Make sure each components footprint.&lt;br /&gt;
*each components are placed on suitable place by put on a hardcopy of simulation PCB&lt;br /&gt;
*All components get enough clearance between them.&lt;br /&gt;
*Silkscreen layout is confirmed.&lt;br /&gt;
*PCB is drawn.&lt;br /&gt;
*silkscreen adding the following:&lt;br /&gt;
**version no.&lt;br /&gt;
**organization name&lt;br /&gt;
**board name&lt;br /&gt;
*Netlist is ran and got a no error result.&lt;br /&gt;
*DRC is ran and got a no error result.&lt;br /&gt;
*Overall is checked.&lt;br /&gt;
*generate Gerber and send to [[PCB Manufacturers]].&lt;br /&gt;
&lt;br /&gt;
=== Manual Design ===&lt;br /&gt;
Somepeople do this with layout on clear film or by directly drawing on a circuit board, of even by scratching, grinding....  For now let them google this.&lt;br /&gt;
&lt;br /&gt;
=== Homebrew fabrication ===&lt;br /&gt;
Before exploring these techniques, you should understand your options with regard to services such as BatchPCB.com, ExpressPCB.com and PCB123.com. Being able to have several boards fabbed in 2 days for $59 (for example) makes it harder to justify the hassle of etching your own boards at home.&lt;br /&gt;
* [http://www.electricstuff.co.uk/pcbs.html &amp;quot;How to make really really good homemade PCBs&amp;quot;] by Mike Harrison 2007&lt;br /&gt;
* [[Toner Transfer]] -- This method involves laser printing your PCB design onto paper, then transferring toner onto copper-clad board.&lt;br /&gt;
* [[Photoetching]] -- Exposure of PCB designs onto photosensitized copper-clad board.&lt;br /&gt;
* [[Chemical Etchants]]&lt;br /&gt;
* [http://groups.yahoo.com/group/pcb-gcode &amp;quot;Mechanically etching or milling PCBs. No chemicals!&amp;quot;] -- Use your CNC router/mill to make PC boards.&lt;br /&gt;
* [http://openfarmtech.org/index.php?title=Routed_Circuit_Board Open Source Ecology wiki: &amp;quot;Routed Circuit Board&amp;quot;]&lt;br /&gt;
* [http://tech.groups.yahoo.com/group/Homebrew_PCBs/ Yahoo group: Homebrew_PCBs · Homebrew Printed Circuit Boards]&lt;br /&gt;
&lt;br /&gt;
=== Commercial PCB fabrication ===&lt;br /&gt;
* [[Submitting PCB's for fabrication]] -- Common processes for submitting PCB's for fabrication.&lt;br /&gt;
* [[PCB Manufacturers]]&lt;br /&gt;
* [http://diydrones.com/profiles/blog/show?id=705844%3ABlogPost%3A30196 &amp;quot;PCB fabbing advice&amp;quot;] by Chris Anderson 2008&lt;br /&gt;
&lt;br /&gt;
==Best Practices for PCB Layout==&lt;br /&gt;
===Theory===&lt;br /&gt;
*Provide the easiest path (lowest impedance) for current to flow&lt;br /&gt;
**Return current tends to flow directly under signal trace (for PCB having ground plane)&lt;br /&gt;
**Inductance increases with length of traces&lt;br /&gt;
**Inductance increases with the area enclosed by by signal trace and ground&lt;br /&gt;
*Prevent digital currents from contaminating analog currents&lt;br /&gt;
*Decouple high speed components&lt;br /&gt;
*Use ground loop avoidance tehniques&lt;br /&gt;
&lt;br /&gt;
===Design===&lt;br /&gt;
*Partition PCB into &amp;quot;analog stuff&amp;quot; and &amp;quot;digital stuff&amp;quot;.&lt;br /&gt;
*No digital signal traces should cross over analog ground, and vice versa &lt;br /&gt;
*For components having both analog and digital signals (e.g. ADC), orientate components so that the analog signal traces goes only over the analog ground plane, and digital signal traces goes only over the digital ground plane&lt;br /&gt;
*AGND and DGND of ADC must have a small impedance (i.e. separated by short distance)&lt;br /&gt;
*Add decoupling capacitors close to Vcc and DGND of ICs&lt;br /&gt;
*Add ferrite beads and capacitors (PI-filter) to power rail for low-pass filtering (reduce ripples).&lt;br /&gt;
&lt;br /&gt;
===Routing===&lt;br /&gt;
*Place fixed components first (components location that cannot be changed, e.g. connectors, buttons, etc)&lt;br /&gt;
* Make installing parts onto the PCB fast:&lt;br /&gt;
** Fastest: No through-hole parts. All surface-mount parts on the bottom side.&lt;br /&gt;
** Next-fastest: All through-hole parts on the top side. All surface-mount parts on the bottom side. ( [http://www.psocdeveloper.com/articles/apple-mighty-mouse-spills-its-guts/the-capacitive-touch-sense-buttons-pcb.html &amp;quot;Mighty Mouse Main Printed Circuit Board (PCB)&amp;quot;] )&lt;br /&gt;
*Separate components into groups&lt;br /&gt;
**Digital signals only&lt;br /&gt;
**Analog signals only&lt;br /&gt;
**Digital and analog (Mixed) signals&lt;br /&gt;
**High current devices (e.g. led backlight for LCD/buzzer)&lt;br /&gt;
*Do not partition ground into analog and digital planes.&lt;br /&gt;
**Use a single ground plane. See the &amp;quot;[[#References | Grounding References]]&amp;quot; below.&lt;br /&gt;
*Orientate components that have mixed signals according to the orientation of the ground planes, and straddle components over DGND and AGND&lt;br /&gt;
*Place digital only components over DGND&lt;br /&gt;
*Place analog only components over AGND&lt;br /&gt;
[[File:Pcb layout.png|thumb|800px|center|Grounding Example for PCB]]&lt;br /&gt;
*Decoupling capacitors should be as close to the ICs as possible&lt;br /&gt;
               Vcc&lt;br /&gt;
                | | | | |&lt;br /&gt;
              +-----------+&lt;br /&gt;
  -------+-+--|-+---------|-------- Vcc&lt;br /&gt;
         |C|  |    IC     |&lt;br /&gt;
  -------+-+--|---------+-|-------- GND&lt;br /&gt;
              +-----------+&lt;br /&gt;
                | | | | |&lt;br /&gt;
                        GND&lt;br /&gt;
*Lay critical (noise-sensitive) traces first (e.g. crystal, analog signals)&lt;br /&gt;
**As short as possible&lt;br /&gt;
**Use 45&amp;lt;sup&amp;gt;o&amp;lt;/sup&amp;gt; turnings instead of 90&amp;lt;sup&amp;gt;o&amp;lt;/sup&amp;gt;&lt;br /&gt;
*Paired signal traces (e.g. TX+, TX- in ethernet chips) should run parallel along each other&lt;br /&gt;
     TX+ -----\&lt;br /&gt;
     TX- ----\ \&lt;br /&gt;
              \ \&lt;br /&gt;
               \ \&lt;br /&gt;
                \ \&lt;br /&gt;
                 \ \------------ TX+&lt;br /&gt;
                  \------------- TX-&lt;br /&gt;
&lt;br /&gt;
===References===&lt;br /&gt;
*Grounding&lt;br /&gt;
**[http://www.hottconsultants.com/pdf_files/june2001pcd_mixedsignal.pdf Partitioning and Layout of a Mixed Signal PCB]: The importance of single ground plane and partitioning of analog and digital signal trace&lt;br /&gt;
** [http://techref.massmind.org/techref/noises.htm#unsplit_ground Massmind Techref: &amp;quot;Unsplit ground&amp;quot;]&lt;br /&gt;
**[http://www.hottconsultants.com/pdf_files/ground.pdf Ground- A Path For Current Flow]: The importance of decoupling capacitors&lt;br /&gt;
**[http://www.ece.msstate.edu/courses/ece4512/des1_syllabus/current/PCB_Layout_Tips.ppt PCB Layout Tips]: a power point presentation&lt;br /&gt;
**[http://pemclab.cn.nctu.edu.tw/w3news/%E6%8A%80%E8%A1%93%E5%A0%B1%E5%91%8A/TR-040.%E9%9B%BB%E8%B7%AF%E6%9D%BF%E4%BD%88%E5%B1%80%E5%8E%9F%E5%89%87/html/layout.htm PCB Layout Guidelines]: in Traditional Chinese&lt;br /&gt;
*Crystals and Oscillators&lt;br /&gt;
**[http://www.atmel.com/dyn/resources/prod_documents/doc8128.pdf AVR186]: Best Practices for the PCB layout of Oscillators&lt;br /&gt;
*ADC &amp;amp; Analog Filters&lt;br /&gt;
**[http://ww1.microchip.com/downloads/en/DeviceDoc/adn007.pdf ADN007]: Techniques that Reduce System Noise in ADC Circuits&lt;br /&gt;
**[http://ww1.microchip.com/downloads/en/DeviceDoc/ADN010.pdf ADN010]: Predict the Repeatability of your ADC to the BIT&lt;br /&gt;
**[http://ww1.microchip.com/downloads/en/AppNotes/00699b.pdf AD699]: Anti-Aliasing, Analog Filters for Data Acquisition Systems&lt;br /&gt;
**[http://ww1.microchip.com/downloads/en/AppNotes/00682c.pdf AN682]: Using Single Supply Operational Amplifiers in Embedded Systems &lt;br /&gt;
**[http://ww1.microchip.com/downloads/en/AppNotes/00990a.pdf AN990]: Analog Sensor Conditioning Circuits - An Overview&lt;br /&gt;
*EMC&lt;br /&gt;
**[http://www.atmel.com/dyn/resources/prod_documents/doc1619.pdf AVR040]: EMC Design Considerations&lt;br /&gt;
**[http://www.freescale.com/files/microcontrollers/doc/app_note/AN1705.pdf AN1705]: Noise Reduction Techniques for Microcontroller-Based Systems&lt;br /&gt;
** [http://www.st.com/stonline/books/pdf/docs/4988.pdf AN898: EMC general information]&lt;br /&gt;
** [http://www.st.com/stonline/books/pdf/docs/4967.pdf AN901: EMC guidelines for microcontroller-based applications]&lt;br /&gt;
** [http://www.st.com/stonline/books/pdf/docs/9914.pdf AN1709: EMC design guide for ST microcontrollers]&lt;br /&gt;
&lt;br /&gt;
== Circuit construction (Prototyping - Other than custom PCB) ==&lt;br /&gt;
&lt;br /&gt;
* [[Solderless protoboard]] ([http://en.wikipedia.org/wiki/Breadboard Wikipedia:Breadboard]) ([http://www.best-microcontroller-projects.com/prototyping.html a simple example with a small microcontroller])&lt;br /&gt;
* [[Point-to-point]] ([http://en.wikipedia.org/wiki/Point-to-point_construction Wikipedia:Point-to-point construction])&lt;br /&gt;
* [[Wirewrap]] ([http://en.wikipedia.org/wiki/Wire_wrap Wikipedia:Wire Wrap])&lt;br /&gt;
* [[Dead bug style]]&lt;br /&gt;
* [[Manhattan style]] aka [http://ciphersbyritter.com/RADELECT/BREADBD/BREADBD.HTM &amp;quot;A Modern Breadboarding Technology: Insulating Pads Soldered to a Ground Plane&amp;quot;]&lt;br /&gt;
&lt;br /&gt;
[http://www.techlib.com/electronics/construction.html &amp;quot;Construction Ideas&amp;quot;] has nice photographs of the above circuit construction techniques.&lt;br /&gt;
[[http://www.geofex.com/Article_Folders/protostyles/proto_styles.htm &amp;quot;Effects Building Techniques&amp;quot;] by R.G. Keen 1999 reviews, compares, and contrasts these techniques for circuit construction -- also a few more.&lt;br /&gt;
&lt;br /&gt;
* [[Stripboard]] (Veroboard): ([http://en.wikipedia.org/wiki/Stripboard Wikipedia:stripboard].)&lt;br /&gt;
&lt;br /&gt;
== Soldering techniques ==&lt;br /&gt;
&lt;br /&gt;
* [[Basic soldering]] -- How to use a soldering iron.&lt;br /&gt;
* Surface Mount&lt;br /&gt;
** [[Skillet reflow]]&lt;br /&gt;
** [[Toaster oven reflow]]&lt;br /&gt;
** [[Hot air soldering]]&lt;br /&gt;
** [http://en.wikipedia.org/wiki/User:WillWare/Homebrew_surface-mount_construction A few different SMT assembly methods] that you can do at home on a cheap budget&lt;br /&gt;
* [[Rework]] -- Techniques for fixing mistakes, or for adding new features to a board that ''almost'' does what you want.&lt;br /&gt;
** [http://workmanship.nasa.gov/lib/insp/2%20books/links/sections/302_jumper%20wires.html official NASA recommendations for adding discrete wiring (&amp;quot;jumper wires&amp;quot;) to PCBs]&lt;br /&gt;
&lt;br /&gt;
(Have you seen this [http://www.hackaday.com/2007/06/04/cnc-solder-paste-pick-n-place/ CNC solder paste/pick n place] ?)&lt;br /&gt;
&lt;br /&gt;
== [[Hardware tool]]s ==&lt;br /&gt;
A directory of [[hardware tool]]s that you may find useful.&lt;br /&gt;
&lt;br /&gt;
== [[software tool]]s ==&lt;br /&gt;
== Software design tools ==&lt;br /&gt;
&lt;br /&gt;
A directory of [[software tool]]s that you may find useful.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== [[PC-Microcontroller Communications]] ==&lt;br /&gt;
&lt;br /&gt;
Discussion of the various methods to connect a microcontroller or embedded system to a PC...&lt;br /&gt;
&lt;br /&gt;
== Embedded System Programming and Testing ==&lt;br /&gt;
To add to the confusion programming in embedded system can mean a person writing a program or a device called a programmer &amp;quot;burning&amp;quot; a program into a chip.  This section is for the &amp;quot;burning&amp;quot; meaning of programming.&lt;br /&gt;
&lt;br /&gt;
* Many systems use [[JTAG]] for programming and testing. (Such as [http://en.wikibooks.org/wiki/Atmel_AVR Atmel AVR embedded systems]]).&lt;br /&gt;
* Other systems use some other kind of in-circuit programming.&lt;br /&gt;
* Some people use [http://en.wikibooks.org/wiki/Embedded_Systems/Bootloaders_and_Bootsectors bootloaders] to make re-programming a little quicker.&lt;br /&gt;
&lt;br /&gt;
-- not sure that this next one is not misplaced ? --&lt;br /&gt;
''We're talking about &amp;quot;programming and testing&amp;quot; ? What else do you use to test op-amp circuits?''&lt;br /&gt;
&lt;br /&gt;
* Many people use an [[oscilloscope]] ([[o'scope]]). See [[oscilloscope]] for a list of  Keith has made a list of low-cost o'scopesl [http://www.techtravels.org/amiga/amigablog/?p=167 &amp;quot;PC USB logic analyzers that cost under $1000.&amp;quot;] for a list of low-cost logic analyzers.&lt;br /&gt;
&lt;br /&gt;
Humans writing a program almost always do it in a language.  Here is a section that discusses some of these languages: [[Programming Languages]]&lt;br /&gt;
&lt;br /&gt;
== Enclosure ==&lt;br /&gt;
&lt;br /&gt;
* The Earth Signal should short to whole metal Case&lt;br /&gt;
* Digital/Analog GND should separate to this Earth Signal, and should connect a Y-cap. to filter the noise between them.&lt;br /&gt;
* Attention: do not place near between Earth Signal and Digital/Analog GND, otherwise some spark come out, and affect your whole system.&lt;br /&gt;
* ''See [[enclosures]]''.&lt;br /&gt;
&lt;br /&gt;
== Misc Tips Tricks ==&lt;br /&gt;
&lt;br /&gt;
[[Misc Tips Tricks]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Further Reading ==&lt;br /&gt;
&lt;br /&gt;
* [http://airborn.com.au/method/ &amp;quot;Electronics Design&amp;quot; from Airborn] gives an overview of the complete process: specification, (schematic) circuit design, layout, prototypes, firmware, pilot run, production.&lt;br /&gt;
* EDA electronic design automation software is a subset of CAD in general. Is there a wiki that discusses CAD in general? Until I find it, I'm going to post these tools here: &amp;quot;Google SketchUp is a powerful yet easy-to-learn 3D software tool&amp;quot; http://sketchup.google.com/ ; &amp;quot;Inkscape is the best tool for SVG standard vector graphics&amp;quot; http://wiki.inkscape.org/ ; Visual Wiki http://visualwiki.org/&lt;br /&gt;
* [http://www.national.com/rap/Story/0,1562,18,00.html &amp;quot;What's All This Ground Noise Stuff, Anyhow?&amp;quot;] by Robert A. Pease&lt;br /&gt;
* [http://www.elecdesign.com/Articles/ArticleID/6150/6150.html &amp;quot;What's All This Teflon Stuff, Anyhow?&amp;quot;] by Robert A. Pease -- explains a situation using lots of metal (instead of carefully insulating everything with lots of Teflon) causes less noise. Also mentions &amp;quot;why am I telling you all of these details? If I design a tester with greatly improved performance to help me test a really high-performance product, why should I tell all our competitors so that anybody in the world can test their products using the improved tester? Why should I give away all of these hard-earned secrets?&amp;quot; and gives some very good reasons.&lt;br /&gt;
* [http://groups.google.to/group/sci.electronics.design/browse_thread/thread/889153f0e77b1718/fcaac532bb6d4b12?fwc=1 sci.electronics.design: EDN: Measuring Nanoamperes] discusses some ways to measure extremely small currents.&lt;br /&gt;
* [http://www.millpcbs.com/ MillPCBs.com for techniques on using a small cnc machine to mill PCB's]&lt;br /&gt;
* [http://groups.yahoo.com/group/Homebrew_PCBs yahoo.com/group/Homebrew_PCBs]&lt;br /&gt;
* [http://www.electricstuff.co.uk/pcbs.html electricstuff.co.uk/pcbs]&lt;br /&gt;
* [http://www.fullnet.com/~tomg/gooteepc.htm fullnet.com/~tomg/gooteepc]&lt;br /&gt;
* Dave McGuire says &amp;quot;The notion that through-hole soldering is easier than soldering surface-mount devices is, and always has been, [http://archives.seul.org/geda/user/Aug-2004/msg00175.html a myth.]&amp;quot; (Now, about keeping all the look-alike passive parts straight... :) )&lt;br /&gt;
* [http://www.instructables.com/id/Intro-into-SMD-Soldering/ Intro into SMD Soldering]&lt;br /&gt;
* [http://PMinMO.com/ PMinMO.com is THE PLACE for DIY CNC driver information]&lt;br /&gt;
&lt;br /&gt;
== Environmental Issues ==&lt;br /&gt;
&lt;br /&gt;
see [[better for the environment]].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Techniques]]&lt;/div&gt;</summary>
		<author><name>121.220.220.96</name></author>
		
	</entry>
	<entry>
		<id>http://www.opencircuits.com/index.php?title=Basic_Circuit_Building_Blocks&amp;diff=19345</id>
		<title>Basic Circuit Building Blocks</title>
		<link rel="alternate" type="text/html" href="http://www.opencircuits.com/index.php?title=Basic_Circuit_Building_Blocks&amp;diff=19345"/>
		<updated>2010-03-24T11:10:08Z</updated>

		<summary type="html">&lt;p&gt;121.220.220.96: /* Transistor High Side Switch */  resize&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;These are circuits and parts of circuits that we see over and over again in larger projects.  Understanding a complex circuit is much easier if you understand these building blocks.  &lt;br /&gt;
&lt;br /&gt;
Operational amplifier are the basis for many circuit building blocks especially in the range of DC to 1 meg Hz.  See [[OpAmp Links]].&lt;br /&gt;
&lt;br /&gt;
== Introduction and Page Status.... ==&lt;br /&gt;
( Some of schematics have been drawn in Eagle and the screen captured, use other methods if you wish.  Feel free to add your own circuits, as long as they are basic building blocks, there are lots of other places for project circuits. If you get into more advanced circuits, give them their own page and link to them.  Some entries are not complete, if the explanation of the circuit does not match the diagram that is a good tip off. )&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
To Do &lt;br /&gt;
* Why not put alpha order?&lt;br /&gt;
* work on external links&lt;br /&gt;
&lt;br /&gt;
More circuits that would be good to add&lt;br /&gt;
&lt;br /&gt;
*AC Coupling Capacitor / High Pass Filter&lt;br /&gt;
*Battery Lamp and Switch&lt;br /&gt;
*Diode Rectifier&lt;br /&gt;
&lt;br /&gt;
[http://forum.allaboutcircuits.com/showthread.php?t=32697 Current rating and full wave rectification]&lt;br /&gt;
*LM35 Temperature Sensor&lt;br /&gt;
*555 Timer astable oscillator&lt;br /&gt;
*diode for forward drop bias voltage&lt;br /&gt;
*row and collumn connection&lt;br /&gt;
*charge pump&lt;br /&gt;
*transformer&lt;br /&gt;
*voltage multiplier&lt;br /&gt;
*diode logical or&lt;br /&gt;
*RC timer&lt;br /&gt;
*diode full wave bridge&lt;br /&gt;
*H Bridge&lt;br /&gt;
&lt;br /&gt;
An H bridge is an electronic circuit that causes current to flow in one direction or the other ( from a singel ended power supply ).  Often used for motor control [[motor driver]].&lt;br /&gt;
It is an electronic double pole double throw switch.&lt;br /&gt;
[http://code.rancidbacon.com/ElectronicsElectronics] See Section on ''H-Bridge''&lt;br /&gt;
&lt;br /&gt;
*Simple Oscillator circuits&lt;br /&gt;
*Current mirrors&lt;br /&gt;
*RF Mixers&lt;br /&gt;
*Tranistor Current Mirror&lt;br /&gt;
*[[Colpitts Oscillator]]&lt;br /&gt;
&lt;br /&gt;
Links to basic circuits:&lt;br /&gt;
&lt;br /&gt;
*[http://electricalengineeringforbeginners.blogspot.com/ Donny's Learn Electrical Engineering for Beginners]&lt;br /&gt;
*[http://webpages.ursinus.edu/lriley/ref/circuits/circuits.html DC/AC Circuit Reference]&lt;br /&gt;
*[http://www.educypedia.be/electronics/analogdiode.htm Educypedia] A web site of links.  Lots of material.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!---------------------------------------------------------------------&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Amplifiers ==&lt;br /&gt;
An amplifier is any circuit which has a larger output than input, typically either larger voltage or larger current, or both.  Generally larger power out than in.  Several of the circuits here are amplifiers, but as these are only basic circuit, many types of amplifiers are omitted here.&lt;br /&gt;
&lt;br /&gt;
See the sections on:  Op amp Non Inverting Amplifier, Op amp Unity Gain Buffer ....&lt;br /&gt;
&lt;br /&gt;
[http://www.amplifiersite.com/ AmplifierSite.com]&lt;br /&gt;
&lt;br /&gt;
== Current Sense Resistor ( Shunt Resistance ) ==&lt;br /&gt;
&lt;br /&gt;
A current Sense Resistor is a low value of resistor that is placed in parallel with some other circuit.  We can then measure the voltage across the resistor to compute the current.  If the resistor has a low value compared to other components we can ignore the effect on the circuit.  We use the word shunt when the voltage is measured by a device that has a fairly low resistance itself.  We then have to do a more careful calculation of how the current is shared by the two devices.&lt;br /&gt;
&lt;br /&gt;
Circuit:&lt;br /&gt;
[[Image:shunt.png | Shunt Resistance ]]&lt;br /&gt;
&lt;br /&gt;
Where&lt;br /&gt;
*R	shunt resistor used to sense the current  ( and divert it from the meter ).  Usually much less in value than the internal resistance of the meter.&lt;br /&gt;
*METER  meter or other device used to measure the voltage across the shunt reistor.  Often the resistance of the meter is ignored ( if high ).&lt;br /&gt;
*BATTERY  a battery or other voltage source.&lt;br /&gt;
&lt;br /&gt;
Discussion:&lt;br /&gt;
&lt;br /&gt;
In the old days a sensitive meter, say 50 mv full scale, would be used with a set of shunt, some looking like metal bars, to measure a wide range of currents, up to and exceeding 50 amps.&lt;br /&gt;
&lt;br /&gt;
There are many inaccuracies in this entry. A current sense resistor must go in series in order to carry the same current as the load. Putting the resistor in series guarantees that it will carry the same current as the load because of Kirchoff Current Law (KCL).  The current in the current sense resistor can then be determined from the voltage across it by Ohm's Law, and this will be the same as the current in the load. The technique described in this entry would only work if the the impedance of the network which the sense resistor was connected across was precisely known. However if the impedance of the network is known, there is no need for a current sense resistor as Ohms Law could give the current directly. Finally, the schematic omits a load and the symbol for the battery is upside down (assuming the author intended ground to be the lowest node on the schematic and voltages to be positive). -LPM&lt;br /&gt;
&lt;br /&gt;
More information:   &lt;br /&gt;
#[http://www.scienceshareware.com/bg-current-monitoring.htm  Scienceshareware.com's How A Precision Resistor Is Used to Measure / Calculate Current and Power in an Electrical Circuit.]&lt;br /&gt;
#[http://www.maxim-ic.com/appnotes.cfm/appnote_number/746/ High-Side Current-Sense Measurement: Circuits and Principles]&lt;br /&gt;
#[http://en.wikipedia.org/wiki/Shunt_(electrical) Shunt (electrical) From Wikipedia, the free encyclopedia]&lt;br /&gt;
* Other ways to measure current: [[Motor_driver#current_sense]]&lt;br /&gt;
&lt;br /&gt;
== Current Limit or Constant Current ( Transistor Based ) ==&lt;br /&gt;
&lt;br /&gt;
This is a modification of the emitter follower to limit the current output.  So if your output stage is an emitter follower you can add current limiting to it.  Or given enough input drive, say from a voltage divider it will act as a constant current source.&lt;br /&gt;
&lt;br /&gt;
Circuit:&lt;br /&gt;
[[Image:cc_limit.png |thumb|450px| Current Limit or Constant Current ]]&lt;br /&gt;
&lt;br /&gt;
Where&lt;br /&gt;
*R1  base resistor to limit base current to transistor Q1.&lt;br /&gt;
*R2  current sense resistor used to sense the current and turn on transistor Q2.&lt;br /&gt;
*Q1  main transistor supplying the load current.&lt;br /&gt;
*Q2  current limiting transistor.&lt;br /&gt;
&lt;br /&gt;
Discussion:&lt;br /&gt;
&lt;br /&gt;
The idea here is that R2 is a current sense reistor.  When the sense voltage across R2 reaches about .7 ( for silicon transistors ) Q2 begins to conduct and diverts the base drive from Q1 cutting its output current.  So the max. current from the circuit is reached when I*R2 = .7.  This circuit can be used to protect amplifiers ( including push pull amps. ), power supplies and other circuits; or it can be used as a constant current circuit.  It is not a precision circuit, but it is cheap, simple, and effective circuit.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
More information:   &lt;br /&gt;
#[http://freecircuitdiagram.com/2008/08/27/variable-adjustable-current-limiter-circuit/ Variable (Adjustable) Current Limiter Circuit ]  This is a bit more complicated version using a transistor to drive a darlington transistor, with the limit being adjustable.&lt;br /&gt;
#[http://forum.allaboutcircuits.com/showthread.php?t=32709 Current Source for Resistance Measurement]&lt;br /&gt;
#[http://docs.google.com/gview?a=v&amp;amp;q=cache%3Axoux8Ax7B_UJ%3Awww.powerampdesign.net%2Fimages%2FAN-12_The_Problem_with_Current_Limit.pdf+amplifier+current+limit&amp;amp;hl=en&amp;amp;gl=us&amp;amp;pli=1 The Problem with Current Limit] Discusses this circuit as applied to a power amplifier.&lt;br /&gt;
#[http://www.instructables.com/id/Constant-current-LED-Tester/ Constant current LED-Tester] Simple application of the circuit as an LED tester.&lt;br /&gt;
&lt;br /&gt;
== Filter Capacitor / Decoupling Capacitor / Low Pass Filter ==&lt;br /&gt;
Circuit:&lt;br /&gt;
[[Image:filtercap.png | Filter Capacitor ]]&lt;br /&gt;
&lt;br /&gt;
Where&lt;br /&gt;
*D2	is a diode, it lets current pass only in the direction of the arrow.&lt;br /&gt;
*R	resistor &lt;br /&gt;
*Input  a source of alternating current ( occasionally DC in which case the whole circuit serves only to protect against a reverse connection.&lt;br /&gt;
C1      the first, main, filter capacitor.&lt;br /&gt;
C2      the second filter capacitor.&lt;br /&gt;
&lt;br /&gt;
Discussion:&lt;br /&gt;
In this circuit C1 is a classic filter capacitor it charges while the diode conducts, it discharges and supplies current when the diode does not.  R and C2 are a second stage filter.  With R set to 0, it simply adds to the value of C1.  With R in the circuit it forms a low pass filter which helps remove the ripple from the power ( at the cost of some voltage drop ).  In the old days R would often be a low value inductor which had a similar effect without the voltage drop.  A capacitor alone is often put across a circuit component that uses power to supply bursts of current and stop noise from being propagated through the power supply.&lt;br /&gt;
&lt;br /&gt;
The amount of ripple in a simple circuit like this can be determined from the supply frequency voltage, output current, and the capacitance.  The amount of time without any input voltage is 1/2f.  Given an output current I, the charge transferred is is I/2f.  The voltage sag is then just the charge divided by the capacitance, or I/2fC.   An inductor added to this circuit will compensate for voltage sag by inducing a voltage if the current starts to drop.&lt;br /&gt;
&lt;br /&gt;
More Information:&lt;br /&gt;
&amp;lt;!---------------------------------------------------------------------&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Light Emitting Diode ( with current limiting resistor ) ==&lt;br /&gt;
&lt;br /&gt;
Use this circuit to light low power LEDs&lt;br /&gt;
&lt;br /&gt;
A light emitting diode can be very sensitive to small voltage changes, just a bit too much voltage and the LED will draw too much current and “burn out”.  Thus it is often used with a resistor in series.  If we have a 5 volt source of voltage and an LED that is specified for 2.5 volts at 10 ma, then the resistor must have ( 5 – 2.5 ) volts = 2.5 volts and 10 ma.  Using ohms law  2.5/10 x 10 ee-3 = 250 ohms.&lt;br /&gt;
&lt;br /&gt;
A transistor low or high side switch can be used with the resistor if your input cannot supply enough current for the LED.&lt;br /&gt;
&lt;br /&gt;
Circuit:&lt;br /&gt;
[[Image:ledres.jpg | LED and current limiting resistor ]]&lt;br /&gt;
&lt;br /&gt;
Where&lt;br /&gt;
*LED	the LED&lt;br /&gt;
*R_LED  the current limiting resistor&lt;br /&gt;
*INPUT	voltage source for lighting the LED&lt;br /&gt;
&lt;br /&gt;
More information:   &lt;br /&gt;
*[http://www.seattlerobotics.org/encoder/mar97/basics.html  Very Basic Circuits ] &lt;br /&gt;
*[http://www.iguanalabs.com/1stled.htm Learning About Transistors and LEDs ]&lt;br /&gt;
*[http://quantsuff.com/index.htm WELCOME TO QUANTSUFF'S CIRCUIT PAGE. Low Voltage, high-efficiency Drivers for LED Lights ]&lt;br /&gt;
*[http://www.dnatechindia.com/index.php/Tutorials/8051-Tutorial/LED-Interfacing.html Interfacing LED to 8051 Microcontroller]&lt;br /&gt;
*[http://www.evilmadscientist.com/article.php/throw Some thoughts on throwies] interesting notes on the resistor normally used with an LED.&lt;br /&gt;
&lt;br /&gt;
== Op amp Non Inverting Amplifier ==&lt;br /&gt;
Use this circuit where the signal you have is not as large as you want, or cannot provide enough current.  It is called non inverting because a positive input produces a positive output ( An inverting amplifier produces a negative output when given a positive input ).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Circuit:&lt;br /&gt;
[[Image:opamp_nia.png | Op amp Non Inverting Amplifier ]]&lt;br /&gt;
&lt;br /&gt;
Where&lt;br /&gt;
*R1	resistor 1 or any other 2 terminal component, capacitor, inductor, diode....&lt;br /&gt;
*R2	resistor 2 or any other 2 terminal component.....&lt;br /&gt;
OPAMPA  Any general purpose op amp, often connected to + and - power supplies&lt;br /&gt;
&lt;br /&gt;
Discussion:&lt;br /&gt;
Gain is = ( R1/R2 ) + 1 &lt;br /&gt;
&lt;br /&gt;
More Information:&lt;br /&gt;
*[[OpAmp Links]]&lt;br /&gt;
&amp;lt;!---------------------------------------------------------------------&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Op amp Unity Gain Buffer ==&lt;br /&gt;
&lt;br /&gt;
Use this circuit when you have a signal of high impedance ( can supply only a little current ) that you want to connect to another circuit that draws a significant current ( up to about 10 ma for the typical op amp. ).  For example if you wish to measure the output of a voltage divider with a 0 to 1 ma meter a unity gain buffer might be just what you need.  This circuit is also know as a voltage follower.&lt;br /&gt;
&lt;br /&gt;
The unity gain buffer has an output voltage just the same as the input voltage.  The advantage is that the input circuit does not “feel” the output.  That is the input acts pretty much like a very large resistor ( many mega ohms or more ) connected to ground, and the output supply's whatever current ( up to about 10 ma ) is necessary to maintain the output voltage.  Here is the circuit:&lt;br /&gt;
&lt;br /&gt;
Circuit:&lt;br /&gt;
&lt;br /&gt;
[[Image:opamp_ugb.png | Op Amp Unity Gain Buffer ]]&lt;br /&gt;
&lt;br /&gt;
Where&lt;br /&gt;
*INPUT		the input signal you wish to buffer&lt;br /&gt;
*RIN		the input resistor, often 0 ohms.&lt;br /&gt;
*OPAMPA  Any general purpose op amp, often connected to + and - power supplies&lt;br /&gt;
*RFB   	the feed back resistor &lt;br /&gt;
*OUTPUT	the output&lt;br /&gt;
&lt;br /&gt;
Discussion:&lt;br /&gt;
The values of RIN and RFB are not very critical and are normally 0 ohms, just a straight connection.  The op amp here is a quad or 4 op amp part, we are using just one section of it.  Power needs to be supplied to pin 8 and 4 in the usual way for op amps.&lt;br /&gt;
&lt;br /&gt;
More information:  &lt;br /&gt;
*[[OpAmp Links]]&lt;br /&gt;
*[http://en.wikipedia.org/wiki/Buffer_amplifier Buffer amplifier From Wikipedia, the free encyclopedia]&lt;br /&gt;
*[http://www.bcae1.com/opamp.htm Operational Amplifiers]&lt;br /&gt;
*[http://www.eecs.tufts.edu/~dsculley/tutorial/opamps/opamps5.html Op-Amp Buffer]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!---------------------------------------------------------------------&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Parallel Circuit ==&lt;br /&gt;
In a parallel circuit the current divides and some flows through each component .  The key to these circuits is that the voltage is the same in every element of the circuit and the total of the current through each of the components adds up to the total current from the battery.  When you use a current meter it is always placed in series with the part of the circuit where you wish to measure the current.&lt;br /&gt;
&lt;br /&gt;
Circuit:&lt;br /&gt;
[[Image:parallel.png | Parallel Circuit ]]&lt;br /&gt;
&lt;br /&gt;
Where&lt;br /&gt;
*R1	resistor 1 or any other 2 terminal component, capacitor, inductor, diode....&lt;br /&gt;
*R2	resistor 2 or any other 2 terminal component.....&lt;br /&gt;
*BATTERY  a battery or other voltage source&lt;br /&gt;
&lt;br /&gt;
Discussion:&lt;br /&gt;
&lt;br /&gt;
I you have a lot of components that use the same voltage put them in parallel.  This is how most lights in a house are wired.  Each individual light can be turned on and off without changing the current or voltage in the other lights.  With a bit of math you can show that the two resistors act like one resistor of value R = R1 + R2 /( R1 * R2 ).  When you need a resistor of a different value than you have you can sometimes “make it up” using a parallel connection of resistors you do have.  Two identical resistors in parallel are equivalent to one of half the resistance.  A parallel circuit can have more than 2 resistors, there can be 3, 4, ... You can find out more about parallel circuits in the references.  This circuit should be contrasted with the Series Circuit.  Parallel circuits can also be used with other components, the equations vary, for capicators the capacitances add in a parallel circuit.&lt;br /&gt;
&lt;br /&gt;
More information:   &lt;br /&gt;
* [http://en.wikipedia.org/wiki/Parallel_circuit Series and parallel circuits From Wikipedia, the free encyclopedia]&lt;br /&gt;
&amp;lt;!---------------------------------------------------------------------&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Pull Up and Switch ==&lt;br /&gt;
&lt;br /&gt;
Use this circuit when you want to feed a user input to a digital circuit, for example a PIC input pin.&lt;br /&gt;
&lt;br /&gt;
A pull up is a fairly high value resistor (say 1 to 100 K ohms) that is connected to the positive side of the power supply.  This makes the other end of the resistor the same voltage as the power supply (as long as it is connected to a high impedance).  The other end of the resistor is connected to a switch that is then connected to ground.  When the switch is connected current flow through the resistor drops the entire power supply voltage and the input voltage for the circuit is now 0 (sometimes called active low, since when the switch is active the output is low).  Note that a pull up ( just the resistor to V+ ) might be considered a basic circuit by itself.  Pull up is sometimes used without the switch to keep a signal high all the time.  It can also be connected to any other circuit or component that has ( sometimes ) a much lower impedance than the pull up and can thus force the voltage low.&lt;br /&gt;
&lt;br /&gt;
Circuit:&lt;br /&gt;
&lt;br /&gt;
[[Image:pus.png | Pull Up and Switch ]]&lt;br /&gt;
&lt;br /&gt;
Where&lt;br /&gt;
*PUSH_BUTTON_SWITCH		is a push button switch&lt;br /&gt;
*R_PULLUP	is the pull up resistor &lt;br /&gt;
*VPLUS_VDD   	is the power supply voltage&lt;br /&gt;
&lt;br /&gt;
More information:   &lt;br /&gt;
*[http://www.seattlerobotics.org/encoder/mar97/basics.html  Very Basic Circuits]&lt;br /&gt;
*[http://www.dnatechindia.com/index.php/Tutorials/8051-Tutorial/Switch-Interfacing.html Interfacing Switch to Microcontroller]&lt;br /&gt;
&lt;br /&gt;
Debouncing Discussion:&lt;br /&gt;
&lt;br /&gt;
We have two groups of solution: Hardware Debouncing Circuit and Software Debouncing Driver&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Hardware Debouncing Circuit:&lt;br /&gt;
&lt;br /&gt;
[[Image:Pus_debouncing.PNG | Pull Up and Switch with debouncing ]]&lt;br /&gt;
with [http://chungyan5.no-ip.org/open_data/electronic_computer/ui/key_with_debouncing geda circuit], and [http://chungyan5.no-ip.org/open_data/electronic_computer/eda/geda/libs symbols]&lt;br /&gt;
*Advantage - Do not occupy the CPU processing power for debouncing, lets CPU to handle more other application task(s)&lt;br /&gt;
*Disadvantage - we need to implement the above hardware circuit inside the project&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Software Debouncing Driver:&lt;br /&gt;
*Advantage - Saving cost &amp;amp; space for nothing debouncing circuit&lt;br /&gt;
*Disadvantage - Utilize CPU processing power for debouncing, less time for CPU to handle other application process&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===ToDo===&lt;br /&gt;
*Software Debouncing Driver&lt;br /&gt;
**compile time parameters:&lt;br /&gt;
***time delay between each sample&lt;br /&gt;
***no. of sample - until all samples &lt;br /&gt;
**different type of switches, may be have different above compile time parameters&lt;br /&gt;
**API to OS or GUI&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!---------------------------------------------------------------------&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Pull Down and Switch ==&lt;br /&gt;
Use this circuit when you want to feed a user input to a digital circuit, for example a PIC input pin. ( like the Pull Up and Switch )&lt;br /&gt;
&lt;br /&gt;
Essentially a Pull Up and Switch &amp;quot;upside down&amp;quot;.  A pull down is a fairly high value resistor (say 1 to 100 K ohms) that is connected to the ground side of the power supply.  This makes the other end of the resistor ground as well. (as long as it is connected to a high impedance).  The other end of the resistor is connected to a switch that is then connected to positive side of the power supply.  When the switch is connected current flow through the resistor raises the voltage to the digital circuit to entire power supply voltage the input is now 1 (sometimes called active high, since when the switch is active the output is high ).  Pull down is sometimes used without the switch to keep a signal low all the time.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Circuit:&lt;br /&gt;
[[Image:pds.png | Pull Down and Switch ]]&lt;br /&gt;
&lt;br /&gt;
Where&lt;br /&gt;
*R_PULLDOWN	resistor which normally keeps the output low ( ground ).&lt;br /&gt;
*PUSH_BUTTON_SWITCH	switch to make the output high&lt;br /&gt;
*VPLUS_VDD  a battery or other voltage source&lt;br /&gt;
&lt;br /&gt;
Discussion:&lt;br /&gt;
Just a variation on the Pull Up and Switch.&lt;br /&gt;
&amp;lt;!---------------------------------------------------------------------&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Relay with Diode Snubber ==&lt;br /&gt;
&lt;br /&gt;
Sometimes you will want to switch an external device on and off with a device that can only source a small amount of current (a microcontroller for example). For this you will need a relay. A relay is a mechanical device with a electromagnetic coil and a metal switch. When the coil is energized, the metal switch will move, completing the circuit. &lt;br /&gt;
&lt;br /&gt;
An inductive element, like the relay coil, is likely to generate an undesired voltage when the current is suddenly stopped. Use a diode (snubber) to dissipate the extra voltage. &lt;br /&gt;
&lt;br /&gt;
The diode is connected in reverse from the normal voltage across the inductor, when the voltage is removed the collapsing field can continue to drive current through the diode without generating a high voltage.&lt;br /&gt;
&lt;br /&gt;
Circuit:&lt;br /&gt;
[[Image:diodesnubber.png | Diode snubbber  ]]&lt;br /&gt;
&lt;br /&gt;
Discussion:&lt;br /&gt;
&lt;br /&gt;
We are assuming in this circuit that the input does not have enough output to drive the relay directly so we are using a transistor low side switch to increase the drive { see '''Low Side Switch''' on this page ). In the circuit shown, the &amp;quot;input&amp;quot; will come directly from the small current source device (microcontroller output pin). The resistor must be sized correctly, along with the NPN transistor DC current gain, to ensure sufficient current passes through the relay coil to activate it. &lt;br /&gt;
&lt;br /&gt;
Other inductors that might use a diode snubber are transformers, solenoids, dc motors, and of course straight ahead inductors.&lt;br /&gt;
&lt;br /&gt;
More information:  &lt;br /&gt;
&lt;br /&gt;
*[[Relays]] &lt;br /&gt;
*[http://en.wikipedia.org/wiki/snubber &amp;quot;snubber&amp;quot; from Wikipedia, the free encyclopedia]&lt;br /&gt;
*[http://en.wikipedia.org/wiki/flyback_diode &amp;quot;flyback diode&amp;quot; from Wikipedia, the free encyclopedia]&lt;br /&gt;
*[http://en.wikipedia.org/wiki/Relay &amp;quot;relay&amp;quot; from Wikipedia, the free encyclopedia]&lt;br /&gt;
*[http://www.dnatechindia.com/index.php/Tutorials/8051-Tutorial/Relay-Interfacing.html Microcontroller] relay interfacing example.&lt;br /&gt;
&lt;br /&gt;
== Three Terminal Regulator ==&lt;br /&gt;
&lt;br /&gt;
Use when you need a regulated voltage and or short circuit protection.&lt;br /&gt;
&lt;br /&gt;
Most circuits run better if the primary power source is a constant fixed voltage.  A battery is only a poor approximation to this.  Taking a battery or other voltage source ( like a wall wart plug in transformer ) and running it through a voltage regulator transforms it into a good fixed source of voltage.  It also generally adds current limiting as short circuit protection. The 7805 is a very common 5 volt regulator. &lt;br /&gt;
&lt;br /&gt;
Circuit:&lt;br /&gt;
[[Image:ttr.png | Three Terminal Regulator  ]]&lt;br /&gt;
&lt;br /&gt;
Discussion:&lt;br /&gt;
&lt;br /&gt;
The circuit above is very basic.  Practical circuits normally include filter capacitors on both the input and the output.  Most regulators protect against both over temperature and over current.  Regulators come in various voltages both positive and negative.  They also vary in maximum current output. There are also adjustable regulators, ways of using regular regulators as adjustable ones, and ways of boosting the current output.  The spec sheets often describe how to do these things.  Voltage regulators “use up” a couple of volts of the input voltage, low drop out regulators have use less, cost more.  It is a good idea to check the specification for any regulator you are going to use.  The LM78xx ( positive ) and LM79xx ( negative ) are quite common.&lt;br /&gt;
&lt;br /&gt;
More information:  &lt;br /&gt;
*[[Basic Voltage Regulators]] &lt;br /&gt;
*[http://en.wikipedia.org/wiki/7805 7805 From Wikipedia, the free encyclopedia]&lt;br /&gt;
*[http://www.tkk.fi/Misc/Electronics/circuits/psu_5v.html Simple 5V power supply for digital circuits]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Transistor Low Side Switch ==&lt;br /&gt;
&lt;br /&gt;
Use this circuit when you wish to turn a load on and off with both a low voltage and a low current.  Note that neither side of the load is grounded.&lt;br /&gt;
&lt;br /&gt;
A low side switch is one which switches a circuit on and off at the ground or low side of the circuit.  The advantage of a low side switch is that when using a transistor as the switch the voltage to drive the transistor is itself a low voltage.  It is often the easy way to drive LEDS, motors, and other high current devices from such low power devices as PIC output ports.  Low side switches are popular and there are many integrated circuits for them as well as this circuit.&lt;br /&gt;
&lt;br /&gt;
Circuit:&lt;br /&gt;
&lt;br /&gt;
[[Image:Tran_lss.jpg | Transistor Low Side Switch ]]&lt;br /&gt;
&lt;br /&gt;
Where&lt;br /&gt;
*LED		is a low power LED&lt;br /&gt;
*R_LED		is a current limiting resistor for the LED&lt;br /&gt;
*Q			is a bipolar transistor &lt;br /&gt;
*R_1		is a current limiting resistor transistor base current&lt;br /&gt;
*VPLUS_VDD   is the power supply for the LED&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Discussion:&lt;br /&gt;
The voltage at the collector of the circuit should fall to a fraction of a volt when the input is high.  To acomplish this:&lt;br /&gt;
&lt;br /&gt;
*Compute the value of R_LED using ohms law and the specifications for the LED.&lt;br /&gt;
*Compute the current through the LED.&lt;br /&gt;
*The transistor must sink the current, it should be equal approximately to the input voltage divided by R1 times the beta of the transistor.&lt;br /&gt;
&lt;br /&gt;
An example calculation would be nice, and will appear later.&lt;br /&gt;
&lt;br /&gt;
This circuit is sometimes called &amp;quot;grounded-emitter configuration&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
More Information:&lt;br /&gt;
*[http://en.wikipedia.org/wiki/Transistor#Switches Transistor From Wikipedia, the free encyclopedia]&lt;br /&gt;
&lt;br /&gt;
== Transistor High Side Switch ==&lt;br /&gt;
&lt;br /&gt;
Use this circuit when you wish to turn a load on and off with a voltage at a low current.  Note that low  side of the load is grounded.  The voltage to turn on the switch is equal to the supply voltage ( or perhaps just a bit larger )&lt;br /&gt;
&lt;br /&gt;
A high side switch is one which switches a circuit on and off at the supply voltage or high side of the circuit.  The advantage of a high side switch is that the load is grounded on one side.  Compared to the low side switch it needs a higher voltage to drive it, but it also eliminates one resistor of that circuit.  It the voltage to drive it is available it may be the circuit of choice.  It is often the easy way to drive leds motors and other high current devices from such low power devices as PIC output ports. &lt;br /&gt;
&lt;br /&gt;
Circuit:&lt;br /&gt;
&lt;br /&gt;
[[Image:tran_hss.png |thumb|450px| Transistor High Side Switch ]]&lt;br /&gt;
&lt;br /&gt;
Where&lt;br /&gt;
*LED		is a low power LED&lt;br /&gt;
*R_LED		is a current limiting resistor for the LED&lt;br /&gt;
*Q		is a bipolar transistor &lt;br /&gt;
*VPLUS_VDD   is the power supply for the LED&lt;br /&gt;
&lt;br /&gt;
The voltage at the collector of the circuit should fall to a fraction of a volt when the input is high.  To compute the values in the circuit:&lt;br /&gt;
&lt;br /&gt;
*Compute the value of R_LED using ohms law and the specifications for the LED.&lt;br /&gt;
*The current to drive the circuit is approximately the current to drive the load divided by the beta of the transistor.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
No resistor is needed into the base of the transistor because as the load draws current the voltage at the base will rise and limit the base current.  The input voltage should be about equal to VPLUS_VDD, high compared to that needed for the low side switch.&lt;br /&gt;
&lt;br /&gt;
This high side switch usually requires the base voltage of Q to be VPLUS_VDD plus the turn-on voltage of the transistor to turn all the way on. Another approach to the high side switch that requires a lower turn-on voltage is to use a PNP transistor as the switch. The base of the PNP is pulled up to VPLUS_VDD and connected to the collector of a small signal NPN transistor, Q2. Q2's emitter is connected to ground and its base is connected to the input signal through a current limiting resistor.&lt;br /&gt;
&lt;br /&gt;
== Transistor Emitter Follower ==&lt;br /&gt;
&lt;br /&gt;
Use this circuit when you have a signal of high impedance ( can supply only a little current ) that you want to connect to another circuit that draws a significant current.  The circuit has no voltage gain, but because of the current gain it has a lot of power gain.  It is frequently used in the final stage of an amplifier.  &lt;br /&gt;
&lt;br /&gt;
This circuit is a variation of the transistor high side switch.  The difference is that we typically drive this circuit in a linear way ( all of the voltages between 0 and the supply voltage ) to make it a linear amplifier.&lt;br /&gt;
&lt;br /&gt;
The emitter follower is also called a common collector circuit.  The Emitter Follower is basically a high side switch, but when we call it an emitter follower we normally think of it as a linear ( analog ) amplifier, rather than as a switch.&lt;br /&gt;
&lt;br /&gt;
Circuit:&lt;br /&gt;
&lt;br /&gt;
[[Image:tef.png | Transistor Emitter Follower ]]&lt;br /&gt;
&lt;br /&gt;
Where&lt;br /&gt;
*R_LOAD		represents the resistance of the load&lt;br /&gt;
*Q		is a npn bipolar transistor &lt;br /&gt;
*VPLUS_VDD   is the power supply for the LED&lt;br /&gt;
&lt;br /&gt;
The current to drive the circuit is approximately the current to drive the load divided by the beta of the transistor.  Use a Darlington connected transistor for a very high beta.&lt;br /&gt;
&lt;br /&gt;
No resistor is needed into the base of the transistor because as the load draws current the voltage at the base will rise and limit the base current.  &lt;br /&gt;
&lt;br /&gt;
This circuit will only amplify positive voltages, using a pnp transistor you can amplify only negative voltages.  Combine the two ( see push pull amplifier ) you can amplify both positive and negative voltages.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Variation of the circuit include: &lt;br /&gt;
&lt;br /&gt;
*Use of coupling capacitors to amplify ac signals.&lt;br /&gt;
*Various other components to bias the transistor.&lt;br /&gt;
*Use an op amp buffer with voltage gain at the input, then the emitter follower for high current. In this way a few Milli volts with current on the order of pico amps can drive an output of several volts at an ampere or more. &lt;br /&gt;
&lt;br /&gt;
More information: &lt;br /&gt;
&lt;br /&gt;
*[http://www.mines.edu/Academic/courses/physics/phgn217/lab4/lect7/sld013.htm  Emitter Follower]&lt;br /&gt;
&lt;br /&gt;
*[http://en.wikipedia.org/wiki/Common_collector Common collector From Wikipedia, the free encyclopedia]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Transistor -- Push Pull Circuit ==&lt;br /&gt;
&lt;br /&gt;
Use when you need current gain and need both positive and negative output.&lt;br /&gt;
&lt;br /&gt;
A modification of the “transistor emitter follower” that can give both positive and negative outputs.  Based on two transistors one npn the other pnp: one pushes the other pulls.&lt;br /&gt;
&lt;br /&gt;
Circuit:&lt;br /&gt;
[[Image:pptrans.png | Push Pull Transistor Circuit]]&lt;br /&gt;
&lt;br /&gt;
Where&lt;br /&gt;
*Q1	transistor 1 need not be a TIP41C but does need to be NPN&lt;br /&gt;
*Q2	transistor 2 need not be a TIP42C but does need to be PNP&lt;br /&gt;
*R_LOAD	represents the load, here it is in the emitter, it could also be placed in the collector circuit&lt;br /&gt;
*VPLUS_VDD Power supply voltage, positive.&lt;br /&gt;
*VMINUS Power supply voltage, negative.&lt;br /&gt;
&lt;br /&gt;
Discussion:&lt;br /&gt;
Often there are other components for transistor bias or other purposes.  The circuit here is really basic.  The common transistors used are so called complementary pairs, similar characteristics but one npn and the other pnp.  Note that we need both positive and negative power supplies. You can also put the push pull circuit inside the feedback loop of an op amp to get a high current op amplifier.  Push pull amplifies can also be made with other types of transistors, tubes, or other components.&lt;br /&gt;
&lt;br /&gt;
More information:   &lt;br /&gt;
*[http://www.ecircuitcenter.com/Circuits/pushpull/pushpull.htm Push-Pull Output Stage]&lt;br /&gt;
*[http://www.allaboutcircuits.com/vol_6/chpt_6/10.html Class B audio amplifier]&lt;br /&gt;
*[http://en.wikipedia.org/wiki/Electronic_amplifier     Electronic amplifier From Wikipedia, the free encyclopedia (search on Class B and AB )]&lt;br /&gt;
&lt;br /&gt;
== Transistors -- Darlington connected ==&lt;br /&gt;
&lt;br /&gt;
Use a Darlington transistor connection when you want really high current gain.  Gain of 1000 is easily in reach.  That is 1 ma to 1 amp &lt;br /&gt;
This is a useful connection of 2 transistors that together form a transistor of much larger gain.  You can also buy Darlington transistors all packaged in a single case with just 3 connections exposed to the outside.&lt;br /&gt;
&lt;br /&gt;
Circuit:&lt;br /&gt;
[[Image:dtrans.png | Darlington Transistor Connection  ]]&lt;br /&gt;
&lt;br /&gt;
Where&lt;br /&gt;
*Q1	transistor 1 need not be a 2N3565 but does need to be NPN&lt;br /&gt;
*Q2	transistor 2 need not be a 2N3565 but does need to be NPN&lt;br /&gt;
*R_LOAD	represents the load, here it is in the emitter, it could also be placed in the collector circuit&lt;br /&gt;
*VPLUS_VDD Power supply voltage, positive.&lt;br /&gt;
&lt;br /&gt;
Discussion:&lt;br /&gt;
&lt;br /&gt;
Often Q1 is a high gain small signal transistor and Q2 a lower gain power transistor.  You can use PNP transistors by using a negative power supply. Use a ULN2803 ( or similar chips ) to get 8 darlingtons in one package, useful as low side switches and in conjunction with microcontrollers. &lt;br /&gt;
* The above diagram shows a high side switch, but other transistor configurations can also be used. &lt;br /&gt;
* PNP transistors can also be used, the important point is that both transistors be of the same type.&lt;br /&gt;
&lt;br /&gt;
More information:   &lt;br /&gt;
*[http://en.wikipedia.org/wiki/Darlington_transistor  Darlington transistor From Wikipedia, the free encyclopedia]&lt;br /&gt;
*[http://www.kpsec.freeuk.com/trancirc.htm  Transistor Circuits ( search on Darlington )]&lt;br /&gt;
*[http://www.ibiblio.org/kuphaldt/electricCircuits/Semi/SEMI_4.html Lessons In Electric Circuits -- Volume III Chapter 4 BIPOLAR JUNCTION  TRANSISTORS Darlington pair ( search on Darlington )]&lt;br /&gt;
&lt;br /&gt;
== Transistors -- Sziklai pair ==&lt;br /&gt;
&lt;br /&gt;
Similiar in use to a Darlington transistor connection when you want really high current gain.  Gain of 1000 is easily in reach.  That is 1 ma to 1 amp   This is a useful connection of 2 transistors that together form a transistor of much larger gain.  Unlike a Darlington the transistors are of opposite types.  The circuit also has some other differences in detail, see the refrences.&lt;br /&gt;
&lt;br /&gt;
Circuit:&lt;br /&gt;
[[Image:sptrans.png | Sziklai pair  ]]&lt;br /&gt;
&lt;br /&gt;
Where&lt;br /&gt;
*Q1	transistor 1 need not be a xxx but does need to be NPN&lt;br /&gt;
*Q2	transistor 2 need not be a xxx but does need to be PNP&lt;br /&gt;
*R_LOAD	represents the load, here it is in the emitter, it could also be placed in the collector circuit&lt;br /&gt;
*VPLUS_VDD Power supply voltage, positive.&lt;br /&gt;
&lt;br /&gt;
Discussion:&lt;br /&gt;
&lt;br /&gt;
Often Q1 is a high gain small signal transistor and Q2 a lower gain power transistor.  You can use PNP transistors by using a negative power &lt;br /&gt;
&lt;br /&gt;
More information:   &lt;br /&gt;
*[http://en.wikipedia.org/wiki/Sziklai_pair Sziklai pair From Wikipedia, the free encyclopedia]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== RC Filter ==&lt;br /&gt;
&lt;br /&gt;
The most basic filters are the RC-High Pass and RC-Low Pass filters.  The high pass filter removes DC and low frequencies and the low pass removes high frequencies.  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''High Pass''' [[Image:rchighpass.png | RC High Pass Filter]]&lt;br /&gt;
'''Low Pass''' [[Image:rclowpass.png | RC Low Pass Filter]]&lt;br /&gt;
&lt;br /&gt;
Both circuits have the same 3dB frequency or the frequency at which the power of the signal is aproximately halved.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
f_\mathrm{c} = {1 \over 2 \pi \tau } = {1 \over 2 \pi R C}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The way to remember the two circuits is to think about how the capacitor acts at various signal frequencies.  At high frequencies capacitors act like wires.  At low frequencies capacitors act like disconnections.&lt;br /&gt;
&lt;br /&gt;
An important use of low pass filters is for the anti-aliasing circuity on the input of an A/D converter or the output of a D/A converter. An important use of a high pass filter is to remove the DC offset of a signal.  For example, it's possible to use a power supply that is +5 to GND to generate a sin from a D/A converter and use a high pass filter to change the sin to a +2.5 to -2.5 signal at the output.&lt;br /&gt;
&lt;br /&gt;
More information:&lt;br /&gt;
*[http://en.wikipedia.org/wiki/Low-pass_filter Low Pass Filter]&lt;br /&gt;
*[http://en.wikipedia.org/wiki/High-pass_filter High Pass Filter]&lt;br /&gt;
*[http://www.tonnesoftware.com/elsie.html The Windows ® program for electrical filter design and network analysis]&lt;br /&gt;
&lt;br /&gt;
== Series Circuit ==&lt;br /&gt;
&lt;br /&gt;
In a series circuit the current first flows through one component then another and so on.  The key to these circuits is that the current is the same in every element of the circuit and the total of the voltage across each of the components adds up to the voltage of the battery.  A current meter is always in series with the part of the circuit whose current is being measured.&lt;br /&gt;
&lt;br /&gt;
Circuit:&lt;br /&gt;
[[Image:series.png | Series Circuit ]]&lt;br /&gt;
&lt;br /&gt;
Where&lt;br /&gt;
*R1	resistor 1 or any other 2 terminal component, capacitor, inductor, diode....&lt;br /&gt;
*R2	resistor 2 or any other 2 terminal component.....&lt;br /&gt;
*BAT  a battery or other voltage source&lt;br /&gt;
&lt;br /&gt;
I you have a lot of components that use the same current put them in series.  This is often how LEDs are connected to higher voltages; this also eliminates the need for a current limiting resistor on each LED.  With a bit of math you can show that the two resistors act like one resistor of value R = R1 + R2 .  When you need a resistor of a different value than you have you can sometimes “make it up” using a series connection of resistors you do have.  Two identical resistors in series are equivalent to one of double the resistance.  A series circuit can have more than 2 resistors, there can be 3, 4, ... You can find out more about series circuits in the references.  This circuit should be contrasted with the Parallel Circuit.  A voltage divider is an example of a series circuit.&lt;br /&gt;
&lt;br /&gt;
More information:   &lt;br /&gt;
* [http://en.wikipedia.org/wiki/Parallel_circuit Series and parallel circuits From Wikipedia, the free encyclopedia]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!---------------------------------------------------------------------&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Seven segment LEDs==&lt;br /&gt;
Use these to display number to a user.&lt;br /&gt;
&lt;br /&gt;
*[http://chungyan5.no-ip.org/vc/trunk/AltiumDesigner6ProjectFiles.zip?root=7segment_LEDs&amp;amp;view=log AltiumDesigner6ProjectFiles]&lt;br /&gt;
*[http://www.dnatechindia.com/index.php/Tutorials/8051-Tutorial/7-Seg-Interfacing.html Interfacing Seven Segment to Microcontroller]&lt;br /&gt;
== Schmitt Trigger ==&lt;br /&gt;
Use this circuit when you want to sense if an input is either high or low.  The circuit elmininate inputs that are &amp;quot;in between&amp;quot; and stops small noise signals from causing the input to rapildy oscillating from high to low.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Circuit:&lt;br /&gt;
[[Image:opamp_st.png | Schmitt Trigger ]]&lt;br /&gt;
&lt;br /&gt;
Where&lt;br /&gt;
*RIN	input resistor -- when this inputs more current than the positive feedback resistor the output switches to the voltage at the input, else it stays at the output voltage it has already reached.  Typically lower in value than RFB.&lt;br /&gt;
*RFB	positive feedback resistor the output voltage is feed back to the input and keeps the output at its current voltage.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Discussion:&lt;br /&gt;
&lt;br /&gt;
The circuit is used to switch between two states even in the presence of noise.  This is an somewhat unusual op amp circuit as it uses positive not negative feedback.  See the references for a better explanation and variations on the circuit.&lt;br /&gt;
Schmidt Triggers are also available as integrated circuits which require no external components.&lt;br /&gt;
&lt;br /&gt;
More Information:&lt;br /&gt;
*[[OpAmp Links]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Oscillators ==&lt;br /&gt;
&lt;br /&gt;
[[Image:Flip-flop circuit.jpg]]&lt;br /&gt;
(is there a better page to discuss oscillators?)&lt;br /&gt;
&lt;br /&gt;
== Power up low active reset circuit ==&lt;br /&gt;
Use this circuit with a microcontroller to keep it in reset for a short period of time after the power supply is tuned on.  Some microcontrollers like this kind of start up.  Note that this is really just an application of the RC Filter, also on this page.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:power_up_low_active_reset_circuit.png]]&lt;br /&gt;
[[Image:pular.png]]&lt;br /&gt;
*[http://chungyan5.no-ip.org/open_data/electronic_computer/middleware/pwr_up_low_active_reset/  power_up_low_active_reset_circuit]&lt;br /&gt;
*[http://spreadsheets.google.com/pub?key=pobKDna9aVYeKjbR-Hf-OIg Result of Resistant to delay time]&lt;br /&gt;
&lt;br /&gt;
== ADC Voltage Protection Circuit ==&lt;br /&gt;
The input to an Analog to Digital Converter (ADC) has some issues that need a bit of attention.&lt;br /&gt;
The ADC can be damaged by input voltages that are too high or too low.&lt;br /&gt;
An op-amp is the best way to protect the ADC.&lt;br /&gt;
(Additionally, an opamp circuit can provide amplification (although this example doesn't); it can remove aliasing noise; and it drives the ADC with low impedance, which can be quite helpful).&lt;br /&gt;
&lt;br /&gt;
This Sallen-Key filter is a specialization of '''Op amp Non Inverting Amplifier''' also on this page. &lt;br /&gt;
&lt;br /&gt;
[[Image:Adc.png|thumb|800px|center]]&lt;br /&gt;
*This opamp circuit is used to&lt;br /&gt;
#provide a low input source resistance to the ADC&lt;br /&gt;
#protect ADC. Even when the input signal exceeds the supply/reference voltage (i.e. INPUT &amp;gt; V&amp;lt;sub&amp;gt;cc&amp;lt;/sub&amp;gt;), the voltage into the ADC input pin is capped at the supply voltage.&lt;br /&gt;
*Requirement for the op-amp:&lt;br /&gt;
**The op-amp can withstand the input signal beyond the supply voltage, provided that the input current is limited to I&amp;lt;sub&amp;gt;max&amp;lt;/sub&amp;gt; (e.g. [http://focus.ti.com/lit/ds/symlink/opa4340.pdf OPA4340] I&amp;lt;sub&amp;gt;max&amp;lt;/sub&amp;gt; = 10mA)&lt;br /&gt;
**To reduce noise picked up from the op-amp, use an op-amp with a low Input Voltage Noise Density (measured in nV/√Hz)&lt;br /&gt;
&lt;br /&gt;
*Test conditions:&lt;br /&gt;
**V&amp;lt;sub&amp;gt;signal&amp;lt;/sub&amp;gt; = 5V&lt;br /&gt;
**R1 = 8.2kohm, R2 = 15kohm, C1 = 0.1uF, C2 = 0.22uF&lt;br /&gt;
**Measured V+ = 3.8V&lt;br /&gt;
**Calculated current = (5-3.8)/23200 = 52uA &amp;lt; 10mA&lt;br /&gt;
&lt;br /&gt;
More Information:&lt;br /&gt;
* [[input protection]] circuits&lt;br /&gt;
* [http://en.wikipedia.org/wiki/Sallen_Key_filter Wikipedia: &amp;quot;Sallen–Key topology&amp;quot;]&lt;br /&gt;
* [http://en.wikipedia.org/wiki/anti-aliasing Wikipedia: &amp;quot;anti-aliasing&amp;quot;] and [http://en.wikipedia.org/wiki/anti-aliasing_filter Wikipedia: &amp;quot;anti-aliasing filter&amp;quot;]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Voltage Divider ==&lt;br /&gt;
Voltage Divider&lt;br /&gt;
&lt;br /&gt;
We use a voltage divider when we have a voltage that is too big and we just want a fraction ( like 1/3 or .33 ) of it.  It is like an amplifier with a gain of less than 1.  We use two resistors, the output is always a constant fraction of the input voltage.&lt;br /&gt;
&lt;br /&gt;
Sometimes we use a potentiometer as a voltage divider.  This makes the ratio of output to input adjustable.  This is how we make a gain control or volume control.&lt;br /&gt;
&lt;br /&gt;
Circuit:&lt;br /&gt;
[[Image:vdivide.png | Voltage Divider ]]&lt;br /&gt;
&lt;br /&gt;
Where&lt;br /&gt;
*R1	resistor 1&lt;br /&gt;
*R2	resistor 2&lt;br /&gt;
*POT  a potentiometer&lt;br /&gt;
&lt;br /&gt;
The ratio of input to output is:  output/input = R2/( R1 + R2 ).&lt;br /&gt;
&lt;br /&gt;
Discussion&lt;br /&gt;
&lt;br /&gt;
The equation assumes that the input source is low impedance and the output is high impedance, if this is not true consider using a buffer on the input or the output ( Op Amp Unity Gain Buffer or Transistor Emitter Follower ) For audio applications a so called “log taper” pot may be used as it better matches the way in which we hear.  If you want a calibrated control you may use a precision “10 turn precision” pot.&lt;br /&gt;
&lt;br /&gt;
More information:   &lt;br /&gt;
*[http://www.seattlerobotics.org/encoder/mar97/basics.html Very Basic Circuits]&lt;br /&gt;
*[http://itp.nyu.edu/physcomp/sensors/Schematics/VoltageDivider Voltage Divider]&lt;br /&gt;
&lt;br /&gt;
== Voltage Divider using a Light Dependent Resitor ==&lt;br /&gt;
&lt;br /&gt;
Used to generate a voltage that depends upon light level.  With the LDR on the &amp;quot;high side&amp;quot; the voltage will go up when the amount of light goes up.&lt;br /&gt;
You need to use a resistor in series with the light dependent resistor, this combination lets a variable current flow through the circuit.  The voltage across the resistor will vary with the light brightness ( so will the voltage across the LDR, the two will total to input voltage. )  What size resistor should you use?  A ruel of thumb:  Put the LDR in medium brightness and mesure its resistance with a ohm meter.  Use that value resistor then in medium light you will get 1/2 the input voltage at the output.&lt;br /&gt;
&lt;br /&gt;
Circuit:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:VdivideLDR.png]]&lt;br /&gt;
&lt;br /&gt;
Where &lt;br /&gt;
&lt;br /&gt;
*Input = 5v from power supply Vcc&lt;br /&gt;
*Output = signal to connect what ever addition circuit&lt;br /&gt;
*LDR The Light dependent resistor&lt;br /&gt;
*R: A resistor as described above.&lt;br /&gt;
&lt;br /&gt;
== Wheatstone Bridge ==&lt;br /&gt;
'''Draft'''&lt;br /&gt;
Use this circuit when you want to measure the value of a resistor or detect a small change in resistance.&lt;br /&gt;
&lt;br /&gt;
Circuit:&lt;br /&gt;
[[Image:wbridge.png | Wheatstone Bridge ]]&lt;br /&gt;
&lt;br /&gt;
Where&lt;br /&gt;
*Input1  Input 1 normally + DC&lt;br /&gt;
*Input2  Input 2 normally - DC or ground.&lt;br /&gt;
*R1      Resistor 1.&lt;br /&gt;
*R2      Resistor 2.&lt;br /&gt;
*R3      Resistor 3.&lt;br /&gt;
*R4      Resistor 4.&lt;br /&gt;
*Output1 Output 1 for null reading.&lt;br /&gt;
*Output2 Output 2 for null reading.&lt;br /&gt;
*Meter   Use to detect meter balance = null = 0 reading.&lt;br /&gt;
&lt;br /&gt;
Discussion:&lt;br /&gt;
&lt;br /&gt;
The circuit is basically two voltage dividers with the output taken across the output of each voltage divider.  It is in &amp;quot;balance&amp;quot; when the output is 0.  This is true when R1/R2 = R3/R4.  The output traditionally went to a galvanometer a very high sensitivity meter. Input traditionally was a battery.  By using calibrated resistors for R1, R2, and R3 the value of R4 may easily be calculated.  The whole circuit including a wide range of precision resistors, the battery and galvanometer was all packaged in an box and sold as a unit.  The same principal can be used with components other than resistors and AC for input instead of DC. &lt;br /&gt;
&lt;br /&gt;
More Information:&lt;br /&gt;
*[http://itp.nyu.edu/physcomp/sensors/Schematics/WheatstoneBridge Wheatstone Bridge]&lt;br /&gt;
*[http://physics.kenyon.edu/EarlyApparatus/Electrical_Measurements/Capacitance_Bridge/Capacitance_Bridge.html Capacitance Bridge] This one is an antique.&lt;br /&gt;
&lt;br /&gt;
== Further Reading ==&lt;br /&gt;
&lt;br /&gt;
* [http://freecircuitdiagram.com/  FreeCircuitDiagram]  Lots of circuits, not always so basic, more like projects, but many are quite simple.  Some but not elaborate explanation of the circuit.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== General Comments ==&lt;br /&gt;
&lt;br /&gt;
''... do we need another page for not-so-basic circuits such as the Baker clamp ? ...''  I looked it up and would say it is not so basic. So perhaps [[Not So Basic Circuits]] would be a good place to put such things.  What do others think?  russ_hensel&lt;br /&gt;
&lt;br /&gt;
More not-so-basic circuits:&lt;br /&gt;
[http://www.geofex.com/circuits/what_are_all_those_parts_for.htm &amp;quot;What are all those parts for??&amp;quot;] by R.G. Keen. 2002&lt;br /&gt;
shows a &amp;quot;simple&amp;quot; noninverting gain circuit,&lt;br /&gt;
and explains what all the &amp;quot;extra&amp;quot; parts do.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Components]][[Category:Schematics]]&lt;/div&gt;</summary>
		<author><name>121.220.220.96</name></author>
		
	</entry>
	<entry>
		<id>http://www.opencircuits.com/index.php?title=Basic_Circuit_Building_Blocks&amp;diff=19344</id>
		<title>Basic Circuit Building Blocks</title>
		<link rel="alternate" type="text/html" href="http://www.opencircuits.com/index.php?title=Basic_Circuit_Building_Blocks&amp;diff=19344"/>
		<updated>2010-03-24T11:06:18Z</updated>

		<summary type="html">&lt;p&gt;121.220.220.96: /* Current Limit or Constant Current ( Transistor Based ) */  resized image&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;These are circuits and parts of circuits that we see over and over again in larger projects.  Understanding a complex circuit is much easier if you understand these building blocks.  &lt;br /&gt;
&lt;br /&gt;
Operational amplifier are the basis for many circuit building blocks especially in the range of DC to 1 meg Hz.  See [[OpAmp Links]].&lt;br /&gt;
&lt;br /&gt;
== Introduction and Page Status.... ==&lt;br /&gt;
( Some of schematics have been drawn in Eagle and the screen captured, use other methods if you wish.  Feel free to add your own circuits, as long as they are basic building blocks, there are lots of other places for project circuits. If you get into more advanced circuits, give them their own page and link to them.  Some entries are not complete, if the explanation of the circuit does not match the diagram that is a good tip off. )&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
To Do &lt;br /&gt;
* Why not put alpha order?&lt;br /&gt;
* work on external links&lt;br /&gt;
&lt;br /&gt;
More circuits that would be good to add&lt;br /&gt;
&lt;br /&gt;
*AC Coupling Capacitor / High Pass Filter&lt;br /&gt;
*Battery Lamp and Switch&lt;br /&gt;
*Diode Rectifier&lt;br /&gt;
&lt;br /&gt;
[http://forum.allaboutcircuits.com/showthread.php?t=32697 Current rating and full wave rectification]&lt;br /&gt;
*LM35 Temperature Sensor&lt;br /&gt;
*555 Timer astable oscillator&lt;br /&gt;
*diode for forward drop bias voltage&lt;br /&gt;
*row and collumn connection&lt;br /&gt;
*charge pump&lt;br /&gt;
*transformer&lt;br /&gt;
*voltage multiplier&lt;br /&gt;
*diode logical or&lt;br /&gt;
*RC timer&lt;br /&gt;
*diode full wave bridge&lt;br /&gt;
*H Bridge&lt;br /&gt;
&lt;br /&gt;
An H bridge is an electronic circuit that causes current to flow in one direction or the other ( from a singel ended power supply ).  Often used for motor control [[motor driver]].&lt;br /&gt;
It is an electronic double pole double throw switch.&lt;br /&gt;
[http://code.rancidbacon.com/ElectronicsElectronics] See Section on ''H-Bridge''&lt;br /&gt;
&lt;br /&gt;
*Simple Oscillator circuits&lt;br /&gt;
*Current mirrors&lt;br /&gt;
*RF Mixers&lt;br /&gt;
*Tranistor Current Mirror&lt;br /&gt;
*[[Colpitts Oscillator]]&lt;br /&gt;
&lt;br /&gt;
Links to basic circuits:&lt;br /&gt;
&lt;br /&gt;
*[http://electricalengineeringforbeginners.blogspot.com/ Donny's Learn Electrical Engineering for Beginners]&lt;br /&gt;
*[http://webpages.ursinus.edu/lriley/ref/circuits/circuits.html DC/AC Circuit Reference]&lt;br /&gt;
*[http://www.educypedia.be/electronics/analogdiode.htm Educypedia] A web site of links.  Lots of material.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!---------------------------------------------------------------------&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Amplifiers ==&lt;br /&gt;
An amplifier is any circuit which has a larger output than input, typically either larger voltage or larger current, or both.  Generally larger power out than in.  Several of the circuits here are amplifiers, but as these are only basic circuit, many types of amplifiers are omitted here.&lt;br /&gt;
&lt;br /&gt;
See the sections on:  Op amp Non Inverting Amplifier, Op amp Unity Gain Buffer ....&lt;br /&gt;
&lt;br /&gt;
[http://www.amplifiersite.com/ AmplifierSite.com]&lt;br /&gt;
&lt;br /&gt;
== Current Sense Resistor ( Shunt Resistance ) ==&lt;br /&gt;
&lt;br /&gt;
A current Sense Resistor is a low value of resistor that is placed in parallel with some other circuit.  We can then measure the voltage across the resistor to compute the current.  If the resistor has a low value compared to other components we can ignore the effect on the circuit.  We use the word shunt when the voltage is measured by a device that has a fairly low resistance itself.  We then have to do a more careful calculation of how the current is shared by the two devices.&lt;br /&gt;
&lt;br /&gt;
Circuit:&lt;br /&gt;
[[Image:shunt.png | Shunt Resistance ]]&lt;br /&gt;
&lt;br /&gt;
Where&lt;br /&gt;
*R	shunt resistor used to sense the current  ( and divert it from the meter ).  Usually much less in value than the internal resistance of the meter.&lt;br /&gt;
*METER  meter or other device used to measure the voltage across the shunt reistor.  Often the resistance of the meter is ignored ( if high ).&lt;br /&gt;
*BATTERY  a battery or other voltage source.&lt;br /&gt;
&lt;br /&gt;
Discussion:&lt;br /&gt;
&lt;br /&gt;
In the old days a sensitive meter, say 50 mv full scale, would be used with a set of shunt, some looking like metal bars, to measure a wide range of currents, up to and exceeding 50 amps.&lt;br /&gt;
&lt;br /&gt;
There are many inaccuracies in this entry. A current sense resistor must go in series in order to carry the same current as the load. Putting the resistor in series guarantees that it will carry the same current as the load because of Kirchoff Current Law (KCL).  The current in the current sense resistor can then be determined from the voltage across it by Ohm's Law, and this will be the same as the current in the load. The technique described in this entry would only work if the the impedance of the network which the sense resistor was connected across was precisely known. However if the impedance of the network is known, there is no need for a current sense resistor as Ohms Law could give the current directly. Finally, the schematic omits a load and the symbol for the battery is upside down (assuming the author intended ground to be the lowest node on the schematic and voltages to be positive). -LPM&lt;br /&gt;
&lt;br /&gt;
More information:   &lt;br /&gt;
#[http://www.scienceshareware.com/bg-current-monitoring.htm  Scienceshareware.com's How A Precision Resistor Is Used to Measure / Calculate Current and Power in an Electrical Circuit.]&lt;br /&gt;
#[http://www.maxim-ic.com/appnotes.cfm/appnote_number/746/ High-Side Current-Sense Measurement: Circuits and Principles]&lt;br /&gt;
#[http://en.wikipedia.org/wiki/Shunt_(electrical) Shunt (electrical) From Wikipedia, the free encyclopedia]&lt;br /&gt;
* Other ways to measure current: [[Motor_driver#current_sense]]&lt;br /&gt;
&lt;br /&gt;
== Current Limit or Constant Current ( Transistor Based ) ==&lt;br /&gt;
&lt;br /&gt;
This is a modification of the emitter follower to limit the current output.  So if your output stage is an emitter follower you can add current limiting to it.  Or given enough input drive, say from a voltage divider it will act as a constant current source.&lt;br /&gt;
&lt;br /&gt;
Circuit:&lt;br /&gt;
[[Image:cc_limit.png |thumb|450px| Current Limit or Constant Current ]]&lt;br /&gt;
&lt;br /&gt;
Where&lt;br /&gt;
*R1  base resistor to limit base current to transistor Q1.&lt;br /&gt;
*R2  current sense resistor used to sense the current and turn on transistor Q2.&lt;br /&gt;
*Q1  main transistor supplying the load current.&lt;br /&gt;
*Q2  current limiting transistor.&lt;br /&gt;
&lt;br /&gt;
Discussion:&lt;br /&gt;
&lt;br /&gt;
The idea here is that R2 is a current sense reistor.  When the sense voltage across R2 reaches about .7 ( for silicon transistors ) Q2 begins to conduct and diverts the base drive from Q1 cutting its output current.  So the max. current from the circuit is reached when I*R2 = .7.  This circuit can be used to protect amplifiers ( including push pull amps. ), power supplies and other circuits; or it can be used as a constant current circuit.  It is not a precision circuit, but it is cheap, simple, and effective circuit.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
More information:   &lt;br /&gt;
#[http://freecircuitdiagram.com/2008/08/27/variable-adjustable-current-limiter-circuit/ Variable (Adjustable) Current Limiter Circuit ]  This is a bit more complicated version using a transistor to drive a darlington transistor, with the limit being adjustable.&lt;br /&gt;
#[http://forum.allaboutcircuits.com/showthread.php?t=32709 Current Source for Resistance Measurement]&lt;br /&gt;
#[http://docs.google.com/gview?a=v&amp;amp;q=cache%3Axoux8Ax7B_UJ%3Awww.powerampdesign.net%2Fimages%2FAN-12_The_Problem_with_Current_Limit.pdf+amplifier+current+limit&amp;amp;hl=en&amp;amp;gl=us&amp;amp;pli=1 The Problem with Current Limit] Discusses this circuit as applied to a power amplifier.&lt;br /&gt;
#[http://www.instructables.com/id/Constant-current-LED-Tester/ Constant current LED-Tester] Simple application of the circuit as an LED tester.&lt;br /&gt;
&lt;br /&gt;
== Filter Capacitor / Decoupling Capacitor / Low Pass Filter ==&lt;br /&gt;
Circuit:&lt;br /&gt;
[[Image:filtercap.png | Filter Capacitor ]]&lt;br /&gt;
&lt;br /&gt;
Where&lt;br /&gt;
*D2	is a diode, it lets current pass only in the direction of the arrow.&lt;br /&gt;
*R	resistor &lt;br /&gt;
*Input  a source of alternating current ( occasionally DC in which case the whole circuit serves only to protect against a reverse connection.&lt;br /&gt;
C1      the first, main, filter capacitor.&lt;br /&gt;
C2      the second filter capacitor.&lt;br /&gt;
&lt;br /&gt;
Discussion:&lt;br /&gt;
In this circuit C1 is a classic filter capacitor it charges while the diode conducts, it discharges and supplies current when the diode does not.  R and C2 are a second stage filter.  With R set to 0, it simply adds to the value of C1.  With R in the circuit it forms a low pass filter which helps remove the ripple from the power ( at the cost of some voltage drop ).  In the old days R would often be a low value inductor which had a similar effect without the voltage drop.  A capacitor alone is often put across a circuit component that uses power to supply bursts of current and stop noise from being propagated through the power supply.&lt;br /&gt;
&lt;br /&gt;
The amount of ripple in a simple circuit like this can be determined from the supply frequency voltage, output current, and the capacitance.  The amount of time without any input voltage is 1/2f.  Given an output current I, the charge transferred is is I/2f.  The voltage sag is then just the charge divided by the capacitance, or I/2fC.   An inductor added to this circuit will compensate for voltage sag by inducing a voltage if the current starts to drop.&lt;br /&gt;
&lt;br /&gt;
More Information:&lt;br /&gt;
&amp;lt;!---------------------------------------------------------------------&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Light Emitting Diode ( with current limiting resistor ) ==&lt;br /&gt;
&lt;br /&gt;
Use this circuit to light low power LEDs&lt;br /&gt;
&lt;br /&gt;
A light emitting diode can be very sensitive to small voltage changes, just a bit too much voltage and the LED will draw too much current and “burn out”.  Thus it is often used with a resistor in series.  If we have a 5 volt source of voltage and an LED that is specified for 2.5 volts at 10 ma, then the resistor must have ( 5 – 2.5 ) volts = 2.5 volts and 10 ma.  Using ohms law  2.5/10 x 10 ee-3 = 250 ohms.&lt;br /&gt;
&lt;br /&gt;
A transistor low or high side switch can be used with the resistor if your input cannot supply enough current for the LED.&lt;br /&gt;
&lt;br /&gt;
Circuit:&lt;br /&gt;
[[Image:ledres.jpg | LED and current limiting resistor ]]&lt;br /&gt;
&lt;br /&gt;
Where&lt;br /&gt;
*LED	the LED&lt;br /&gt;
*R_LED  the current limiting resistor&lt;br /&gt;
*INPUT	voltage source for lighting the LED&lt;br /&gt;
&lt;br /&gt;
More information:   &lt;br /&gt;
*[http://www.seattlerobotics.org/encoder/mar97/basics.html  Very Basic Circuits ] &lt;br /&gt;
*[http://www.iguanalabs.com/1stled.htm Learning About Transistors and LEDs ]&lt;br /&gt;
*[http://quantsuff.com/index.htm WELCOME TO QUANTSUFF'S CIRCUIT PAGE. Low Voltage, high-efficiency Drivers for LED Lights ]&lt;br /&gt;
*[http://www.dnatechindia.com/index.php/Tutorials/8051-Tutorial/LED-Interfacing.html Interfacing LED to 8051 Microcontroller]&lt;br /&gt;
*[http://www.evilmadscientist.com/article.php/throw Some thoughts on throwies] interesting notes on the resistor normally used with an LED.&lt;br /&gt;
&lt;br /&gt;
== Op amp Non Inverting Amplifier ==&lt;br /&gt;
Use this circuit where the signal you have is not as large as you want, or cannot provide enough current.  It is called non inverting because a positive input produces a positive output ( An inverting amplifier produces a negative output when given a positive input ).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Circuit:&lt;br /&gt;
[[Image:opamp_nia.png | Op amp Non Inverting Amplifier ]]&lt;br /&gt;
&lt;br /&gt;
Where&lt;br /&gt;
*R1	resistor 1 or any other 2 terminal component, capacitor, inductor, diode....&lt;br /&gt;
*R2	resistor 2 or any other 2 terminal component.....&lt;br /&gt;
OPAMPA  Any general purpose op amp, often connected to + and - power supplies&lt;br /&gt;
&lt;br /&gt;
Discussion:&lt;br /&gt;
Gain is = ( R1/R2 ) + 1 &lt;br /&gt;
&lt;br /&gt;
More Information:&lt;br /&gt;
*[[OpAmp Links]]&lt;br /&gt;
&amp;lt;!---------------------------------------------------------------------&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Op amp Unity Gain Buffer ==&lt;br /&gt;
&lt;br /&gt;
Use this circuit when you have a signal of high impedance ( can supply only a little current ) that you want to connect to another circuit that draws a significant current ( up to about 10 ma for the typical op amp. ).  For example if you wish to measure the output of a voltage divider with a 0 to 1 ma meter a unity gain buffer might be just what you need.  This circuit is also know as a voltage follower.&lt;br /&gt;
&lt;br /&gt;
The unity gain buffer has an output voltage just the same as the input voltage.  The advantage is that the input circuit does not “feel” the output.  That is the input acts pretty much like a very large resistor ( many mega ohms or more ) connected to ground, and the output supply's whatever current ( up to about 10 ma ) is necessary to maintain the output voltage.  Here is the circuit:&lt;br /&gt;
&lt;br /&gt;
Circuit:&lt;br /&gt;
&lt;br /&gt;
[[Image:opamp_ugb.png | Op Amp Unity Gain Buffer ]]&lt;br /&gt;
&lt;br /&gt;
Where&lt;br /&gt;
*INPUT		the input signal you wish to buffer&lt;br /&gt;
*RIN		the input resistor, often 0 ohms.&lt;br /&gt;
*OPAMPA  Any general purpose op amp, often connected to + and - power supplies&lt;br /&gt;
*RFB   	the feed back resistor &lt;br /&gt;
*OUTPUT	the output&lt;br /&gt;
&lt;br /&gt;
Discussion:&lt;br /&gt;
The values of RIN and RFB are not very critical and are normally 0 ohms, just a straight connection.  The op amp here is a quad or 4 op amp part, we are using just one section of it.  Power needs to be supplied to pin 8 and 4 in the usual way for op amps.&lt;br /&gt;
&lt;br /&gt;
More information:  &lt;br /&gt;
*[[OpAmp Links]]&lt;br /&gt;
*[http://en.wikipedia.org/wiki/Buffer_amplifier Buffer amplifier From Wikipedia, the free encyclopedia]&lt;br /&gt;
*[http://www.bcae1.com/opamp.htm Operational Amplifiers]&lt;br /&gt;
*[http://www.eecs.tufts.edu/~dsculley/tutorial/opamps/opamps5.html Op-Amp Buffer]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!---------------------------------------------------------------------&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Parallel Circuit ==&lt;br /&gt;
In a parallel circuit the current divides and some flows through each component .  The key to these circuits is that the voltage is the same in every element of the circuit and the total of the current through each of the components adds up to the total current from the battery.  When you use a current meter it is always placed in series with the part of the circuit where you wish to measure the current.&lt;br /&gt;
&lt;br /&gt;
Circuit:&lt;br /&gt;
[[Image:parallel.png | Parallel Circuit ]]&lt;br /&gt;
&lt;br /&gt;
Where&lt;br /&gt;
*R1	resistor 1 or any other 2 terminal component, capacitor, inductor, diode....&lt;br /&gt;
*R2	resistor 2 or any other 2 terminal component.....&lt;br /&gt;
*BATTERY  a battery or other voltage source&lt;br /&gt;
&lt;br /&gt;
Discussion:&lt;br /&gt;
&lt;br /&gt;
I you have a lot of components that use the same voltage put them in parallel.  This is how most lights in a house are wired.  Each individual light can be turned on and off without changing the current or voltage in the other lights.  With a bit of math you can show that the two resistors act like one resistor of value R = R1 + R2 /( R1 * R2 ).  When you need a resistor of a different value than you have you can sometimes “make it up” using a parallel connection of resistors you do have.  Two identical resistors in parallel are equivalent to one of half the resistance.  A parallel circuit can have more than 2 resistors, there can be 3, 4, ... You can find out more about parallel circuits in the references.  This circuit should be contrasted with the Series Circuit.  Parallel circuits can also be used with other components, the equations vary, for capicators the capacitances add in a parallel circuit.&lt;br /&gt;
&lt;br /&gt;
More information:   &lt;br /&gt;
* [http://en.wikipedia.org/wiki/Parallel_circuit Series and parallel circuits From Wikipedia, the free encyclopedia]&lt;br /&gt;
&amp;lt;!---------------------------------------------------------------------&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Pull Up and Switch ==&lt;br /&gt;
&lt;br /&gt;
Use this circuit when you want to feed a user input to a digital circuit, for example a PIC input pin.&lt;br /&gt;
&lt;br /&gt;
A pull up is a fairly high value resistor (say 1 to 100 K ohms) that is connected to the positive side of the power supply.  This makes the other end of the resistor the same voltage as the power supply (as long as it is connected to a high impedance).  The other end of the resistor is connected to a switch that is then connected to ground.  When the switch is connected current flow through the resistor drops the entire power supply voltage and the input voltage for the circuit is now 0 (sometimes called active low, since when the switch is active the output is low).  Note that a pull up ( just the resistor to V+ ) might be considered a basic circuit by itself.  Pull up is sometimes used without the switch to keep a signal high all the time.  It can also be connected to any other circuit or component that has ( sometimes ) a much lower impedance than the pull up and can thus force the voltage low.&lt;br /&gt;
&lt;br /&gt;
Circuit:&lt;br /&gt;
&lt;br /&gt;
[[Image:pus.png | Pull Up and Switch ]]&lt;br /&gt;
&lt;br /&gt;
Where&lt;br /&gt;
*PUSH_BUTTON_SWITCH		is a push button switch&lt;br /&gt;
*R_PULLUP	is the pull up resistor &lt;br /&gt;
*VPLUS_VDD   	is the power supply voltage&lt;br /&gt;
&lt;br /&gt;
More information:   &lt;br /&gt;
*[http://www.seattlerobotics.org/encoder/mar97/basics.html  Very Basic Circuits]&lt;br /&gt;
*[http://www.dnatechindia.com/index.php/Tutorials/8051-Tutorial/Switch-Interfacing.html Interfacing Switch to Microcontroller]&lt;br /&gt;
&lt;br /&gt;
Debouncing Discussion:&lt;br /&gt;
&lt;br /&gt;
We have two groups of solution: Hardware Debouncing Circuit and Software Debouncing Driver&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Hardware Debouncing Circuit:&lt;br /&gt;
&lt;br /&gt;
[[Image:Pus_debouncing.PNG | Pull Up and Switch with debouncing ]]&lt;br /&gt;
with [http://chungyan5.no-ip.org/open_data/electronic_computer/ui/key_with_debouncing geda circuit], and [http://chungyan5.no-ip.org/open_data/electronic_computer/eda/geda/libs symbols]&lt;br /&gt;
*Advantage - Do not occupy the CPU processing power for debouncing, lets CPU to handle more other application task(s)&lt;br /&gt;
*Disadvantage - we need to implement the above hardware circuit inside the project&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Software Debouncing Driver:&lt;br /&gt;
*Advantage - Saving cost &amp;amp; space for nothing debouncing circuit&lt;br /&gt;
*Disadvantage - Utilize CPU processing power for debouncing, less time for CPU to handle other application process&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===ToDo===&lt;br /&gt;
*Software Debouncing Driver&lt;br /&gt;
**compile time parameters:&lt;br /&gt;
***time delay between each sample&lt;br /&gt;
***no. of sample - until all samples &lt;br /&gt;
**different type of switches, may be have different above compile time parameters&lt;br /&gt;
**API to OS or GUI&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!---------------------------------------------------------------------&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Pull Down and Switch ==&lt;br /&gt;
Use this circuit when you want to feed a user input to a digital circuit, for example a PIC input pin. ( like the Pull Up and Switch )&lt;br /&gt;
&lt;br /&gt;
Essentially a Pull Up and Switch &amp;quot;upside down&amp;quot;.  A pull down is a fairly high value resistor (say 1 to 100 K ohms) that is connected to the ground side of the power supply.  This makes the other end of the resistor ground as well. (as long as it is connected to a high impedance).  The other end of the resistor is connected to a switch that is then connected to positive side of the power supply.  When the switch is connected current flow through the resistor raises the voltage to the digital circuit to entire power supply voltage the input is now 1 (sometimes called active high, since when the switch is active the output is high ).  Pull down is sometimes used without the switch to keep a signal low all the time.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Circuit:&lt;br /&gt;
[[Image:pds.png | Pull Down and Switch ]]&lt;br /&gt;
&lt;br /&gt;
Where&lt;br /&gt;
*R_PULLDOWN	resistor which normally keeps the output low ( ground ).&lt;br /&gt;
*PUSH_BUTTON_SWITCH	switch to make the output high&lt;br /&gt;
*VPLUS_VDD  a battery or other voltage source&lt;br /&gt;
&lt;br /&gt;
Discussion:&lt;br /&gt;
Just a variation on the Pull Up and Switch.&lt;br /&gt;
&amp;lt;!---------------------------------------------------------------------&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Relay with Diode Snubber ==&lt;br /&gt;
&lt;br /&gt;
Sometimes you will want to switch an external device on and off with a device that can only source a small amount of current (a microcontroller for example). For this you will need a relay. A relay is a mechanical device with a electromagnetic coil and a metal switch. When the coil is energized, the metal switch will move, completing the circuit. &lt;br /&gt;
&lt;br /&gt;
An inductive element, like the relay coil, is likely to generate an undesired voltage when the current is suddenly stopped. Use a diode (snubber) to dissipate the extra voltage. &lt;br /&gt;
&lt;br /&gt;
The diode is connected in reverse from the normal voltage across the inductor, when the voltage is removed the collapsing field can continue to drive current through the diode without generating a high voltage.&lt;br /&gt;
&lt;br /&gt;
Circuit:&lt;br /&gt;
[[Image:diodesnubber.png | Diode snubbber  ]]&lt;br /&gt;
&lt;br /&gt;
Discussion:&lt;br /&gt;
&lt;br /&gt;
We are assuming in this circuit that the input does not have enough output to drive the relay directly so we are using a transistor low side switch to increase the drive { see '''Low Side Switch''' on this page ). In the circuit shown, the &amp;quot;input&amp;quot; will come directly from the small current source device (microcontroller output pin). The resistor must be sized correctly, along with the NPN transistor DC current gain, to ensure sufficient current passes through the relay coil to activate it. &lt;br /&gt;
&lt;br /&gt;
Other inductors that might use a diode snubber are transformers, solenoids, dc motors, and of course straight ahead inductors.&lt;br /&gt;
&lt;br /&gt;
More information:  &lt;br /&gt;
&lt;br /&gt;
*[[Relays]] &lt;br /&gt;
*[http://en.wikipedia.org/wiki/snubber &amp;quot;snubber&amp;quot; from Wikipedia, the free encyclopedia]&lt;br /&gt;
*[http://en.wikipedia.org/wiki/flyback_diode &amp;quot;flyback diode&amp;quot; from Wikipedia, the free encyclopedia]&lt;br /&gt;
*[http://en.wikipedia.org/wiki/Relay &amp;quot;relay&amp;quot; from Wikipedia, the free encyclopedia]&lt;br /&gt;
*[http://www.dnatechindia.com/index.php/Tutorials/8051-Tutorial/Relay-Interfacing.html Microcontroller] relay interfacing example.&lt;br /&gt;
&lt;br /&gt;
== Three Terminal Regulator ==&lt;br /&gt;
&lt;br /&gt;
Use when you need a regulated voltage and or short circuit protection.&lt;br /&gt;
&lt;br /&gt;
Most circuits run better if the primary power source is a constant fixed voltage.  A battery is only a poor approximation to this.  Taking a battery or other voltage source ( like a wall wart plug in transformer ) and running it through a voltage regulator transforms it into a good fixed source of voltage.  It also generally adds current limiting as short circuit protection. The 7805 is a very common 5 volt regulator. &lt;br /&gt;
&lt;br /&gt;
Circuit:&lt;br /&gt;
[[Image:ttr.png | Three Terminal Regulator  ]]&lt;br /&gt;
&lt;br /&gt;
Discussion:&lt;br /&gt;
&lt;br /&gt;
The circuit above is very basic.  Practical circuits normally include filter capacitors on both the input and the output.  Most regulators protect against both over temperature and over current.  Regulators come in various voltages both positive and negative.  They also vary in maximum current output. There are also adjustable regulators, ways of using regular regulators as adjustable ones, and ways of boosting the current output.  The spec sheets often describe how to do these things.  Voltage regulators “use up” a couple of volts of the input voltage, low drop out regulators have use less, cost more.  It is a good idea to check the specification for any regulator you are going to use.  The LM78xx ( positive ) and LM79xx ( negative ) are quite common.&lt;br /&gt;
&lt;br /&gt;
More information:  &lt;br /&gt;
*[[Basic Voltage Regulators]] &lt;br /&gt;
*[http://en.wikipedia.org/wiki/7805 7805 From Wikipedia, the free encyclopedia]&lt;br /&gt;
*[http://www.tkk.fi/Misc/Electronics/circuits/psu_5v.html Simple 5V power supply for digital circuits]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Transistor Low Side Switch ==&lt;br /&gt;
&lt;br /&gt;
Use this circuit when you wish to turn a load on and off with both a low voltage and a low current.  Note that neither side of the load is grounded.&lt;br /&gt;
&lt;br /&gt;
A low side switch is one which switches a circuit on and off at the ground or low side of the circuit.  The advantage of a low side switch is that when using a transistor as the switch the voltage to drive the transistor is itself a low voltage.  It is often the easy way to drive LEDS, motors, and other high current devices from such low power devices as PIC output ports.  Low side switches are popular and there are many integrated circuits for them as well as this circuit.&lt;br /&gt;
&lt;br /&gt;
Circuit:&lt;br /&gt;
&lt;br /&gt;
[[Image:Tran_lss.jpg | Transistor Low Side Switch ]]&lt;br /&gt;
&lt;br /&gt;
Where&lt;br /&gt;
*LED		is a low power LED&lt;br /&gt;
*R_LED		is a current limiting resistor for the LED&lt;br /&gt;
*Q			is a bipolar transistor &lt;br /&gt;
*R_1		is a current limiting resistor transistor base current&lt;br /&gt;
*VPLUS_VDD   is the power supply for the LED&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Discussion:&lt;br /&gt;
The voltage at the collector of the circuit should fall to a fraction of a volt when the input is high.  To acomplish this:&lt;br /&gt;
&lt;br /&gt;
*Compute the value of R_LED using ohms law and the specifications for the LED.&lt;br /&gt;
*Compute the current through the LED.&lt;br /&gt;
*The transistor must sink the current, it should be equal approximately to the input voltage divided by R1 times the beta of the transistor.&lt;br /&gt;
&lt;br /&gt;
An example calculation would be nice, and will appear later.&lt;br /&gt;
&lt;br /&gt;
This circuit is sometimes called &amp;quot;grounded-emitter configuration&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
More Information:&lt;br /&gt;
*[http://en.wikipedia.org/wiki/Transistor#Switches Transistor From Wikipedia, the free encyclopedia]&lt;br /&gt;
&lt;br /&gt;
== Transistor High Side Switch ==&lt;br /&gt;
&lt;br /&gt;
Use this circuit when you wish to turn a load on and off with a voltage at a low current.  Note that low  side of the load is grounded.  The voltage to turn on the switch is equal to the supply voltage ( or perhaps just a bit larger )&lt;br /&gt;
&lt;br /&gt;
A high side switch is one which switches a circuit on and off at the supply voltage or high side of the circuit.  The advantage of a high side switch is that the load is grounded on one side.  Compared to the low side switch it needs a higher voltage to drive it, but it also eliminates one resistor of that circuit.  It the voltage to drive it is available it may be the circuit of choice.  It is often the easy way to drive leds motors and other high current devices from such low power devices as PIC output ports. &lt;br /&gt;
&lt;br /&gt;
Circuit:&lt;br /&gt;
&lt;br /&gt;
[[Image:tran_hss.png | Transistor High Side Switch ]]&lt;br /&gt;
&lt;br /&gt;
Where&lt;br /&gt;
*LED		is a low power LED&lt;br /&gt;
*R_LED		is a current limiting resistor for the LED&lt;br /&gt;
*Q		is a bipolar transistor &lt;br /&gt;
*VPLUS_VDD   is the power supply for the LED&lt;br /&gt;
&lt;br /&gt;
The voltage at the collector of the circuit should fall to a fraction of a volt when the input is high.  To compute the values in the circuit:&lt;br /&gt;
&lt;br /&gt;
*Compute the value of R_LED using ohms law and the specifications for the LED.&lt;br /&gt;
*The current to drive the circuit is approximately the current to drive the load divided by the beta of the transistor.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
No resistor is needed into the base of the transistor because as the load draws current the voltage at the base will rise and limit the base current.  The input voltage should be about equal to VPLUS_VDD, high compared to that needed for the low side switch.&lt;br /&gt;
&lt;br /&gt;
This high side switch usually requires the base voltage of Q to be VPLUS_VDD plus the turn-on voltage of the transistor to turn all the way on. Another approach to the high side switch that requires a lower turn-on voltage is to use a PNP transistor as the switch. The base of the PNP is pulled up to VPLUS_VDD and connected to the collector of a small signal NPN transistor, Q2. Q2's emitter is connected to ground and its base is connected to the input signal through a current limiting resistor.&lt;br /&gt;
&lt;br /&gt;
== Transistor Emitter Follower ==&lt;br /&gt;
&lt;br /&gt;
Use this circuit when you have a signal of high impedance ( can supply only a little current ) that you want to connect to another circuit that draws a significant current.  The circuit has no voltage gain, but because of the current gain it has a lot of power gain.  It is frequently used in the final stage of an amplifier.  &lt;br /&gt;
&lt;br /&gt;
This circuit is a variation of the transistor high side switch.  The difference is that we typically drive this circuit in a linear way ( all of the voltages between 0 and the supply voltage ) to make it a linear amplifier.&lt;br /&gt;
&lt;br /&gt;
The emitter follower is also called a common collector circuit.  The Emitter Follower is basically a high side switch, but when we call it an emitter follower we normally think of it as a linear ( analog ) amplifier, rather than as a switch.&lt;br /&gt;
&lt;br /&gt;
Circuit:&lt;br /&gt;
&lt;br /&gt;
[[Image:tef.png | Transistor Emitter Follower ]]&lt;br /&gt;
&lt;br /&gt;
Where&lt;br /&gt;
*R_LOAD		represents the resistance of the load&lt;br /&gt;
*Q		is a npn bipolar transistor &lt;br /&gt;
*VPLUS_VDD   is the power supply for the LED&lt;br /&gt;
&lt;br /&gt;
The current to drive the circuit is approximately the current to drive the load divided by the beta of the transistor.  Use a Darlington connected transistor for a very high beta.&lt;br /&gt;
&lt;br /&gt;
No resistor is needed into the base of the transistor because as the load draws current the voltage at the base will rise and limit the base current.  &lt;br /&gt;
&lt;br /&gt;
This circuit will only amplify positive voltages, using a pnp transistor you can amplify only negative voltages.  Combine the two ( see push pull amplifier ) you can amplify both positive and negative voltages.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Variation of the circuit include: &lt;br /&gt;
&lt;br /&gt;
*Use of coupling capacitors to amplify ac signals.&lt;br /&gt;
*Various other components to bias the transistor.&lt;br /&gt;
*Use an op amp buffer with voltage gain at the input, then the emitter follower for high current. In this way a few Milli volts with current on the order of pico amps can drive an output of several volts at an ampere or more. &lt;br /&gt;
&lt;br /&gt;
More information: &lt;br /&gt;
&lt;br /&gt;
*[http://www.mines.edu/Academic/courses/physics/phgn217/lab4/lect7/sld013.htm  Emitter Follower]&lt;br /&gt;
&lt;br /&gt;
*[http://en.wikipedia.org/wiki/Common_collector Common collector From Wikipedia, the free encyclopedia]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Transistor -- Push Pull Circuit ==&lt;br /&gt;
&lt;br /&gt;
Use when you need current gain and need both positive and negative output.&lt;br /&gt;
&lt;br /&gt;
A modification of the “transistor emitter follower” that can give both positive and negative outputs.  Based on two transistors one npn the other pnp: one pushes the other pulls.&lt;br /&gt;
&lt;br /&gt;
Circuit:&lt;br /&gt;
[[Image:pptrans.png | Push Pull Transistor Circuit]]&lt;br /&gt;
&lt;br /&gt;
Where&lt;br /&gt;
*Q1	transistor 1 need not be a TIP41C but does need to be NPN&lt;br /&gt;
*Q2	transistor 2 need not be a TIP42C but does need to be PNP&lt;br /&gt;
*R_LOAD	represents the load, here it is in the emitter, it could also be placed in the collector circuit&lt;br /&gt;
*VPLUS_VDD Power supply voltage, positive.&lt;br /&gt;
*VMINUS Power supply voltage, negative.&lt;br /&gt;
&lt;br /&gt;
Discussion:&lt;br /&gt;
Often there are other components for transistor bias or other purposes.  The circuit here is really basic.  The common transistors used are so called complementary pairs, similar characteristics but one npn and the other pnp.  Note that we need both positive and negative power supplies. You can also put the push pull circuit inside the feedback loop of an op amp to get a high current op amplifier.  Push pull amplifies can also be made with other types of transistors, tubes, or other components.&lt;br /&gt;
&lt;br /&gt;
More information:   &lt;br /&gt;
*[http://www.ecircuitcenter.com/Circuits/pushpull/pushpull.htm Push-Pull Output Stage]&lt;br /&gt;
*[http://www.allaboutcircuits.com/vol_6/chpt_6/10.html Class B audio amplifier]&lt;br /&gt;
*[http://en.wikipedia.org/wiki/Electronic_amplifier     Electronic amplifier From Wikipedia, the free encyclopedia (search on Class B and AB )]&lt;br /&gt;
&lt;br /&gt;
== Transistors -- Darlington connected ==&lt;br /&gt;
&lt;br /&gt;
Use a Darlington transistor connection when you want really high current gain.  Gain of 1000 is easily in reach.  That is 1 ma to 1 amp &lt;br /&gt;
This is a useful connection of 2 transistors that together form a transistor of much larger gain.  You can also buy Darlington transistors all packaged in a single case with just 3 connections exposed to the outside.&lt;br /&gt;
&lt;br /&gt;
Circuit:&lt;br /&gt;
[[Image:dtrans.png | Darlington Transistor Connection  ]]&lt;br /&gt;
&lt;br /&gt;
Where&lt;br /&gt;
*Q1	transistor 1 need not be a 2N3565 but does need to be NPN&lt;br /&gt;
*Q2	transistor 2 need not be a 2N3565 but does need to be NPN&lt;br /&gt;
*R_LOAD	represents the load, here it is in the emitter, it could also be placed in the collector circuit&lt;br /&gt;
*VPLUS_VDD Power supply voltage, positive.&lt;br /&gt;
&lt;br /&gt;
Discussion:&lt;br /&gt;
&lt;br /&gt;
Often Q1 is a high gain small signal transistor and Q2 a lower gain power transistor.  You can use PNP transistors by using a negative power supply. Use a ULN2803 ( or similar chips ) to get 8 darlingtons in one package, useful as low side switches and in conjunction with microcontrollers. &lt;br /&gt;
* The above diagram shows a high side switch, but other transistor configurations can also be used. &lt;br /&gt;
* PNP transistors can also be used, the important point is that both transistors be of the same type.&lt;br /&gt;
&lt;br /&gt;
More information:   &lt;br /&gt;
*[http://en.wikipedia.org/wiki/Darlington_transistor  Darlington transistor From Wikipedia, the free encyclopedia]&lt;br /&gt;
*[http://www.kpsec.freeuk.com/trancirc.htm  Transistor Circuits ( search on Darlington )]&lt;br /&gt;
*[http://www.ibiblio.org/kuphaldt/electricCircuits/Semi/SEMI_4.html Lessons In Electric Circuits -- Volume III Chapter 4 BIPOLAR JUNCTION  TRANSISTORS Darlington pair ( search on Darlington )]&lt;br /&gt;
&lt;br /&gt;
== Transistors -- Sziklai pair ==&lt;br /&gt;
&lt;br /&gt;
Similiar in use to a Darlington transistor connection when you want really high current gain.  Gain of 1000 is easily in reach.  That is 1 ma to 1 amp   This is a useful connection of 2 transistors that together form a transistor of much larger gain.  Unlike a Darlington the transistors are of opposite types.  The circuit also has some other differences in detail, see the refrences.&lt;br /&gt;
&lt;br /&gt;
Circuit:&lt;br /&gt;
[[Image:sptrans.png | Sziklai pair  ]]&lt;br /&gt;
&lt;br /&gt;
Where&lt;br /&gt;
*Q1	transistor 1 need not be a xxx but does need to be NPN&lt;br /&gt;
*Q2	transistor 2 need not be a xxx but does need to be PNP&lt;br /&gt;
*R_LOAD	represents the load, here it is in the emitter, it could also be placed in the collector circuit&lt;br /&gt;
*VPLUS_VDD Power supply voltage, positive.&lt;br /&gt;
&lt;br /&gt;
Discussion:&lt;br /&gt;
&lt;br /&gt;
Often Q1 is a high gain small signal transistor and Q2 a lower gain power transistor.  You can use PNP transistors by using a negative power &lt;br /&gt;
&lt;br /&gt;
More information:   &lt;br /&gt;
*[http://en.wikipedia.org/wiki/Sziklai_pair Sziklai pair From Wikipedia, the free encyclopedia]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== RC Filter ==&lt;br /&gt;
&lt;br /&gt;
The most basic filters are the RC-High Pass and RC-Low Pass filters.  The high pass filter removes DC and low frequencies and the low pass removes high frequencies.  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''High Pass''' [[Image:rchighpass.png | RC High Pass Filter]]&lt;br /&gt;
'''Low Pass''' [[Image:rclowpass.png | RC Low Pass Filter]]&lt;br /&gt;
&lt;br /&gt;
Both circuits have the same 3dB frequency or the frequency at which the power of the signal is aproximately halved.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
f_\mathrm{c} = {1 \over 2 \pi \tau } = {1 \over 2 \pi R C}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The way to remember the two circuits is to think about how the capacitor acts at various signal frequencies.  At high frequencies capacitors act like wires.  At low frequencies capacitors act like disconnections.&lt;br /&gt;
&lt;br /&gt;
An important use of low pass filters is for the anti-aliasing circuity on the input of an A/D converter or the output of a D/A converter. An important use of a high pass filter is to remove the DC offset of a signal.  For example, it's possible to use a power supply that is +5 to GND to generate a sin from a D/A converter and use a high pass filter to change the sin to a +2.5 to -2.5 signal at the output.&lt;br /&gt;
&lt;br /&gt;
More information:&lt;br /&gt;
*[http://en.wikipedia.org/wiki/Low-pass_filter Low Pass Filter]&lt;br /&gt;
*[http://en.wikipedia.org/wiki/High-pass_filter High Pass Filter]&lt;br /&gt;
*[http://www.tonnesoftware.com/elsie.html The Windows ® program for electrical filter design and network analysis]&lt;br /&gt;
&lt;br /&gt;
== Series Circuit ==&lt;br /&gt;
&lt;br /&gt;
In a series circuit the current first flows through one component then another and so on.  The key to these circuits is that the current is the same in every element of the circuit and the total of the voltage across each of the components adds up to the voltage of the battery.  A current meter is always in series with the part of the circuit whose current is being measured.&lt;br /&gt;
&lt;br /&gt;
Circuit:&lt;br /&gt;
[[Image:series.png | Series Circuit ]]&lt;br /&gt;
&lt;br /&gt;
Where&lt;br /&gt;
*R1	resistor 1 or any other 2 terminal component, capacitor, inductor, diode....&lt;br /&gt;
*R2	resistor 2 or any other 2 terminal component.....&lt;br /&gt;
*BAT  a battery or other voltage source&lt;br /&gt;
&lt;br /&gt;
I you have a lot of components that use the same current put them in series.  This is often how LEDs are connected to higher voltages; this also eliminates the need for a current limiting resistor on each LED.  With a bit of math you can show that the two resistors act like one resistor of value R = R1 + R2 .  When you need a resistor of a different value than you have you can sometimes “make it up” using a series connection of resistors you do have.  Two identical resistors in series are equivalent to one of double the resistance.  A series circuit can have more than 2 resistors, there can be 3, 4, ... You can find out more about series circuits in the references.  This circuit should be contrasted with the Parallel Circuit.  A voltage divider is an example of a series circuit.&lt;br /&gt;
&lt;br /&gt;
More information:   &lt;br /&gt;
* [http://en.wikipedia.org/wiki/Parallel_circuit Series and parallel circuits From Wikipedia, the free encyclopedia]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!---------------------------------------------------------------------&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Seven segment LEDs==&lt;br /&gt;
Use these to display number to a user.&lt;br /&gt;
&lt;br /&gt;
*[http://chungyan5.no-ip.org/vc/trunk/AltiumDesigner6ProjectFiles.zip?root=7segment_LEDs&amp;amp;view=log AltiumDesigner6ProjectFiles]&lt;br /&gt;
*[http://www.dnatechindia.com/index.php/Tutorials/8051-Tutorial/7-Seg-Interfacing.html Interfacing Seven Segment to Microcontroller]&lt;br /&gt;
== Schmitt Trigger ==&lt;br /&gt;
Use this circuit when you want to sense if an input is either high or low.  The circuit elmininate inputs that are &amp;quot;in between&amp;quot; and stops small noise signals from causing the input to rapildy oscillating from high to low.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Circuit:&lt;br /&gt;
[[Image:opamp_st.png | Schmitt Trigger ]]&lt;br /&gt;
&lt;br /&gt;
Where&lt;br /&gt;
*RIN	input resistor -- when this inputs more current than the positive feedback resistor the output switches to the voltage at the input, else it stays at the output voltage it has already reached.  Typically lower in value than RFB.&lt;br /&gt;
*RFB	positive feedback resistor the output voltage is feed back to the input and keeps the output at its current voltage.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Discussion:&lt;br /&gt;
&lt;br /&gt;
The circuit is used to switch between two states even in the presence of noise.  This is an somewhat unusual op amp circuit as it uses positive not negative feedback.  See the references for a better explanation and variations on the circuit.&lt;br /&gt;
Schmidt Triggers are also available as integrated circuits which require no external components.&lt;br /&gt;
&lt;br /&gt;
More Information:&lt;br /&gt;
*[[OpAmp Links]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Oscillators ==&lt;br /&gt;
&lt;br /&gt;
[[Image:Flip-flop circuit.jpg]]&lt;br /&gt;
(is there a better page to discuss oscillators?)&lt;br /&gt;
&lt;br /&gt;
== Power up low active reset circuit ==&lt;br /&gt;
Use this circuit with a microcontroller to keep it in reset for a short period of time after the power supply is tuned on.  Some microcontrollers like this kind of start up.  Note that this is really just an application of the RC Filter, also on this page.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:power_up_low_active_reset_circuit.png]]&lt;br /&gt;
[[Image:pular.png]]&lt;br /&gt;
*[http://chungyan5.no-ip.org/open_data/electronic_computer/middleware/pwr_up_low_active_reset/  power_up_low_active_reset_circuit]&lt;br /&gt;
*[http://spreadsheets.google.com/pub?key=pobKDna9aVYeKjbR-Hf-OIg Result of Resistant to delay time]&lt;br /&gt;
&lt;br /&gt;
== ADC Voltage Protection Circuit ==&lt;br /&gt;
The input to an Analog to Digital Converter (ADC) has some issues that need a bit of attention.&lt;br /&gt;
The ADC can be damaged by input voltages that are too high or too low.&lt;br /&gt;
An op-amp is the best way to protect the ADC.&lt;br /&gt;
(Additionally, an opamp circuit can provide amplification (although this example doesn't); it can remove aliasing noise; and it drives the ADC with low impedance, which can be quite helpful).&lt;br /&gt;
&lt;br /&gt;
This Sallen-Key filter is a specialization of '''Op amp Non Inverting Amplifier''' also on this page. &lt;br /&gt;
&lt;br /&gt;
[[Image:Adc.png|thumb|800px|center]]&lt;br /&gt;
*This opamp circuit is used to&lt;br /&gt;
#provide a low input source resistance to the ADC&lt;br /&gt;
#protect ADC. Even when the input signal exceeds the supply/reference voltage (i.e. INPUT &amp;gt; V&amp;lt;sub&amp;gt;cc&amp;lt;/sub&amp;gt;), the voltage into the ADC input pin is capped at the supply voltage.&lt;br /&gt;
*Requirement for the op-amp:&lt;br /&gt;
**The op-amp can withstand the input signal beyond the supply voltage, provided that the input current is limited to I&amp;lt;sub&amp;gt;max&amp;lt;/sub&amp;gt; (e.g. [http://focus.ti.com/lit/ds/symlink/opa4340.pdf OPA4340] I&amp;lt;sub&amp;gt;max&amp;lt;/sub&amp;gt; = 10mA)&lt;br /&gt;
**To reduce noise picked up from the op-amp, use an op-amp with a low Input Voltage Noise Density (measured in nV/√Hz)&lt;br /&gt;
&lt;br /&gt;
*Test conditions:&lt;br /&gt;
**V&amp;lt;sub&amp;gt;signal&amp;lt;/sub&amp;gt; = 5V&lt;br /&gt;
**R1 = 8.2kohm, R2 = 15kohm, C1 = 0.1uF, C2 = 0.22uF&lt;br /&gt;
**Measured V+ = 3.8V&lt;br /&gt;
**Calculated current = (5-3.8)/23200 = 52uA &amp;lt; 10mA&lt;br /&gt;
&lt;br /&gt;
More Information:&lt;br /&gt;
* [[input protection]] circuits&lt;br /&gt;
* [http://en.wikipedia.org/wiki/Sallen_Key_filter Wikipedia: &amp;quot;Sallen–Key topology&amp;quot;]&lt;br /&gt;
* [http://en.wikipedia.org/wiki/anti-aliasing Wikipedia: &amp;quot;anti-aliasing&amp;quot;] and [http://en.wikipedia.org/wiki/anti-aliasing_filter Wikipedia: &amp;quot;anti-aliasing filter&amp;quot;]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Voltage Divider ==&lt;br /&gt;
Voltage Divider&lt;br /&gt;
&lt;br /&gt;
We use a voltage divider when we have a voltage that is too big and we just want a fraction ( like 1/3 or .33 ) of it.  It is like an amplifier with a gain of less than 1.  We use two resistors, the output is always a constant fraction of the input voltage.&lt;br /&gt;
&lt;br /&gt;
Sometimes we use a potentiometer as a voltage divider.  This makes the ratio of output to input adjustable.  This is how we make a gain control or volume control.&lt;br /&gt;
&lt;br /&gt;
Circuit:&lt;br /&gt;
[[Image:vdivide.png | Voltage Divider ]]&lt;br /&gt;
&lt;br /&gt;
Where&lt;br /&gt;
*R1	resistor 1&lt;br /&gt;
*R2	resistor 2&lt;br /&gt;
*POT  a potentiometer&lt;br /&gt;
&lt;br /&gt;
The ratio of input to output is:  output/input = R2/( R1 + R2 ).&lt;br /&gt;
&lt;br /&gt;
Discussion&lt;br /&gt;
&lt;br /&gt;
The equation assumes that the input source is low impedance and the output is high impedance, if this is not true consider using a buffer on the input or the output ( Op Amp Unity Gain Buffer or Transistor Emitter Follower ) For audio applications a so called “log taper” pot may be used as it better matches the way in which we hear.  If you want a calibrated control you may use a precision “10 turn precision” pot.&lt;br /&gt;
&lt;br /&gt;
More information:   &lt;br /&gt;
*[http://www.seattlerobotics.org/encoder/mar97/basics.html Very Basic Circuits]&lt;br /&gt;
*[http://itp.nyu.edu/physcomp/sensors/Schematics/VoltageDivider Voltage Divider]&lt;br /&gt;
&lt;br /&gt;
== Voltage Divider using a Light Dependent Resitor ==&lt;br /&gt;
&lt;br /&gt;
Used to generate a voltage that depends upon light level.  With the LDR on the &amp;quot;high side&amp;quot; the voltage will go up when the amount of light goes up.&lt;br /&gt;
You need to use a resistor in series with the light dependent resistor, this combination lets a variable current flow through the circuit.  The voltage across the resistor will vary with the light brightness ( so will the voltage across the LDR, the two will total to input voltage. )  What size resistor should you use?  A ruel of thumb:  Put the LDR in medium brightness and mesure its resistance with a ohm meter.  Use that value resistor then in medium light you will get 1/2 the input voltage at the output.&lt;br /&gt;
&lt;br /&gt;
Circuit:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:VdivideLDR.png]]&lt;br /&gt;
&lt;br /&gt;
Where &lt;br /&gt;
&lt;br /&gt;
*Input = 5v from power supply Vcc&lt;br /&gt;
*Output = signal to connect what ever addition circuit&lt;br /&gt;
*LDR The Light dependent resistor&lt;br /&gt;
*R: A resistor as described above.&lt;br /&gt;
&lt;br /&gt;
== Wheatstone Bridge ==&lt;br /&gt;
'''Draft'''&lt;br /&gt;
Use this circuit when you want to measure the value of a resistor or detect a small change in resistance.&lt;br /&gt;
&lt;br /&gt;
Circuit:&lt;br /&gt;
[[Image:wbridge.png | Wheatstone Bridge ]]&lt;br /&gt;
&lt;br /&gt;
Where&lt;br /&gt;
*Input1  Input 1 normally + DC&lt;br /&gt;
*Input2  Input 2 normally - DC or ground.&lt;br /&gt;
*R1      Resistor 1.&lt;br /&gt;
*R2      Resistor 2.&lt;br /&gt;
*R3      Resistor 3.&lt;br /&gt;
*R4      Resistor 4.&lt;br /&gt;
*Output1 Output 1 for null reading.&lt;br /&gt;
*Output2 Output 2 for null reading.&lt;br /&gt;
*Meter   Use to detect meter balance = null = 0 reading.&lt;br /&gt;
&lt;br /&gt;
Discussion:&lt;br /&gt;
&lt;br /&gt;
The circuit is basically two voltage dividers with the output taken across the output of each voltage divider.  It is in &amp;quot;balance&amp;quot; when the output is 0.  This is true when R1/R2 = R3/R4.  The output traditionally went to a galvanometer a very high sensitivity meter. Input traditionally was a battery.  By using calibrated resistors for R1, R2, and R3 the value of R4 may easily be calculated.  The whole circuit including a wide range of precision resistors, the battery and galvanometer was all packaged in an box and sold as a unit.  The same principal can be used with components other than resistors and AC for input instead of DC. &lt;br /&gt;
&lt;br /&gt;
More Information:&lt;br /&gt;
*[http://itp.nyu.edu/physcomp/sensors/Schematics/WheatstoneBridge Wheatstone Bridge]&lt;br /&gt;
*[http://physics.kenyon.edu/EarlyApparatus/Electrical_Measurements/Capacitance_Bridge/Capacitance_Bridge.html Capacitance Bridge] This one is an antique.&lt;br /&gt;
&lt;br /&gt;
== Further Reading ==&lt;br /&gt;
&lt;br /&gt;
* [http://freecircuitdiagram.com/  FreeCircuitDiagram]  Lots of circuits, not always so basic, more like projects, but many are quite simple.  Some but not elaborate explanation of the circuit.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== General Comments ==&lt;br /&gt;
&lt;br /&gt;
''... do we need another page for not-so-basic circuits such as the Baker clamp ? ...''  I looked it up and would say it is not so basic. So perhaps [[Not So Basic Circuits]] would be a good place to put such things.  What do others think?  russ_hensel&lt;br /&gt;
&lt;br /&gt;
More not-so-basic circuits:&lt;br /&gt;
[http://www.geofex.com/circuits/what_are_all_those_parts_for.htm &amp;quot;What are all those parts for??&amp;quot;] by R.G. Keen. 2002&lt;br /&gt;
shows a &amp;quot;simple&amp;quot; noninverting gain circuit,&lt;br /&gt;
and explains what all the &amp;quot;extra&amp;quot; parts do.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Components]][[Category:Schematics]]&lt;/div&gt;</summary>
		<author><name>121.220.220.96</name></author>
		
	</entry>
</feed>