background image

Sometimes, when we’re interfacing an analog signal with a microcontroller, 
the analog voltage doesn’t match the range of the analog-to-digital 
converter. For instance, the signal might swing 100 mV, but the converter is 
referenced to 5V - the converter would only use 2% of it’s range.

To match the signal to the converter, we can build an amplifier circuit that 
boosts the incoming voltage. This circuit is known as a “conditioning 
amplifier” or “pre-amplifier” (“preamp” for short).

One simple preamp is an operational amplifier wired in non-inverting mode. 
The gain of the amplifier is configured with a pair of resistors.

The gain factor for the amplifier is

1+(Rf/Rs)

For a given pair or resistors, we can calculate the gain factor - for example, 
if both are 10K 

Ω

, the equation works out to

1+(10,000/10,000)

Which simplifies to 2 - the output of the amplifier will be the input voltage 
multiplied by 2. To continue the example above, if 100mV go in, then 200 
mV come out.

Sometimes when we start designing, we don’t know the gain factor we 
need for an application. When building an amplifier to suit a specific 
application, it can be useful to have a preamp with adjustable gain. We can 
build one that uses a decade box for the feedback resistor, and selecting a 
shunt resistor that gives us a reasonable gain range.

Page 15 of 16

Содержание Decade Resistance Box

Страница 1: ...own as decade boxes because they have controls that correspond to the digits in a decimal number a control for the ones position a control for the tens position a control for the hundreds position and...

Страница 2: ...mall Philips Screwdriver A few inches of solid core hookup wire Safety Glasses Magnifying glass or Loupe PCB Vise or Third Hand Volt Meter Optional Materials The decade box can be assembled to fit in...

Страница 3: ...l Marking The PCB for the decade resistance does double duty as a drilling template Each of the holes needed in the enclosure has a matching hole in the PCB To use the template tape the PCB onto the e...

Страница 4: ...to larger ones We began with a 1 8 bit to make pilot holes on each of the center punch marks then worked progressively up to larger bits The five holes for the rotary switches should be drilled to 3...

Страница 5: ...are placed on the top of the board which is marked with symbols for each component tick marks for the resistors and oblong outlines for the rotary switches The components are soldered to the back of...

Страница 6: ...imeter to verify their value Soldering Rotary Switches After the resistors are in place install the rotary switches The rotary switches fit within the matching outlines on the board The footprint is s...

Страница 7: ...e nuts is for electrical connection and the inner nut holds the jack together To use the jack we first need to make sure that the inner nut is snug against the body so the jack doesn t come apart We l...

Страница 8: ...r end of the wire to the nearby PCB pad With the first jack mounted repeat this for the other jack With all of this complete your decade box should look like this Installation In Enclosure If you have...

Страница 9: ...r them in place Carefully pull the wire slack through the holes as you slide the PCB into the enclosure The rotary switches will protrude through the corresponding holes in the enclosure and the tails...

Страница 10: ...ick test if we were going to try to hit all possible settings so we ll use a streamlined approach instead We ll verify that every switch and every resistor is properly installed and functional If they...

Страница 11: ...resistors but they are significantly more expensive than the 1 ones 3 Third the accuracy and precision of the multimeter itself will show some variance How It Works Resistors placed in series are add...

Страница 12: ...hat the maximum voltage across the decade resistance is the difference between the positive and negative supply rails For some common supply voltages we ll calculate the resistance that draws 1 4W Sup...

Страница 13: ...r DC source on the left powering the top and bottom of the diamond At the center of the diamond between points A and B is a voltmeter The diamond drawing obscures what s really happening in the circui...

Страница 14: ...0 001 At that point the value of the decade box matched the value of the unknown resistor As you can see we measured 9 960 The mystery resistor was probably a 10K 5 tolerance resistor In practical ter...

Страница 15: ...n of the amplifier is configured with a pair of resistors The gain factor for the amplifier is 1 Rf Rs For a given pair or resistors we can calculate the gain factor for example if both are 10K the eq...

Страница 16: ...ion inverts the signal at it s output a situation that can be solved in software but is also somewhat counter intuitive Resources and Going Further Decade boxes are handy to have on your workbench you...

Отзывы: