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

moimem and 14 Guests are viewing this topic.

Offline mrmox

  • Contributor
  • Posts: 12
  • Country: us
Re: $20 LCR ESR Transistor checker project
« Reply #6700 on: January 14, 2021, 05:04:17 pm »
CORRECTED SCHEMATIC FOR CHINESE CLONE LCR-T4
from 91make (and others)

It took days of searching for me to FIND the revised corrected schematic.
The errored one is very widely distributed and there are lots of fake russian sites trying to get
you to sign up for some service complete with fake testimonials about how great the service is.

Here I found Transistortester_T4_1d_100dpi.png by Roland dated 29.08.2016 with the corrections
I had proposed (and perhaps more).

https://www.mikrocontroller.net/topic/248078?page=23

https://www.mikrocontroller.net/attachment/304138/Transistortester_T4_1d_100dpi.png

Best wishes to all.


 
The following users thanked this post: edavid, coromonadalix, Vague

Offline hobbyist

  • Newbie
  • Posts: 9
Frequency counter input voltage
« Reply #6701 on: January 17, 2021, 02:26:29 am »
What is the right voltage input for the frequency counter on an AY-AT tester with the M firmware?  The PDF for the K firmware seems to say that the input should be 2.4 volts.  Is it OK to have a sine wave input?  Are negative voltages a problem?  If not, then does the tester expect a frequency that is 0 volts low and 2.4 volts peak?  Do I need to use a Schmitt trigger for low frequencies?  What voltages would damage the tester?   
 

Offline madires

  • Super Contributor
  • ***
  • Posts: 8179
  • Country: de
  • A qualified hobbyist ;)
Re: $20 LCR ESR Transistor checker project
« Reply #6702 on: January 17, 2021, 01:29:18 pm »
The frequency counter (pin T0) is triggered by a low signal and the AY-AT has a voltage divider between Gnd and Vcc plus a 100 nF DC blocking cap as input circuitry. Any voltage lower than Gnd or higher than 5 V at T0 can damage the ATmega. If you limit the current the clamping diodes are able to protect the input to some degree. Sine wave is fine, but I haven't tested very low frequencies.
 
The following users thanked this post: hobbyist

Offline DAIRVINE

  • Contributor
  • Posts: 45
Re: $20 LCR ESR Transistor checker project
« Reply #6703 on: January 19, 2021, 10:14:00 pm »
Hello Madires,
To compile: Download source from Madires current website.
Download and run AVRSTUDIO 7. Do not choose to install the latest version. Then follow the instructions in:
https://microchipsupport.force.com/s/article/Creating-a-project-from-Makefile-in-Atmel-Studio
Steps for importing makefile project into Atmel Studio :-
Step 1:- Go to Atmel Studio->Tools->Extension and updates->Available Downloads
Step 2:- Install "Create Project from Makefile" extension.
Step 3:- Restart Atmel Studio
Step 4:- Go to Atmel Studio 7->Tools->Create Project from Makefile
Step 5:- Choose the makefile and project name according to the instructions given in the window.
Step 6:- Click "Create Project"
Step 7:- After the project is created it can be built within Atmel Studio itself.
Then add an empty dep subdirectory to remove build errors.
Please can I recommend that you add a blank dep subdirectory to avoid this AVRstudio 7 compile error?

Also, please can you explain how to compile for a particular known model of tester? In my case an ordered T4, I cannot figure it out.
Thanks.
 

Offline madires

  • Super Contributor
  • ***
  • Posts: 8179
  • Country: de
  • A qualified hobbyist ;)
Re: $20 LCR ESR Transistor checker project
« Reply #6704 on: January 20, 2021, 12:12:49 pm »
Please can I recommend that you add a blank dep subdirectory to avoid this AVRstudio 7 compile error?

I'll update the Makefile.

Also, please can you explain how to compile for a particular known model of tester? In my case an ordered T4, I cannot figure it out.
Thanks.

Please see the file "Clones" for the settings for your clone and edit config.h and config_328.h accordingly.
 

Offline DAIRVINE

  • Contributor
  • Posts: 45
Re: $20 LCR ESR Transistor checker project
« Reply #6705 on: January 20, 2021, 03:10:53 pm »
Re compile options for T4,
OK, thanks. I will follow that.
Which IDE are you using?
 

Offline madires

  • Super Contributor
  • ***
  • Posts: 8179
  • Country: de
  • A qualified hobbyist ;)
Re: $20 LCR ESR Transistor checker project
« Reply #6706 on: January 20, 2021, 06:11:36 pm »
A text editor and make - quite spartan.
 
The following users thanked this post: horo

Offline carrascoso

  • Contributor
  • Posts: 42
  • Country: es
Re: $20 LCR ESR Transistor checker project
« Reply #6707 on: January 21, 2021, 03:40:38 pm »
Hi.
They gave me a GM328 that they broke when measuring a charged electrolytic capacitor. The SVR05-4 was shorted, and the Atmega was bad too.
I removed the SVR05-4 and the P6KE6V8A since they are not necessary for the proper functioning of the meter, and I programmed another Atmega at 20Mhz (and tested with several) and also changed the Xtal to 20Mhz.
Now it turns on smoothly, but it doesn't work properly.

When I turn on the meter without any components in the measurement socket, it should indicate that there are no components.
Well, it indicates that there are high value resistors or high value capacitors connected.
With normal use of the meter I put components in the socket and except for the capacitors all other components seem to measure well.

The same happens with firm M and firm K, so it is a meter problem.

E measured continuity from the 3 points where the component to be measured is placed to pins 23-24-25 of the Atmega.
From those 3 same points to pins 14-15-16-17-18-19, checking that the resistors are good.

7550 output voltage when measuring component, stable 4.97V.
TL431 output voltage, 2.48V stable.

I would appreciate a help. Thank you

   
« Last Edit: January 21, 2021, 04:40:18 pm by carrascoso »
 

Offline Cliff Matthews

  • Supporter
  • ****
  • Posts: 1911
  • Country: ca
    • General Repair and Support
Re: $20 LCR ESR Transistor checker project
« Reply #6708 on: January 21, 2021, 04:13:38 pm »
I wonder if we'll see a Raspberry Pi RP2040-based transistor tester? $4 for dual Arms, on-board slave MCU's, and 12-bit A/D's  :-+
« Last Edit: January 21, 2021, 05:16:34 pm by Cliff Matthews »
 

Offline indman

  • Super Contributor
  • ***
  • Posts: 1171
  • Country: by
Re: $20 LCR ESR Transistor checker project
« Reply #6709 on: January 21, 2021, 04:35:23 pm »
TL431 output voltage, 2.98V stable.
I would appreciate a help. Thank you
2.98V or 2.48V?
Show us the T1-T6 hardware test results
 

Offline carrascoso

  • Contributor
  • Posts: 42
  • Country: es
Re: $20 LCR ESR Transistor checker project
« Reply #6710 on: January 21, 2021, 04:46:45 pm »
TL431 output voltage, 2.98V stable.
I would appreciate a help. Thank you
2.98V or 2.48V?
Show us the T1-T6 hardware test results

Sorry 2.48v
I do not understand the hardware results T1-T6
thanks
 

Offline indman

  • Super Contributor
  • ***
  • Posts: 1171
  • Country: by
Re: $20 LCR ESR Transistor checker project
« Reply #6711 on: January 21, 2021, 04:56:49 pm »
K-Firmware manual carefully read section 5.5 Selftest Function. M-Firmware has the same section + Self Test
 

Offline carrascoso

  • Contributor
  • Posts: 42
  • Country: es
Re: $20 LCR ESR Transistor checker project
« Reply #6712 on: January 21, 2021, 06:19:23 pm »
Performed test 5.5 in K-Firmware, it is carried out resulting between the test terminals 0ohm.
Performed Self Test with M-Firmware, it performs it with the same result.

But after I test without connecting anything, the problem continues.    :-// :-//     
 

Offline indman

  • Super Contributor
  • ***
  • Posts: 1171
  • Country: by
Re: $20 LCR ESR Transistor checker project
« Reply #6713 on: January 21, 2021, 06:54:18 pm »

Full Selfest is performed after entering the main menu of the tester
 

Offline carrascoso

  • Contributor
  • Posts: 42
  • Country: es
Re: $20 LCR ESR Transistor checker project
« Reply #6714 on: January 21, 2021, 07:25:50 pm »
The self-evaluation and calibration is carried out within the menu. It does both without problem but the problem remains.
Firm M only asks for the step of shorting the three terminals, it does not ask for the >100nf and <10nf capacitors. The firm K does ask for the three steps.
I have other GM328 meters, one with the firm K and one with the M and they work fine.
 

Offline indman

  • Super Contributor
  • ***
  • Posts: 1171
  • Country: by
Re: $20 LCR ESR Transistor checker project
« Reply #6715 on: January 21, 2021, 08:32:38 pm »
carrascoso, don't you understand me? I ask you to write the results that show the T1-T6 hardware tests! Then the reason why phantom parts are detected with empty test contacts will be clearer. Most likely the reason is a leak on the board or damaged processor ports.
 

Offline mrmox

  • Contributor
  • Posts: 12
  • Country: us
Re: $20 LCR ESR Transistor checker project
« Reply #6716 on: January 21, 2021, 09:01:27 pm »
carrascoso does not seem to appreciate that "the test runs" is not enough!  The test never says "ERROR", it is up to the user to READ THE NUMBERS and compare them to the description of the test.  Often they are reported in mv and the answer is supposed to be a low number for all 3 (like less than 20mv or so...the code author has subtracted off the expected value and is displaying the difference for your convenience).  Other times a value is reported directly.  Best Wishes.
 

Offline DAIRVINE

  • Contributor
  • Posts: 45
Re: $20 LCR ESR Transistor checker project
« Reply #6717 on: January 22, 2021, 08:56:58 am »
Madires
AVRstudio 7 has the advantage of a simulator and, if you have a debugwire adaptor, debug.
AVRstudio 7 requires you to create the Madires  project from makefile.
AVRstudio 7 requires ComponentTester to be renamed ComponentTester.elf for the simulator and debug to work.
I can do this by changing the object file extension in the makefile, see changes below.

Is it possible to change the makefile to generate ComponentTester and ComponentTester.elf for everyone? Makefile is arcane and I checked google and tried CP and XCOPY but failed to replicate the file with a .elf extension.

# link firmware
$(NAME): ${OBJECTS}
    ${CC} ${LDFLAGS} ${OBJECTS} ${LIBDIRS} ${LIBS}  -o ${NAME}.elf


# create hex file of firmware
%.hex: ${NAME}.elf
   avr-objcopy -O ihex ${HEX_FLASH_FLAGS} $< $@

# create hex file of EEPROM data
%.eep: ${NAME}.elf
   -avr-objcopy ${HEX_EEPROM_FLAGS} -O ihex $< $@ || exit 0

# create dump of firmware
%.lss: ${NAME}.elf
   avr-objdump -h -S $< > $@

# output size of firmware and stuff
size: ${NAME}.elf
   @echo
   @avr-size -C --mcu=${MCU} $<


 

Offline madires

  • Super Contributor
  • ***
  • Posts: 8179
  • Country: de
  • A qualified hobbyist ;)
Re: $20 LCR ESR Transistor checker project
« Reply #6718 on: January 22, 2021, 10:40:49 am »
I could add a new target "elf" to the Makefile. Does a manual "cp ComponentTester ComponentTester.elf" work?
 

Offline DAIRVINE

  • Contributor
  • Posts: 45
Re: $20 LCR ESR Transistor checker project
« Reply #6719 on: January 22, 2021, 04:01:05 pm »
Madires,
"I could add a new target "elf" to the Makefile. Does a manual "cp ComponentTester ComponentTester.elf" work?"
Exactly. I tried that but failed to get it to work.

I tried a number of variants suggested by google using CP and XCOPY and COPY and none that I tried resulted in a .elf file with AVRstudio. I am sure that I am making a trivial mistake because I am making random guesses without understanding it.
 
You probably would benefit from using an IDE and AVRstudio has the benefit of a simulator so you can run to a breakpoint and step through your programs without any hardware and, I assume, if you acquire a debugwire interface you can debug the hardware.
 

Offline madires

  • Super Contributor
  • ***
  • Posts: 8179
  • Country: de
  • A qualified hobbyist ;)
Re: $20 LCR ESR Transistor checker project
« Reply #6720 on: January 22, 2021, 04:09:31 pm »
Have you tried the "cp ..." in a shell (not via the Makefile)? AVR studio doesn't run on my PC natively. ;)
 

Offline carrascoso

  • Contributor
  • Posts: 42
  • Country: es
Re: $20 LCR ESR Transistor checker project
« Reply #6721 on: January 22, 2021, 06:27:49 pm »
Hi.
After doing different tests I had not been able to find the problem. She was even going to make a video calibrating the meter to see if it could be fixed.
I decided to change the socket where the component to be tested is placed.
Due to the tin with which it was soldered (this equipment was given to me already assembled) it has been impossible for me to remove it, but I have been able to remove a lot of tin from the holes.
And in order not to damage the PCB by doing some force, I decided to leave the same socket, but using good quality tin.
And from this moment on, the meter works correctly.
Possibly the problem was the tin with which the assembly was made. If it fails again, I would comment on it again.

Thank you very much for your help.
 

Offline mrmox

  • Contributor
  • Posts: 12
  • Country: us
Re: $20 LCR ESR Transistor checker project
« Reply #6722 on: January 23, 2021, 04:15:48 am »
A while after I posted this I realized that the Makefile scheme for the K-firmware and the M-Firmware are vastly different.
I now believe the K-Firmware uses specialized Makefiles for each PCB permutation, while with the M-Firmware
you make #define changes in the config.h and config_328.h files by editing them yourself.
MY COMMENT APPLIES ONLY TO THE  K-Firmware!  (But let me know if I am wrong!)
Sorry if I contributed confusion.



This is working for me to get to breakpoint debugging on hardware but it goes in the finish.mk file

%.lss: $(TARGET)
   $(AVR_TOOL/PATH)avr-objdump -h -S $< > $@
   ls $<
   cp $< ../mega328_T4_v2_st7565/JaysAS7_LCR-T4v2.elf
   @echo JAY thinks he can COPY THE ELF.

size: ${TARGET}

(I included some context) (you will need to adjust it for name)

IIRC, you have to copy it before it gets deleted!

Best All.
« Last Edit: February 04, 2021, 11:58:27 pm by mrmox »
 

Offline DAIRVINE

  • Contributor
  • Posts: 45
Re: $20 LCR ESR Transistor checker project
« Reply #6723 on: January 23, 2021, 09:12:40 am »
Madires,
Re AVRstudio is not compatible with your computer, that is a shame.
I have used and can recommend Eclipse as a good IDE, but it is a lot more tricky to set up than AVRstudio. Which effort is probably not justified unless it was your job, given that what you do now is working. I find the eclipse forums are far more helpful than I ever found IAR  or Keil. Also I have never used eclipse with debugwire so am not certain of the debug part.

I look back with some nostalgia at AVR MCUs. Having looked afresh I now see limitations of the old AVR MCUs.

AVR studio works fine for me so far with the object file renamed to .elf in the makefile and the empty dep folder. Anyone using avrstudio with your code will find the solution in this forum. So there is no need to solve the copy issue.
Thank you for looking at it.
 

Offline madires

  • Super Contributor
  • ***
  • Posts: 8179
  • Country: de
  • A qualified hobbyist ;)
Re: $20 LCR ESR Transistor checker project
« Reply #6724 on: January 23, 2021, 03:19:42 pm »
I wonder if we'll see a Raspberry Pi RP2040-based transistor tester? $4 for dual Arms, on-board slave MCU's, and 12-bit A/D's  :-+

Nope, the Transistortester needs a 5V MCU.
 
The following users thanked this post: Cliff Matthews


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf