Author Topic: $20 LCR ESR Transistor checker project  (Read 3451237 times)

jellytot and 14 Guests are viewing this topic.

Offline Obelix2007

  • Regular Contributor
  • *
  • Posts: 59
  • Country: de
Re: $20 LCR ESR Transistor checker project
« Reply #6975 on: June 28, 2021, 09:46:09 am »
... the mod is only a rotary/switch encoder for better menu selection. No need for programming but helpfull in daily use.

Also I changing the xtal from 8 to 16 MHz.

Sorry my bad english.

Greetings Horst
« Last Edit: June 28, 2021, 10:05:14 am by Obelix2007 »
 

Offline mspec

  • Contributor
  • !
  • Posts: 18
  • Country: nz
Re: $20 LCR ESR Transistor checker project
« Reply #6976 on: June 28, 2021, 10:10:58 am »
Thanks for the info. Your English is great  :)
 

Offline Andbro

  • Regular Contributor
  • *
  • Posts: 119
Re: $20 LCR ESR Transistor checker project
« Reply #6977 on: June 28, 2021, 11:21:09 pm »
Hi,

Is it possible to upgrade the MK168 ?


Thank
 

Offline madires

  • Super Contributor
  • ***
  • Posts: 7767
  • Country: de
  • A qualified hobbyist ;)
Re: $20 LCR ESR Transistor checker project
« Reply #6978 on: June 29, 2021, 10:15:24 am »
Yes, k-firmware still supports the ATmega168. However, I'd suggest to replace the 168 with a 328 to get more flash memory. This way you can use most features of the current firmwares (k & m).
 

Offline indman

  • Super Contributor
  • ***
  • Posts: 1012
  • Country: by
Re: $20 LCR ESR Transistor checker project
« Reply #6979 on: June 29, 2021, 10:24:51 am »
I'd suggest to replace the 168 with a 328 to get more flash memory.
Madires, the ATMEGA328 processor has already been installed in the MK-168 model. The model name does not reflect its internal content. ;)
ATMEGA168 apparently installed in this model for a very long time. :D

« Last Edit: June 29, 2021, 10:26:28 am by indman »
 
The following users thanked this post: madires

Offline Andbro

  • Regular Contributor
  • *
  • Posts: 119
Re: $20 LCR ESR Transistor checker project
« Reply #6980 on: June 29, 2021, 11:55:11 am »
Hi,

For me, inside it's a ATMEGA168P. I have found the firmware Rev804En(8Mhz), but it's for an ATMEGA328.
And if i try to makefile with PATNO = m168p, i have this message:

> "make.exe" all
rm -rf ../Obj/TransistorTester
mkdir -p ../Obj/TransistorTester
mkdir -p ../Obj/TransistorTester/dep
avr-gcc  -Wall -DNO_ICONS_DEMO -DFONT_7X12 -DWITH_SELFTEST -DAUTO_CAL -DSHORT_UNCAL_MSG -DWITH_UJT -DWITH_PUT -DFET_Idss -DWITH_AUTO_REF -DREF_C_KORR=10 -DREF_L_KORR=40 -DC_H_KORR=0 -DWITH_UART -DRMETER_WITH_L -DCAP_EMPTY_LEVEL=4 -DAUTOSCALE_ADC -DREF_R_KORR=3 -DESR_ZERO=20 -DNO_AREF_CAP -DUSE_EEPROM -DNO_LONG_PINLAYOUT -DPULLUP_DISABLE -DANZ_MESS=30 -DPOWER_OFF -DBAT_CHECK -DBAT_OUT=150 -DBAT_POOR=6400 -DBAT_NUMERATOR=133 -DBAT_DENOMINATOR=33 -DEXT_NUMERATOR=10 -DEXT_DENOMINATOR=1 -mcall-prologues -I. -DLANG_ENGLISH -DF_CPU=8000000UL -DF_CPU_HZ=8000000 -DMHZ_CPU=8 -mmcu=atmega168 -gdwarf-2 -std=gnu99 -Os -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -MD -MP -MT lcd_hw_4_bit.o -MF ../Obj/TransistorTester/dep/lcd_hw_4_bit.o.d  -ffunction-sections -fdata-sections -DSamplingADC -c -o ../Obj/TransistorTester/lcd_hw_4_bit.o ../lcd_hw_4_bit.S
avr-gcc  -Wall -DNO_ICONS_DEMO -DFONT_7X12 -DWITH_SELFTEST -DAUTO_CAL -DSHORT_UNCAL_MSG -DWITH_UJT -DWITH_PUT -DFET_Idss -DWITH_AUTO_REF -DREF_C_KORR=10 -DREF_L_KORR=40 -DC_H_KORR=0 -DWITH_UART -DRMETER_WITH_L -DCAP_EMPTY_LEVEL=4 -DAUTOSCALE_ADC -DREF_R_KORR=3 -DESR_ZERO=20 -DNO_AREF_CAP -DUSE_EEPROM -DNO_LONG_PINLAYOUT -DPULLUP_DISABLE -DANZ_MESS=30 -DPOWER_OFF -DBAT_CHECK -DBAT_OUT=150 -DBAT_POOR=6400 -DBAT_NUMERATOR=133 -DBAT_DENOMINATOR=33 -DEXT_NUMERATOR=10 -DEXT_DENOMINATOR=1 -mcall-prologues -I. -DLANG_ENGLISH -DF_CPU=8000000UL -DF_CPU_HZ=8000000 -DMHZ_CPU=8 -mmcu=atmega168 -gdwarf-2 -std=gnu99 -Os -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -MD -MP -MT lcd-routines.o -MF ../Obj/TransistorTester/dep/lcd-routines.o.d  -ffunction-sections -fdata-sections -DSamplingADC -c -o ../Obj/TransistorTester/lcd-routines.o ../lcd-routines.c
make.exe: *** No rule to make target `../Obj/TransistorTester/i2lcd.o', needed by `../Obj/TransistorTester/TransistorTester.elf'.  Stop.

> Process Exit Code: 2
> Time Taken: 00:03

Thank for your help
 

Offline indman

  • Super Contributor
  • ***
  • Posts: 1012
  • Country: by
Re: $20 LCR ESR Transistor checker project
« Reply #6981 on: June 29, 2021, 12:16:43 pm »
Andbro, in what year did you buy this clone? I'm just wondering,in 2014, the Chinese already installed the 328th processor in such models. Can you show a photo of the circuit board with the processor168 installed?
 

Offline madires

  • Super Contributor
  • ***
  • Posts: 7767
  • Country: de
  • A qualified hobbyist ;)
Re: $20 LCR ESR Transistor checker project
« Reply #6982 on: June 29, 2021, 12:20:29 pm »
make.exe: *** No rule to make target `../Obj/TransistorTester/i2lcd.o', needed by `../Obj/TransistorTester/TransistorTester.elf'.  Stop.

I there a rule like
Code: [Select]
$(OBJDIR)/i2lcd.o: ../i2lcd.S $(MKFILES)
        $(CC) $(INCLUDES) $(CFLAGS) -c -o $@ $<
in the Makefile?
 

Offline indman

  • Super Contributor
  • ***
  • Posts: 1012
  • Country: by
Re: $20 LCR ESR Transistor checker project
« Reply #6983 on: June 29, 2021, 12:34:10 pm »
For me, inside it's a ATMEGA168P. I have found the firmware Rev804En(8Mhz), but it's for an ATMEGA328.
And if i try to makefile with PATNO = m168p, i have this message:
You used a makefile from the old revision 804, so you got an error when compiling.
In more new releases of k-firmware,the structure of the source files has been changed,so it is necessary to compile the firmware based on a makefile that corresponds to the new structure. The Default folder already has a ready-made firmware in English for ATmega168 (9V).
« Last Edit: June 29, 2021, 12:36:21 pm by indman »
 

Offline Andbro

  • Regular Contributor
  • *
  • Posts: 119
Re: $20 LCR ESR Transistor checker project
« Reply #6984 on: June 29, 2021, 02:21:51 pm »
Hi,


I have bought at very low price last week on Amazon. On board, you can see the year 2015. The firmware version is 1.07k.


Thank
 

Offline Andbro

  • Regular Contributor
  • *
  • Posts: 119
Re: $20 LCR ESR Transistor checker project
« Reply #6985 on: June 29, 2021, 05:49:07 pm »
Hi,

Problem resolved for the MK168 with ATMEGA168P. MCU replaced by ATMEGA328P and crystal 8Mhz replaced by 16Mhz.

Last question, where i can find the latest firmware for this model ?


Thank for your help and support
 

Offline madires

  • Super Contributor
  • ***
  • Posts: 7767
  • Country: de
  • A qualified hobbyist ;)
Re: $20 LCR ESR Transistor checker project
« Reply #6986 on: June 29, 2021, 09:32:12 pm »
One page back I've posted the links for the repository. Presumably you need to configure and compile the firmware yourself. For the k-firmware you could try the Makefile from mega328_2X16_menu and change the MCU frequency to 16 MHz.
 

Offline Chris02

  • Contributor
  • Posts: 28
  • Country: de
Re: $20 LCR ESR Transistor checker project
« Reply #6987 on: June 30, 2021, 08:26:07 am »
Hello,

my T7 has 8mA sleep current. Did I anything wrong with compiling SW? After plugging in battery idle current is a few nA. But after the first measurement it won't go to sleep again.

@Markus
At resistor measurement with E24/E96 function will it be possible to show color code and value?
E.g. you are measuring a resistor, tester shows E24 5% 150 & 160  \$\Omega\$ and you will be able to compare colors to select the right one. At the moment you have colors or value. Maybe for SMD resistors EIA-96 code (e.g 01C = 10k) will be a nice  feature.
 

Offline Andbro

  • Regular Contributor
  • *
  • Posts: 119
Re: $20 LCR ESR Transistor checker project
« Reply #6988 on: June 30, 2021, 02:28:53 pm »
Hi Madires,

All is working very well for my New Old Stock MK168. An ATMEGA168p  replaced by a ATMEGA328P, a crystal from 8Mhz to 16 MHz and the latest firmware.


thank
 

Offline madires

  • Super Contributor
  • ***
  • Posts: 7767
  • Country: de
  • A qualified hobbyist ;)
Re: $20 LCR ESR Transistor checker project
« Reply #6989 on: June 30, 2021, 02:50:58 pm »
my T7 has 8mA sleep current. Did I anything wrong with compiling SW? After plugging in battery idle current is a few nA. But after the first measurement it won't go to sleep again.

Are you using the two-transistor mod? What have you set for POWER_CTRL (_PORT and _DDR)?

At resistor measurement with E24/E96 function will it be possible to show color code and value?
E.g. you are measuring a resistor, tester shows E24 5% 150 & 160  \$\Omega\$ and you will be able to compare colors to select the right one. At the moment you have colors or value.

IIRC, you can enable both (_CC and _T) at the same time.

Maybe for SMD resistors EIA-96 code (e.g 01C = 10k) will be a nice  feature.

Sounds like a good idea. I'll add it to my to-do list.
 

Offline Chris02

  • Contributor
  • Posts: 28
  • Country: de
Re: $20 LCR ESR Transistor checker project
« Reply #6990 on: July 01, 2021, 06:16:28 am »
my T7 has 8mA sleep current. Did I anything wrong with compiling SW? After plugging in battery idle current is a few nA. But after the first measurement it won't go to sleep again.

Are you using the two-transistor mod? What have you set for POWER_CTRL (_PORT and _DDR)?
No, I'm using SW mod at U4.

Power control is set like you mentioned in "clones"
/*
 *  power control
 *  - can't be same port as ADC_PORT or R_PORT
 */

#define POWER_PORT       PORTD     /* port data register */
#define POWER_DDR        DDRD      /* port data direction register */
#define POWER_CTRL       PD2       /* controls power (1: on / 0: off) */

At resistor measurement with E24/E96 function will it be possible to show color code and value?
E.g. you are measuring a resistor, tester shows E24 5% 150 & 160  \$\Omega\$ and you will be able to compare colors to select the right one. At the moment you have colors or value.

IIRC, you can enable both (_CC and _T) at the same time.
It is working, thanks.


You wrote in "clones"
Quote
- boost converter for Zener check
  (runs all the time, non-standard voltage divider 100k/12k)
I guess you are talking about R5/R6. Which is standard value? (maybe it will be a useful info in "clones") I have two testers. One with 100k/10k and the other one with 120k/7,5k. Maybe this is already my standby problem?
Edit:
with 100k/12k  you mean R17/R18. Maybe you can add it to "clones". My one is also 100k/12k. So I need to replace it?

I guess I also found my problem about sleep current but not the solution yet. After the first power on there are still 2.2V on 5V VCC. On 78L05 IN is only 1,6V. Shorting 2.2V to discharge all Cs doesn't change anything, There are still 2.2V
« Last Edit: July 01, 2021, 07:40:23 am by Chris02 »
 

Offline madires

  • Super Contributor
  • ***
  • Posts: 7767
  • Country: de
  • A qualified hobbyist ;)
Re: $20 LCR ESR Transistor checker project
« Reply #6991 on: July 01, 2021, 11:18:03 am »
No, I'm using SW mod at U4.

Power control is set like you mentioned in "clones"

#define POWER_PORT       PORTD     /* port data register */
#define POWER_DDR        DDRD      /* port data direction register */
#define POWER_CTRL       PD2       /* controls power (1: on / 0: off) */

The settings seem to be fine. I'm wondering about the low quiescent current. With its original firmware U4 draws around 1mA or so.

You wrote in "clones"
Quote
- boost converter for Zener check
  (runs all the time, non-standard voltage divider 100k/12k)
I guess you are talking about R5/R6. Which is standard value? (maybe it will be a useful info in "clones") I have two testers. One with 100k/10k and the other one with 120k/7,5k. Maybe this is already my standby problem?
Edit:
with 100k/12k  you mean R17/R18. Maybe you can add it to "clones". My one is also 100k/12k. So I need to replace it?

The standard values for the Zener voltage divider are 180k/20k (10:1). If your tester uses a divider with a different ratio you can adjust that in config.h (enable ZENER_DIVIDER_CUSTOM, and set ZENER_R1 and ZENER_R2). No need to change resistors. The boost converter of the TC-1/T7 is running when the tester is powered on. So it shouldn't effect the quiescent current.

I guess I also found my problem about sleep current but not the solution yet. After the first power on there are still 2.2V on 5V VCC. On 78L05 IN is only 1,6V. Shorting 2.2V to discharge all Cs doesn't change anything, There are still 2.2V

Please see https://disk.yandex.ru/d/yW8xa5NJgUo5z for the schematic.
« Last Edit: July 01, 2021, 11:24:46 am by madires »
 

Offline indman

  • Super Contributor
  • ***
  • Posts: 1012
  • Country: by
Re: $20 LCR ESR Transistor checker project
« Reply #6992 on: July 01, 2021, 12:30:41 pm »
The settings seem to be fine. I'm wondering about the low quiescent current. With its original firmware U4 draws around 1mA or so.
The use of U4 is an unsuccessful circuit design solution that creates many problems in the tester's work.
The cardinal solution is to replace U4 with a circuit of 2 transistors ,which was proposed by madires and update firmware.
On my TC1 clone after deleting U4, the current consumption is 0.0042 mA(4mkA) in sleep mode. ;)
« Last Edit: July 01, 2021, 02:29:50 pm by indman »
 
The following users thanked this post: elecdonia

Offline madires

  • Super Contributor
  • ***
  • Posts: 7767
  • Country: de
  • A qualified hobbyist ;)
Re: $20 LCR ESR Transistor checker project
« Reply #6993 on: July 01, 2021, 01:35:52 pm »
Chris02 said that he programmed the alternative firmware for U4 and after connecting the battery the quiescent current was just a few nA. That's what I'm curious about since the current should be much higher with U4.
 

Offline indman

  • Super Contributor
  • ***
  • Posts: 1012
  • Country: by
Re: $20 LCR ESR Transistor checker project
« Reply #6994 on: July 01, 2021, 01:53:09 pm »
my T7 has 8mA sleep current.After plugging in battery idle current is a few nA. But after the first measurement it won't go to sleep again.
The problem with a large current consumption in sleep mode after updating the U4 alternative firmware is observed by almost every TC1-T7 owner. A lot of owners put an additional power switch due to the fact that the tester does not turn off normally,and also freezes after several measurements.
« Last Edit: July 01, 2021, 01:55:19 pm by indman »
 
The following users thanked this post: elecdonia

Offline Chris02

  • Contributor
  • Posts: 28
  • Country: de
Re: $20 LCR ESR Transistor checker project
« Reply #6995 on: July 01, 2021, 08:09:10 pm »
Thanks for your replies. If the solution is to replace U4 with this simple circuit I'll do it. It is much better then having a empty tester every time you need it :)
I'll post result after mod is done.
 

Offline tsmith35

  • Frequent Contributor
  • **
  • Posts: 265
  • Country: us
Re: $20 LCR ESR Transistor checker project
« Reply #6996 on: July 04, 2021, 04:42:58 am »
So after looking at U4 on my TC2, I see that it is now a SOT23-6 marked B628. This corresponds to an LN3608 / SX1308 which is a high-efficiency 1.2 MHz 2A step-up converter as opposed to the STC15L104W 80c51 mcu used on prior versions.
 
The following users thanked this post: elecdonia

Offline indman

  • Super Contributor
  • ***
  • Posts: 1012
  • Country: by
Re: $20 LCR ESR Transistor checker project
« Reply #6997 on: July 04, 2021, 07:32:06 am »
tsmith35,on the board of the T7Plus v0.1 version, the STC power management chip is marked U3.
 

Offline tsmith35

  • Frequent Contributor
  • **
  • Posts: 265
  • Country: us
Re: $20 LCR ESR Transistor checker project
« Reply #6998 on: July 04, 2021, 08:24:57 am »
tsmith35,on the board of the T7Plus v0.1 version, the STC power management chip is marked U3.
Okay, good information to have. Thank you!
 

Offline H202

  • Contributor
  • Posts: 10
  • Country: 00
Re: $20 LCR ESR Transistor checker project
« Reply #6999 on: July 06, 2021, 09:05:35 am »
What "ERROR!" means during adjustment in 1.43m ?
Closed/open calibration are OK, then it displays reference/comparator voltage, and ERROR.

Measured capacitors are 1.5..2 times bigger than nominal value (1.13K firmware measures much closer to nominal).
Also it frequently can't reliably detect component on 1-3 terminals, instead uses 1-2, 1.13k detects better.

M328P @8M, powered from LiPo with XC6206.
Vref LM431, divider resistors 10K/3K 1%, but instead of 3.2..3.3V it displays Vbat=3.53..3.56V - IMHO too big difference...
« Last Edit: July 06, 2021, 11:22:11 am by H202 »
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf