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

GraemeG and 12 Guests are viewing this topic.

Offline madires

  • Super Contributor
  • ***
  • Posts: 9113
  • Country: de
  • A qualified hobbyist ;)
Re: $20 LCR ESR Transistor checker project
« Reply #9350 on: April 04, 2024, 11:33:55 am »
Didn't know that there are some JFETs with an integrated flyback diode. I'll add that to the todo list. And I also need to investigate the impact on symmetrical JFETs.
« Last Edit: April 04, 2024, 01:36:09 pm by madires »
 

Offline Feliciano

  • Frequent Contributor
  • **
  • Posts: 278
  • Country: ve
Re: $20 LCR ESR Transistor checker project
« Reply #9351 on: April 04, 2024, 02:08:56 pm »
Same with some BJT, as you know. So I wonder, what if we add a thin diode symbol bitmap, and concatenate it to the normal symbol when required? In fact, from the capture of Yuriy_K's firmware, I guess he's doing that and the diode is in different color?
 

Offline indman

  • Super Contributor
  • ***
  • Posts: 1440
  • Country: by
Re: $20 LCR ESR Transistor checker project
« Reply #9352 on: April 04, 2024, 02:27:01 pm »
Feliciano, The color of the diode does not play a special role here. For ATMega644-1284 it is easier to draw a few more additional symbols with a built-in diode - this will not significantly increase the size of the firmware. For ATMega328 with a limited memory size, the diode symbol option like Karl-Heinz is more preferable, but this forces the remaining symbols to be shifted to the left to make room for a possible diode, which I don’t really like.
 

Offline madires

  • Super Contributor
  • ***
  • Posts: 9113
  • Country: de
  • A qualified hobbyist ;)
Re: $20 LCR ESR Transistor checker project
« Reply #9353 on: April 04, 2024, 03:33:23 pm »
Didn't know that there are some JFETs with an integrated flyback diode. I'll add that to the todo list. And I also need to investigate the impact on symmetrical JFETs.

This is becoming more complex. I've tested a few JFETs with an additional diode between source and drain. For a n-ch JFET an optional flyback diode would work out of the box. And it would also determine source and drain. Reversing the diode also reverses source and drain. The detection of a p-ch JFET is totally messed up by a flyback diode, i.e. drain and source are the opposite of what they should be, and I_DSS and V_GS_off are much too high (because of the source/drain reversal plus the diode).
 

Offline Feliciano

  • Frequent Contributor
  • **
  • Posts: 278
  • Country: ve
Re: $20 LCR ESR Transistor checker project
« Reply #9354 on: April 04, 2024, 03:37:59 pm »
indman, the color of the diode itself is not a deal-breaker, but being in different color makes me think it was generated by another method and printed (to the screen) as needed. I think that would be a nice feature to have, that's my real suggestion. The symbol itself would require a few extra Bytes, my major concern would it be the code-size for inserting it to the right of the other symbol. And if slim, it won't affect much. Or, I don't know whether it would possible to overlap the other bitmap, or between the numbers, to avoid the shift.

And regarding to having the body diode or not by default, I and noticed it's present in some of the m-firmware bitmaps. For the majority of MOSFET I know of, they has it, so I'm not sure on which one would it be the best default option (but indeed in m-firmware we have both options to choose from). I haven't looked at kh's for that part yet, though.
« Last Edit: April 04, 2024, 04:20:51 pm by Feliciano »
 

Offline indman

  • Super Contributor
  • ***
  • Posts: 1440
  • Country: by
Re: $20 LCR ESR Transistor checker project
« Reply #9355 on: April 04, 2024, 04:01:06 pm »
And regarding to having the body diode or not by default, I and noticed it's present in some of the m-firmware bitmaps.
Yes, it is. Look carefully at the title of the description: who created these character sets? ;)
 

Offline Feliciano

  • Frequent Contributor
  • **
  • Posts: 278
  • Country: ve
Re: $20 LCR ESR Transistor checker project
« Reply #9356 on: April 04, 2024, 04:19:05 pm »
Of course madires and you, dear.

And now I found the explanation of what I'm seing, on an old Yuriy_K's post, which if the code size confirms it, it could be a reasonable alternative, as long as the symbol's letters are kept to the left of the wires (and of course we choose a diode-less symbols bitmap).
« Last Edit: April 04, 2024, 07:57:43 pm by Feliciano »
 

Offline Feliciano

  • Frequent Contributor
  • **
  • Posts: 278
  • Country: ve
Re: $20 LCR ESR Transistor checker project
« Reply #9357 on: April 04, 2024, 08:27:10 pm »
And as a matter of fact, a couple of posts down, you can notice inductor, crystal, and batteries symbols in the font set, instead of the symbol set. I guess that saves a little memory too. Maybe madires would like to check those alternative approachs again?
 

Offline madires

  • Super Contributor
  • ***
  • Posts: 9113
  • Country: de
  • A qualified hobbyist ;)
Re: $20 LCR ESR Transistor checker project
« Reply #9358 on: April 05, 2024, 10:57:27 am »
Each new symbol display variant increases the complexity and we already have a few variants (-> maintainability).
 

Offline madires

  • Super Contributor
  • ***
  • Posts: 9113
  • Country: de
  • A qualified hobbyist ;)
Re: $20 LCR ESR Transistor checker project
« Reply #9359 on: April 05, 2024, 11:11:32 am »
Back to JFETs with an integrated flyback diode. Yuriy_K has such an n-ch JFET. But are there also p-ch JFETs with a diode?
 

Offline Feliciano

  • Frequent Contributor
  • **
  • Posts: 278
  • Country: ve
Re: $20 LCR ESR Transistor checker project
« Reply #9360 on: April 05, 2024, 12:37:48 pm »
From what I see, for transistors he uses the standard symbols, and optionally takes the upward or downward diode from custom extra characters of the font, and prints it under the upper-right terminal number. For other components, takes a more traditional approach, but with a different character code. Attached some examples for differents scenarios.

Whether easy or not to implement, and/or the code-size versus tradicional solution, and/or the feasibility for 32KB, you're the expert.
« Last Edit: April 05, 2024, 04:22:05 pm by Feliciano »
 

Offline indman

  • Super Contributor
  • ***
  • Posts: 1440
  • Country: by
Re: $20 LCR ESR Transistor checker project
« Reply #9361 on: April 05, 2024, 04:22:25 pm »
From what I see, for transistors he uses the standard symbols, and optionally takes the upward or downward diode from custom extra characters of the font, and prints it under the upper-right terminal number.
No, on the first photo in post #9362 we see that Yuriy_K has found a nicer way to display this additional diode.Whether he will share this way or not we do not know. All the previous examples you have shown do not make me want to apply them.
 
The following users thanked this post: horo

Offline Yuriy_K

  • Regular Contributor
  • *
  • Posts: 211
  • Country: ru
Re: $20 LCR ESR Transistor checker project
« Reply #9362 on: April 05, 2024, 07:16:26 pm »
Everything I need, I try to do myself. All my homemade testers were made for 2.2" - 2.8" color displays. In your eighth decade, it is difficult to work with small displays. The latest solution is a refinement of an earlier idea. Need some work on the symbols and font...
 
The following users thanked this post: indman, Obelix2007, horo, Fuzzy Star

Offline indman

  • Super Contributor
  • ***
  • Posts: 1440
  • Country: by
Re: $20 LCR ESR Transistor checker project
« Reply #9363 on: April 05, 2024, 07:39:30 pm »
The latest solution is a refinement of an earlier idea.
Yes, everything is clear now, thank you. You draw an additional diode using 3 lines. :-+
A perfectly reasonable approach, but it does require some work on the existing character sets we currently have.
« Last Edit: April 05, 2024, 07:43:05 pm by indman »
 

Offline Feliciano

  • Frequent Contributor
  • **
  • Posts: 278
  • Country: ve
Re: $20 LCR ESR Transistor checker project
« Reply #9364 on: April 06, 2024, 12:07:23 pm »
Congratulations, Yuriy_K, for being active for so long :)
 

Offline madires

  • Super Contributor
  • ***
  • Posts: 9113
  • Country: de
  • A qualified hobbyist ;)
Re: $20 LCR ESR Transistor checker project
« Reply #9365 on: April 06, 2024, 01:55:14 pm »
Yes, everything is clear now, thank you. You draw an additional diode using 3 lines. :-+
A perfectly reasonable approach, but it does require some work on the existing character sets we currently have.

And the symbol size has to be three times the font size for a perfect match. For example, for high resolution displays the default font is 16x26. So the symbols should be 3 * 26 = 78 pixels high. Since symbols are resized in the display driver (only for high resolution displays) by a default factor of 2, the height can be reduced to 78 / 2 = 39 pixels. Alternatively we could go for a resize factor of 3 and use the font's height of 26. But this would look too pixelated.
 

Offline madires

  • Super Contributor
  • ***
  • Posts: 9113
  • Country: de
  • A qualified hobbyist ;)
Re: $20 LCR ESR Transistor checker project
« Reply #9366 on: April 07, 2024, 05:06:35 pm »
It took a while but I managed to understand why a flyback diode screwed up the D/S detection of a p-channel JFET and therefore also a few measurements of parameters. The intrinsic diode of a p-channel depletion-mode MOSFET should have the same impact (never tested because I don't have any of those). The fix is fairly simple, just a few lines of code. So the next version of the m-firmware will include the fix and also show an optional flyback diode for JFETs.

If you like to beta-test, edit semi.c, function CheckDepletionModeFET(), in the block for p-channel depletion-mode FETs and look for
Code: [Select]
      /*
       *  Compare gate voltages to distinguish JFET from MOSFET
       */

      /* set probes: probe-1 -- Vcc / probe-2 -- Rl -- Gnd / probe-3 -- Rh -- Gnd */
      R_PORT = 0;                       /* pull down drain via Rl & gate via Rh */
      ...

Directly above that insert:
Code: [Select]
      /* consider intrinsic or optional flyback diode (causes low Diff_2) */
      if (Diff_2 < (Offset / 2))          /* diode */
      {
        /* swap Diff_1 and Diff_2 */
        /* to fix reversed D/S issue caused by diode */
        U_1 = Diff_1;
        Diff_1 = Diff_2;
        Diff_2 = U_1;
      }


      /*
       *  Compare gate voltages to distinguish JFET from MOSFET
       */

And also modify function Show_FET() in main.c to call Show_FET_Extras() without any condition (remove the if (...)).
 
The following users thanked this post: horo

Offline Yuriy_K

  • Regular Contributor
  • *
  • Posts: 211
  • Country: ru
Re: $20 LCR ESR Transistor checker project
« Reply #9367 on: April 08, 2024, 02:59:00 am »
There may be something else, this insert does not give the desired result for searching for a diode. Diode search for N-ch JFET stopped working.
  Diode = SearchDiode(Anode, Cathode);
  if (Diode != NULL)          /* got it */    =  NULL
 

Offline madires

  • Super Contributor
  • ***
  • Posts: 9113
  • Country: de
  • A qualified hobbyist ;)
Re: $20 LCR ESR Transistor checker project
« Reply #9368 on: April 08, 2024, 11:21:58 am »
You've inserted the patch into the section for n-channel depletion-mode FETs which causes the new problem. The section for p-channel FETs is a bit further down and starts with:
Code: [Select]
  /*
   *  check if we got a p-channel JFET or depletion-mode MOSFET
   *  - JFETs are depletion-mode only
   */

  if (Flag != SIGNAL_FET)     /* no n-ch dep-mode FET found */
  ...
 
The following users thanked this post: Yuriy_K

Offline Yuriy_K

  • Regular Contributor
  • *
  • Posts: 211
  • Country: ru
Re: $20 LCR ESR Transistor checker project
« Reply #9369 on: April 08, 2024, 04:12:56 pm »
Now everything is working fine. To avoid confusion in the place of correction, I am attaching the modified files. Check who needs...

JFET N-ch 2SK212
« Last Edit: April 08, 2024, 04:29:03 pm by Yuriy_K »
 

Offline indman

  • Super Contributor
  • ***
  • Posts: 1440
  • Country: by
Re: $20 LCR ESR Transistor checker project
« Reply #9370 on: April 08, 2024, 04:19:44 pm »
Back to JFETs with an integrated flyback diode. Yuriy_K has such an n-ch JFET. But are there also p-ch JFETs with a diode?
  I have not found a single mention on the Internet of any JFET p-ch witch a diode.  :)

« Last Edit: April 08, 2024, 04:59:20 pm by indman »
 

Offline madires

  • Super Contributor
  • ***
  • Posts: 9113
  • Country: de
  • A qualified hobbyist ;)
Re: $20 LCR ESR Transistor checker project
« Reply #9371 on: April 08, 2024, 05:25:50 pm »
Me neither. All I've found was some paper about a high voltage SiC JFET with integrated flyback diode.
 

Offline Adrian_Arg.

  • Frequent Contributor
  • **
  • Posts: 457
  • Country: ar
Re: $20 LCR ESR Transistor checker project
« Reply #9372 on: April 09, 2024, 09:55:02 pm »
Hello people, getting crazier and crazier, I am trying to update the firmware from version 1.40 to 1.52, since I had to return the programmer, since I have not been able to make it work, I set up the connection this way,


I tried loading an Arduino bootloader from Arduino and perfect, I loaded the ArduinoISP.ino file onto the Arduino master board and placed it in Arduino as ISP mode. and it works well, now when I have loaded previous versions of firmware to the GN328, it always starts like this. To know that the connection worked
But the next step was to upload my compilation, which I couldn't do, so I started changing Arduinos uno and mega, and the target chip and nothing. So I thought that my build now was really garbage.

I said I'm going to load the one I'm using that I had downloaded from the web, which is the one I'm using, but the same problem continues and I have configured AVRdude in many ways and it still gives me the same result



The truth is that unfortunately I never captured the screen of how I configured it, with the programmer that they had lent me it loaded, but the screen remains blank, now nothing, nor loads. any ideas friends

 

Offline Kim Christensen

  • Super Contributor
  • ***
  • Posts: 1819
  • Country: ca
Re: $20 LCR ESR Transistor checker project
« Reply #9373 on: April 09, 2024, 10:11:22 pm »
Hello people, getting crazier and crazier, I am trying to update the firmware from version 1.40 to 1.52, since I had to return the programmer, since I have not been able to make it work, I set up the connection this way

You should have a 12-22pF a capacitor from pin 9 to ground and from pin 10 to ground. Oscillator may be unstable without them.
Also, putting a 0.1uF capacitor across pins 7 & 8 might be a good idea.
« Last Edit: April 09, 2024, 10:15:18 pm by Kim Christensen »
 

Offline Adrian_Arg.

  • Frequent Contributor
  • **
  • Posts: 457
  • Country: ar
Re: $20 LCR ESR Transistor checker project
« Reply #9374 on: April 09, 2024, 10:18:15 pm »
Hello people, getting crazier and crazier, I am trying to update the firmware from version 1.40 to 1.52, since I had to return the programmer, since I have not been able to make it work, I set up the connection this way

You should have a 12-22pF a capacitor from pin 9 to ground and from pin 10 to ground. Oscillator may be unstable without them.
Also, putting a 0.1uF capacitor across pins 7 & 8 might be a good idea.

Yes, they are not in that image but I put the two capacitors in it 22pf
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf