Version 20, last updated by Leonid Kostrykin at September 04, 2008 13:55 UTC

Summary 

The input circuit is shown below. The general purpose of the circuit is to transform an input signal UE to an output signal UA. Ideal is a linear coherence between UE and UA. The circuit as shown below limits UA to 0 - 4.7 V and produces a nearly linear coherence for |UE| ≤ UE' < 4.7 V, where UE' is supposed to be as large as possible. It's actual value depends on the slew rate of the used zener diods DZ1 and DZ2 and has to be detected by experiment.

 

Input Circuit

 

In order to achieve a symmetric coherence of UA and UE for positive and negative values of UE we need to use zener diodes of an equal zener voltage for DZ1 and DZ2. A zener voltage of 4.3 V and ~0.4 V forward voltage is a good choice. Below we will call the sum of them UZ. In this case we have UE' ≈ 4.7 V for RM = 0 Ω. But it seems like zener diodes never have the zener voltage they are declared to have, it seems like their real zener voltage is almost always lower. As long as the zener voltage of the both diodes is nearly equal, this should not be a problem.

Annotation: Of course the serial connection of the two zener diodes can be replaced by a contrary parallel connection of respectively one regular diode and one zener diode (contrary to the regular one). This might be helpful if you cannot manage to find two zener diodes of correct dimensions.


 

Analysis

1. Understanding 

What we are going to do here is to point out a linear coherence of UA and UE for certain circumstances. Potentiometer RM is meant to extend the linear coherence to higher voltages as we will see:

(1.1) IE = UE / ( Ri + RM )

(1.2) IE = ID + Ii + IS

Due to RS1 + RS2 » Ri and (even more) RS1 + RS2 » Ri || RG we can idealize (1.2) to:

(1.3) IE = ID + Ii

(1.4) | IE · Ri | < UZ ↔ ( ID = 0 ↔ Ii = IE )

This means, the potential drop over DZ1 and DZ2 (called UD below) is equal IE · Ri for IE · Ri < UZ. With (1.1) we have:

(1.5) UD ≡ IE · Ri = UE · Ri / ( Ri + RM ) for | UD | < UZ

Which is a linear coherence. With RM = 0 it says:

(1.6) UD = UE for UE < UZ

With greater UE we won't have a linear coherence anymore but UD = UE for all UE ≥ UZ with ideal diodes. In reality the coherence for UE ≥ UZ is logarithmic. But as (1.5) says we can increase the scope of linear coherence between UD and UE by increasing RM to those UE which correspond UE ≥ UZ:

 

Set of ideal characteristic curves

 

The purpose of RS1, RS2 and the 4.7 V voltage source, which actually form up a simple voltage divider, is to linearly transform UD from [-4.7V, +4.7V] to [0, 4.7 V]. So finally we have for | UD | < UZ :

(1.7) UA = ( UE · Ri / ( Ri + RM ) + 4.7 V ) / 2

This implies:

  1. UA < 4.7 V / 2 →  UE < 0
  2. UA > 4.7 V / 2 →  UE > 0
  3. UA = 4.7 V / 2 →  UE = 0

The ADC of the ATmega8 is connected to the terminals of UA. According to ATmega8 datasheet (page 248) it's ADC has an input resistance of 55 to 100 MΩ. This means the voltage divider RS1 / RS2 can be assumed as not stressed. Nevertheless it could be useful to use an impedance converter here.

2. Exact coherence

The coherence as pointed out in (1.7) is an approximation. Now we are looking for the exact relationship between UA and UE. In order to do that we will limit our self to the case ID = 0 (expecting linear coherence).

(2.01) ID = 0 →  IE = IS + Ii

Utilizing the princip of superposition.

1. We keep UE and bypass the 4.7 V voltage source:

(2.02) IS' = IE' · ( [ RS1 + RS2 + RG ] || Ri ) / ( RS1 + RS2 + RG )

(2.03) → UA' = IS' · RS1 = IE' · ( RS1 / [ RS1 + RS2 + RG ] ) · ( [ RS1 + RS2 + RG ] || Ri )

(2.04) UE = IE' · RM + IE' · ( [ RS1 + RS2 + RG ] || Ri )

(2.05) → IE' = UE / ( RM + [ RS1 + RS2 + RG ] || Ri )

(2.06) → UA' = UE · ( R0 / [ R0 + RM ] ) · ( RS1 / [ RS1 + RS2 + RG ] ) ,  with R0 := ( RS1 + RS2 + RG ) || Ri

2. We keep the 4.7 V voltage source and bypass UE:

(2.07) UA'' = 4.7 V + IS'' · RS1

(2.08) 4.7 V + IS'' · ( RS1 + RS2 + RG + Ri || RM )

(2.09) → IS'' = -4.7 V / ( RS1 + RS2 + RG + Ri || RM )

(2.10) → UA'' = 4.7 V · ( 1 - RS1 / [ RS1 + RS2 + RG + Ri || RM ] )

According to the princip of superposition we have UA = UA' + UA'':

(2.11) UA = UE · ( R0 / [ R0 + RM ] ) · ( RS1 / [ RS1 + RS2 + RG ] ) + 4.7 V · ( 1 - RS1 / [ RS1 + RS2 + RG + Ri || RM ] )

When comparing (2.11) to (1.7) now in order to verfiy our results we notice:

  1. 4.7 V · ( 1 - RS1 / [ RS1 + RS2 + RG + Ri || RM ] ) ≈ 4.7 / 2 V because of RS1 = RS2 » RG assuming RM = 0
  2. R0 / [ R0 + RM ] ≈ Ri / ( Ri + RM ) because of RS1 + RS2 + RG » Ri
  3. RS1 / [ RS1 + RS2 + RG ] ≈ ½ because of RS1 = RS2 » RG