Kamis, 12 September 2013

komponen tester

esr meter
siap di kirim boosss…
esr meter


Selasa, 10 September 2013

KOMPONEN TESTER

DSC06358
DSC06221 DSC06215
       
DSC06283 
DSC06214

esr meter

Senin, 09 September 2013

amplifier microcontroller

Pre-amplifier with microcontroller control. Version 2.0.

First of all, I express my deep gratitude to his boss Vladimir Malgino for moral and material support. I thank him for everything. Without his help, perhaps nothing would be. So, many thanks to Igor Teplov for help and advice on matters of concern to me.
Now everything is in order. 
amplifier is built in a modular fashion, that is, the individual modules, each can perform at will and preferences. This particularly applies to the output of power amplifiers (UMNCH), power supply (PSU), protect the speakers (AS). In this paper we elaborate on the input module (TDA7313) and the control processor module (M2).
MODULE M1 (TDA7313)
The scheme of the module:
Scheme module M1
Chip TDA7313 is included on the template specified in the Datasheet and has no singularities. On the model and debugging I soldered the module completely on SMD elements, but the sound quality is not good, so the final version of the all-through capacitors are replaced by film K73-17. The sound quality is improved. I arrange it well. 
As applied to the input terminal block of 6 RCA. The photo shows the assembled unit which. Output connectors - type HU / WF. You can apply the same or separate connectors RCA. Unit is powered from the power supply voltage of 9 volts. More features of the M1 unit has not. PCB pattern and assembled block is shown below.
Figure PP M1
Photo assembled module
Module M2 (ATMEGA16 PROCESSOR)
Probably the main module in the design. On it, and the tuning knob on the unit have focused my efforts. 
How good or bad I do not judge you. 
circuit modules:
Scheme module M2.  Click to enlarge.
The main parameters of the module: 
1. Volume Adjustment (16 levels) as the old version; 
2. Gain control (4 levels), 
3. Adjusting the bass (16 levels) 
4. Adjusting the treble (16 levels) 
5. Adjusting the balance of the front speakers (16 levels) 
6. Adjusting the balance for the rear speakers (16 levels), 
7. LOUDNESS - On / off tonkonpesatsii; 
8. Mode MUTE; 
9. Mode STANDBY; 
10. Time display mode MUTE and STANDBY and After 10 seconds, when there was no taps on the keyboard and the other control actions; 
11. Control of all functions with keyboard, remote control (RC) remote uses standard RC-5 is one of the most common; 
12. Control via the tuning knob (encoder); 
13. Control of temperature or internal temperature of the radiator in the case of two channels. On the basis of sensors DALLAS DS18x20. If you exceed the set temperature control turns the cooling fan 
is now more: 
The module is assembled on a printed circuit board design which is given below
PP module
The assembled module:
The assembled module
The module is used mostly SMD components (resistors, capacitors). 
ICs in DIP packages, as at the time of the assembly I did not have them in the planar version, and so would they just did (and even smaller hole size). Diode VD10 positioned on the opposite side of the board. 
Amplifier control is performed using the keyboard and the remote tuning knob remote control. 
remote control I used the old version of the device. One can use any control that operates on standard RC-5. I have here is - on it and it is written RC-5.
Red button - STANDBY 
With pattern dynamics - MUTE 
1,2,3 - Select Channel 
Menu - MENU 
Txt - LOUDNESS 
-Vol, Vol + - LEFT, RIGHT 
Ch (Up) - UP, Ch (DOWN) - DOWN 
keys to change the destination, need to change the key codes in the file preamp.h , and recompile the project. I used when developing WinAVR compiler version from 2006.
Keyboard

Scheme:
Keyboard scheme
The keyboard is built into an array of 12 buttons (4x3): 
INPUT1 - choice of one channel; 
INPUT2 - choice of 2 channels; 
INPUT3 - choice of 3 channels; 
LOUDNESS - on / off tonkonpensatsii; 
MUTE - Mute (shutdown occurs gradually rather than abruptly ). Press again to turn mute; 
STANDBY - off the amplifier. Disconnects the power amplifier and its power supply, processor module operates in standby mode; 
MENU - button to enter the sub-menu, it is possible to set additional parameters, such as time, date, temperature operating temperature sensors control radiators; 
Pressing this button In this mode, you return to the main menu amplifier control without changing the settings. For the new settings have been saved, you must click on SET. 
SET - as mentioned above, it is save the new settings in the submenu. 
the main pressing the SET button you can see the temperature of radiators, the information is displayed within 2-3 seconds. 
UP / DOWN - Move to the previous / next menu or submenu; 
LEFT / RIGHT - increase / decrease in the relevant parameter that is displayed on the LCD. 
Key button practiced the program almost immediately, but the depression and the response to the STANDBY requires pressed for about 3 seconds. MUTE buttons and LOUDNESS about 1 second. This is done to avoid triggering an accidental click on these buttons especially if you use the remote control. circuit board for the keyboard at first I did not want to provide, since it depends on the design of housing and personal preferences, the placement of buttons and everything else. But for example, decided still lead. Here it is: 

PP keyboard
But just warning you that it was bred for a specific case and my preferences. 
And matrix layout of buttons here does not match the keyboard diagram. Special problems it causes, because you can change the key codes in the program and recompile the project, which allows plant matrix as he wants (though if there is little experience in programming.) Otherwise it is better to dissolve the matrix according to the original scheme, since the firmware is listed under it.Example test board where the circuit layout corresponds to the scheme 
Test Board
Walkover.

At the beginning of the development I did not have the industrial walkover, had to think of something. Climb over the Internet, I found that suited me - it's the tuning knob on the basis of the stepper motor from the old 5 inch floppy disk drives. 
Since it (the engine), I had decided to apply it, and as it turned out for good reason. 
walkover earned immediately and as it turned out, then has another advantage - it does not bounce (he has not physically). Program for processing to be simple and very good work. Realizing that not everyone has the opportunity to find an engine, I ordered the industrial walkover, and when he came, I started experimenting with it. That's where my problem began. Valkoder not worked steadily and missed pulses (the reason was because of the bounce). I will not describe the "war" with these. In the end, I got reliable operation and industrial walkover. 
But the negative point still remains, it is different microcontroller firmware for different types of tuning knob (motor industry). Versatile has not turned out (but I decide this problem.) Here is a diagram and pattern of the printed circuit board assembled tuning knob on the basis of the engine: 
Diagram of a walkover
Figure PP module walkover
Ready Module
When rotating clockwise - simulates pressing the RIGHT. 
Turning counterclockwise - simulates pressing the LEFT. Main Menu Management amplifier consists of the following items: Volume (Volume) Attens (Gain) Bass (Bass) Treble ( Treble) Balans F (Front speaker balance) Balans R (rear speaker balance) and as previously described, the movement through the menu buttons UP / DOWN (keys and remote), but adjusting keys LEFT / RIGHT (and the tuning knob). This mode works as the key SET, while you click on that for about 3 seconds displays the values ​​of temperature sensors. When you press the MENU button we get to the sub-menu to set the parameters. time, date, and the maximum temperature for tripping temperature (including cooling fan). This menu consists of items: "Set Time: Hour" (set time - hours), "Set Time: Min" (setting time - minutes), "Set Time: Sec" (set time - seconds), "Set Date: Day "(setting the date - the day), "Set Date: Mes" (setting the date - month), "Set Date: Year" (setting the date - the year), "Set MAX DS18x20" (set temperature Thermal protection) - the value of 45 up to 75 degrees. In this mode, the motion through the menu buttons UP / DOWN (keys and remote), but adjusting keys LEFT / RIGHT (and the tuning knob.) In any of the items, if we press the key MENU, then we go back to the main menu without saving the new setting, and if you press the SET button and save changes parameters. Here is a few drawings with images regimes. Sorry for the quality of pictures. My camera can not be better, but I think you will understand and get an idea of what's what. presents, not all possible modes of operation, there is no such MUTE, a start-up, etc. 




Temperature sensors series DS1820. There have also been tested and type DS18S20 also showed his best side, but with sensors DS18B20, as written by our comrades who have repeated and assisted me in testing said that sometimes slipped in the derivation of the values ​​of temperature of 85 degrees. As long as I do not have such a presence, and in the shops of the city, too, are not selling - for some reason. So I can not check. 
If the temperature sensor is not connected, the functions of the program to monitor temperatures are disabled. 
The following firmware is implemented as remote control setting for any keys that are comfortable to the user for a specific console.Installing FUSE Microcontroller ATMEGA16-16PU is shown in Figure 
Setting the fuse bits
I'm "sews" STK200 programmer program PonyProg. 
This bunch has never failed me, and I use it for several years - no problems at all. If a laptop, then use the USB programmer from Protoss AVR910. 
processor module is powered from a power supply of 5 volts and consumes ~ 150-200 mA (depending on the LCD display and applied it to light). I used indicator of WinStar WH1602D. 
power supply for the modules M1 and M2 are built on the classical scheme and has no singularities. 
should be specified only that the power supply 5 Volt is plugged in constantly to provide standby (STANDBY). 
circuit power supply module:
Connector X23 - this is for the fan power for cooling. Diodes VD10-VD12 is quenching diodes to reduce stress. Their number can be increased or decreased. I sought the fan normally turned on, rotate fast enough, but the main thing that made any noise. You can of course go the other way - a lot of options here. You can put another regulator, such as the 9.8 volt type 7808-7809 or to make LM317 adjustable voltage output. Since the 0.12-0.2 A fan uses the heatsink is not needed. If you have a transformer with two secondary windings, it can be two separate and replaced by one. And one more note, although the power supply circuit is quite simple, take it seriously, especially if you are using a pulsed sources. Those who assembled the device and switching power applied to poor filtering of interference led to lockups. 5V power supply to run continuously when using the STANDBY. Therefore, it is desirable to make reliable high enough.
The output portion.
And finally, I'll write a little about the output of the amplifier, such as the power supply UMNCH, PA amplifiers themselves and protection unit speakers. While these schemes and are, but I drew them can say for myself, that would have been as it were complete. 
These schemes are not designed by me (links to the developers and their sites are shown in the diagram) and that either talking about them, I do not see the point. One can say that all of them have been collected (and time) and tested me. They showed their best side. They began working immediately without any settings (thanks to the authors) and have a good performance for the quality of the sound. I was quite happy. 
you can use almost any amplifier and speaker protection, which is more comfortable with you. 
I have not brought any protection scheme speakers (even for an example) for the reason that I have not completely decided on the scheme. But for myself, I'm going to do exactly. Tend to protect fellow Kotova (for searching the Internet, looking for easy). I repeat - you can use any that meets your needs. 
This amplifier to my knowledge was repeated several people (not including me) 
That's all friends, 
I hope I'm not tired. 
schema reference modules, printed circuit boards, firmware for the two types of encoders and the source code of the program for the microcontroller See below, explore who is interested learn, upgrade and share with others.

Voltmeter ammeter Nokia511

  Voltmeter, ammeter, power meter, with display Nokia511


                    Diagram:
Details:  Nokia 5110 display controller-based PCD8544, MK ATmega8 any letter, in DIP and TQFP performance . And OU  Lm 328 or  Lm 2,904.

  • dual-band voltage meter, the total measuring range from 0 to 100 V .
 from 0.00 to 9.99 V . voltage measurement resolution of 0.01 V ,
 from 10.0 to 100.0 V  voltage measurement resolution of  0.1 V .
  • ammeter 0.00 to 10.00A 0.01A current measurement resolution. 
  • Protection of trigger on excess consumption amps
  • voltmeter number 2 and number 3 with  a measuring range from 0 to 30 V .
  • power meter, 
    •  range from 0.00 to 999.99 Watt ,   step display measuring 0.01 watts.
  • mapping of internal resistance connected load in the SM
  • Thermometer  accuracy of  0.1 ° C 
  •  hardware PWM (PWM)   IC, the frequency of 62.5 kHz, 
duty cycle - Shima is displayed in the main screen% basis,   from 0 to 100%
During operation, the control buttons,  KH1, KH2, NH3  ;
KH2  makes a choice (set cursor) to the PWM control   or setting the threshold drawdown protection ammeter
 button  KN1, NH3  perform the function of reducing or increasing, protection threshold amps or PWM values.
(Reset protection will ammeter is made ​​by pressing any key  KN1, NH2, NH3 )

Setting up the scheme after assembly (first start).
Setting the voltmeter: start with the  first sub-band is input to the "0-100 V " any DC voltage to 9.98 V,
and comparing with the test voltmeter, set up  trimmer  R -1  equally visible readings,
and behave similarly to the second subband,
provide the input to "0-100 V "  voltage of 10.1 V  and comparing with the test voltmeter
set up  trimmer  R -2  same voltage reading.

Voltmeters number 2 and number 3   are adjusted resistor  R -4,  R -5.
Change the range of the ammeter (up to 20A and 30A, the default is set to 10A ) can be so set the jumper on the total supply, 19 foot (port RV5) to include a scheme to check visually the installation of security resulting range, if the range is the one that is required to remove the jumper if not, repeat the action.
(NOTE! Choice of a new range of the ammeter in the working scheme would entail trimming resistor feedback circuit ammeter and the subsequent adjustment of the resistor  R -3 ) 
R -3  adjustment of the ammeter.
An example of a possible connection schemes and relay voltampervattmetra, in the laboratory power supply.

   FUSE . MK RS clocked from the internal oscillator at a frequency of 8MHz.

 Photos, displaying information on the display.
  

  
A few words about the work of the PWM output in this scheme ... 
To the question, why do we need it? I now have no answer ....))) In this scheme, it is connected to the highlight indicator,   a little video how it works (duration 2min.12sek.)

  

  In the main screen when the cursor is positioned on the symbol %  duty cycle regulated buttons KN1 , NH3.

PS power supply of the scheme.
 In my version, 5V power supply.   Here and there displeychike which Nokia5110 written 3 - 5 volts.
 In practice, this is normal, but :)) reminded me of some long-standing association, about 1  watt Chinese ... 1 Chinese amps ....
In general, check the work of the scheme, with the help of his LBE. 
 The result, in the range of 2.6 to 5 volts, the circuit produces a measuring and operating normally. So here it is, comrades users, the choice is left to you, proven 3.3 volts, or do not doubt anything, and we use the usual 5 volts ....

Minggu, 08 September 2013

R, L, C and ESR

 R, L, C and ESR. hxRLCMeter



Content
 The article describes an amateur measuring device on ATMega8. Some schematics are from similar developments, the firmware is written from scratch. 
Provides a detailed description of the principles of measurement of various quantities by the microcontroller. Printed circuit board and firmware included.
 Video of the instrument:

 

Description of the instrument
The device is designed for measuring the capacitance, inductance, resistance, and ESR electrolytic capacitor.
ESR can be measured in the circuit.
The device has a recreational purpose and does not pretend to high accuracy. In amateur practice, mainly required to know the approximate value to collect circuit. Precision measurements in the table below is based on a measurement known components, the spread parameter which is typically up to 10%.
Table. Measuring ranges and accuracy
Parameter
Measurement range
Accuracy
The resistance of
The 1st - 2 MW
at least 10% in the range up to 400K, not more than 20% in the range of 400K-2 MW
Capacity
1pF - 3mkF
at least 10%
Inductance
1mkG - 100mg
at least 10%
ESR
0.01Om - 10 Ohm
better than 20%
Additional effort, the measurement accuracy can be improved by an order, even without changing the circuit. I did not continue to develop as the device is fully satisfy me in its current form. Also, I do not have precise instruments for calibration.
On the front panel are LCD-display (8 digits), with measurement of R, L, C, socket for measuring ESR, and the zero button. On the side panel are buttons toggle and power. Alternatively, you can measure the ESR in the scheme of the probes connected on the top panel.
As the housing body is taken from the router DLink DI-524.

Operation


Measurement of resistance
To measure the resistance element, it is switched sequentially with known resistance. Just see Scheme 4 resistance (R22-R25) for different ranges, which in turn are connected microcontroller.
Resistor in series with the process due to the nature schemes included resistor R21 (100 ohms) to prevent a short circuit when switching switches SW1-SW4.
As the keys are used transistors 2N7002, unsoldered from the motherboard.
A chain (R21 + Rx + Rcal) in turn provides a filtered power supply (Uavcc, 5V) and the measured voltage drop (Usence) resistors Rcal (R22 - R25).
Rx = Rcal * Uavcc / Usence - Rcal - R21 Resistance Drain-open and closed transistors are ignored.
From all the measurements is selected the one which gives the best accuracy. For this simplified device calculates the derivative of this function. Given that razryadnot ADC is 1024 units, it is enough to calculate the change with an increase in Rx Usence on Uavcc/1024. The value of the smallest change is accepted as the most accurate.


Capacitance measurement
Capacitance measurement is based on measuring the oscillation frequency of the LC-circuit. This unknown capacitance is connected in parallel with a certain inductance L1 and capacitance C1.


The natural frequency of the oscillation circuit is calculated as:
F = 1 / (2 * pi * sqrt (L * C))
The spread of the parameters of parts can significantly change the frequency of oscillation, so a direct measurement of the frequency can not give reliable results. 
Calibrated measurement parameters using the components L1, C1, C4.
To do this, the instrument measures the frequency resonant circuits L1C1 and L1 (C1 + C4): Chain D4D5C12 allows you to connect the capacitor C4 to the oscillator circuit, changing the potential on pin C1EN microcontroller.
Increased accuracy requirements imposed only to the calibration capacitor C4.
The frequency of the oscillation circuit L1C1:
F1 = 1 / (2 * pi * sqrt (L1 * C1))
The frequency of the oscillation circuit L1 (C1 + C4):
F2 = 1 / (2 * pi * sqrt (L1 * (C1 + C4)))
The frequency of the oscillation circuit L1 (C1 + Cx)
F3 = 1 / (2 * pi * sqrt (L1 * (C1 + Cx)))
From the above equations we derive the value of Cx, depending only on C4:
Cx = C4 * (F1 / F3) ^ 2 / (F1 / F2) ^ 2
Calibration of the instrument (measurement of F1 and F2) is made when you switch to measure capacitance, so at this point the device to the jack nothing should be connected. You can also re-run the calibration using the zero (the empty nest). Instrument calibration is stored in the EEPROM.
The capacitance value of C1 does not have to exactly match the value specified in the scheme. Instead, it suffices to measure C1 knowingly and precision instrument to make the capacitance value in the firmware.


Measurement of inductance
Measuring the inductance based on the same principle as the capacitance measurement. Unknown inductance connected in series with an inductance L1. 
Increased accuracy requirements imposed only to the calibration capacitor C4.
The frequency of the oscillation circuit L1C1:
F1 = 1 / (2 * pi * sqrt (L1 * C1))
The frequency of the oscillation circuit (L1C1 + C4)
F2 = 1 / (2 * pi * sqrt (L1 * (C1 + C4)))
The frequency of the oscillation circuit (L1 + Lx) C1:
F2 = 1 / (2 * pi * sqrt ((L1 + Lx) * C1))
Derive the formula for calculation of Lx, depending only on C4:
  Lx = ((F1/F3) ^ 2 - 1) * ((F2/F3) ^ 2 - 1) * (1/C4) * (1 / (4 * pi ^ 2 * F1 ^ 2)) 
Because of the characteristics of the circuit, the calibration mode, the inductance is not possible - it should be implemented in the measuring container. So before the first use, or to get more accurate results, briefly switch to measure capacitance. Subsequently, the calibration is stored in the EEPROM.


Measurement of ESR
ESR measurement is based on measuring the voltage drop across the unknown element of a sinusoidal signal of 100 kHz.At this frequency, the reactance of the capacitor is close to zero and can be ignored. The value of the voltage drop reflects the resistance of the element.
The amplitude of the applied sinusoidal signal does not exceed 80 mV, which allows measuring ESR, not vypaivaya capacitors of the circuit. At this voltage, silicon and germanium transitions are not open and do not affect the measurement result. However, it should be borne in mind that low impedance is the fact serviceability capacitor as measured by the total resistance of the circuit, for example - of parallel capacitors. On the other hand, high resistance probably faulty.


100 kHz square wave is generated by the microcontroller on the MOSI pin and extends filter R28C24 R29C23 R30C25, which leaves only a sinusoidal harmonic of 100 kHz.
Emitter follower Q1 generates a sinusoidal current at the chain R27 R14 TR1-1.
Parallel winding TR1-1 included a chain R16C37Rx. Therefore, the resistance Rx affects the current flowing through the primary winding of TR1.
Diodes D5, D7 and capacitor C16 are used to protect the device when connected to a circuit with a charged.
The resistor R37 is necessary in order to eliminate the influence of parasitic oscillation circuit formed by the capacitor C16, and the winding of the transformer wire leads. By introducing additional resistance, we reduce the "Q" and the amplitude of the resonance circuit.
Empowered by the transformer voltage is rectified chain D8C17 and enhanced operational amplifiers U5: A b U5: B 3 and (3 * 21) times. The first value is used to measure large values ​​of resistance (> 3 ohms), the second - small.
The device applies a pulse transformer WYEE-16C of the duty of the computer power supply Codegen-300X, taken without rewinding.
The measured resistance of the non-linear effect on the current flowing through the winding TR1. Also at the measured output voltage transformer strongly affects parameter spread parts. Therefore, the device is calibrated by a set of known resistance. The calibration is saved in the EEPROM.
Nutrition
A short press of the button SW5 provides power to the device, after which the microcontroller supports the power supply by means of a reed relay RL1. The unit will automatically turn off after 5 minutes of inactivity, if jacks nothing is connected, or after 15 minutes when connected.
To force the power off, press and hold SW5, until the screen turns off.
The device measures the battery voltage (for display discharge) through a resistor RV3.
And the circuit board are for variant powered by a 9V battery. In a real device I decided to use three AA batteries. In this case, instead of 78L05 put the jumper, and a stable 5V power is supplied to the inverter collected on mc34063.


Make contacts relay in this case should stand in the chain "+" on the battery. 
should also file a "+" battery after a relay to pin 3 RV3
Setting up the instrument
To configure the device will need an oscilloscope and RS232-TLL cable, and a set of calibration resistor 0.1 ohm (3 pieces), 0.2, 0.3, 0.6, 1.0, 2.2, 3.6, 4.7, 6.6, and 10 ohms.
Setting the resistance measurement
Setting the measurement of resistance is reduced to checking for opening the pulse gate field-effect transistors.
By the resistors R21-R25 are increased requirements in terms of accuracy, but the exact match of resistance values ​​shown in the scheme is not required. Instead, it suffices to measure the available resistors obviously a precision instrument, and to indicate the measured values ​​of the resistance in the firmware.


Setting the capacitance measurement
You must make sure that the output pin of U1 is present meander, the frequency of which depends on the connected capacity. Setting the inductance

You must make sure that the output pin of U1 is present meander, the frequency of which depends on the connected inductance.  Setting ESR measurements

Setting ESR - the most complicated.
1.Please use the RS232-TTL cable to the connector J6.
2. We switch SW4 is set to "ON".  
At pin 19 U4 is set to "0", the device switches to "ESR". Displayed on the terminal prompt:
MODEESR: ....
3. Oscilloscope check the availability of 100 kHz square wave pulse on pin 17 U4 (packs of 0.5 seconds with a pause of 1 second).
 

4. After passing through the filter R28C24 R29C23 R30C25 impulses become almost a sine wave.
and fed to the base of transistor Q1 through a divider R15R33, which must be chosen so that when connected to a 10 ohm resistor schupam lower point slightly higher than the voltage sinusoid opening tranzictora (~ 600mV), and the amplitude of the signal created based on the resistor R14 fluctuations scale ~ 80mV .

4. Check if there is a sine wave on the second side of the transformer.

6. Calibrate operational amplifiers.
ESR meter test leads are short-circuited. Adjust the bias voltage U5: A resistor RV1. Achieve, that when a pulse sine wave output voltage of 1 U5: A rose to ~ 300 mV.
7. This was followed by the same adjustment amplifier U5: B resistor RV2, controlling output 7 oscilloscope.
8. Connect the test leads to the ESR meter calibration resistor with a resistance of 10 ohms (this is the upper limit of the measuring instrument.) 
When a pulse, the output voltage 1 U5: A must rise to the level of ~ 3.5V. If the voltage exceeds 3.7V, the need to pick up the gain, defined resistances R20R13.
Resistors R32R18R31 define the gain of the second amplifier, which is used for measuring low resistance values.
In the original scheme gain factors are used, and 21 3. If they will change - you need to fix the constant ESR2_MUL = 21/3 in the firmware.
9. By connecting various known resistance to schupam ESR meter, you need to make sure that the smaller values ​​correspond to lower resistance values ​​of voltage at the output 1 U5: A, and vice versa (the dependence of non-linear).
10. We start the software calibration. 
Probes ESR meter short or push button SB1 (hold for 1 sec.) The device stores the voltage on the ESR1 and ESR2. They are displayed in the terminal as a zero = ... and should be in the range of 10-200 if the levels at the outputs of the operational amplifiers are configured correctly.
MODEESR: ESR1 = 67 (zero: 67) 
ESR2 = 21 (zero: 20) 
ESR = 1 
res * 1000 = 0

11. Connecting calibration resistance 0.05 ohms (two parallel resistor 0.1), the terminal sends the character "c", "a".Thus the instrument stores the calibration value for the resistance of 0.1 ohms in the EEPROM. In response, the text is displayed:
Done: xx

And the printed calibration table. This also repeat for the remaining gauge resistors respectively pressing "c", "b", "c", "d", etc. Denominations calibration resistors can be changed in the firmware in the table s_ESR_CAL_R.
At the end of using the values ​​would be nice to build a schedule to make sure that all "seems to be true." I got this:

Fill flash
Fill flash is via connector J3 (nestandarny format under my programmer). When programming the device to be switched to a mode other than the ESR, and hold the power button all the time.
The repetition of the scheme and used items
I developed the scheme for themselves, so it uses the details that I had, or that I was easier to get. In particular, the device uses specific indicator LCD controller mpd7225, taken from the broken tape Sony. Obviously, with the repetition of the scheme it should be replaced by any other 8-segment display interface SPI, and replace procedures of communication with the indicator in the firmware (file LCD_D7225.h, LCD_D7225.c). You can also remove the chain R9-R12, D1-D3, U3, serving to harmonize levels of 5V-3.3V.


Files: 
Source Project