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

0 Members and 10 Guests are viewing this topic.

Offline indman

  • Super Contributor
  • ***
  • Posts: 1012
  • Country: by
Re: $20 LCR ESR Transistor checker project
« Reply #9250 on: March 03, 2024, 01:30:53 pm »
Feliciano,Now your clone shows adequate results on both firmware versions.
You should not expect from a simple tester that the measured capacity will exactly match what is written on the marking (I think these are truisms and there is no need to further explain the reasons).
 

Offline indman

  • Super Contributor
  • ***
  • Posts: 1012
  • Country: by
Re: $20 LCR ESR Transistor checker project
« Reply #9251 on: March 03, 2024, 01:42:17 pm »
I think these results are acceptable, and maybe it can be fine-tuned with compensation for each of the 3 ranges. Still, there's some difference between normal mode and monitoring mode. Being the same algorithm, I don't see the reason.
Yes, they can be easily adjusted if necessary!
As for the difference when measuring capacitance in AUTO mode and monitor mode, madires has already explained this behavior earlier, and also made a note in the manual(hint). I also think that the slight difference in results is most likely due to the fact that AUTO mode involves a lot more preliminary checks and steps before measuring capacitance. And in monitor mode, the algorithm is immediately configured to measure a certain parameter. But it is a little surprising that the first measurement in monitor mode is always very close to the value obtained in AUTO mode, but then decreases.
« Last Edit: March 03, 2024, 02:04:54 pm by indman »
 

Offline Feliciano

  • Regular Contributor
  • *
  • Posts: 214
  • Country: ve
Re: $20 LCR ESR Transistor checker project
« Reply #9252 on: March 03, 2024, 02:43:47 pm »
Yes, I mostly agree with you. I'm only elaborating because this is a public discussion, and different readers are at different levels.

Anyways, I backported my 1.51m to 1.50m, and it works, so something on my configuration or my build environment breaks 1.51m monitoring. At least now we know is something like that, and it will require further reviewing.

Regarding my measurements, Normally the first value is higher than expected, the second lower, and then the others are intermediate.

Just for reference, my 1000uF on 1.50m, with my same settings, measures:
  • on normal mode: 1033uF, then 1023uF, then 1026uf or so
  • on RCL monitoring: 1029uF, then 991uF, then 998uF or so

I also noticed that if I short the leads in LCR monitor mode, then it reads 0.05R 8.36uH.
And a short is still measured as 8uH on both modes.
« Last Edit: March 03, 2024, 04:54:11 pm by Feliciano »
 

Offline indman

  • Super Contributor
  • ***
  • Posts: 1012
  • Country: by
Re: $20 LCR ESR Transistor checker project
« Reply #9253 on: March 03, 2024, 04:03:48 pm »
Yes, I mostly agree with you. I'm only elaborating because this is a public discussion, and different readers are at different levels.
This is true, but nevertheless, if a person is involved in amateur radio and he needs this device not only as a beautiful toy, then he must have basic knowledge and concepts in electronics. And it's never too late to learn ;)
« Last Edit: March 03, 2024, 04:27:40 pm by indman »
 

Offline Feliciano

  • Regular Contributor
  • *
  • Posts: 214
  • Country: ve
Re: $20 LCR ESR Transistor checker project
« Reply #9254 on: March 03, 2024, 05:02:19 pm »
We agree again.

To rule-out my W10 build environment, I took indman's config and made 1.51m, with the result of LCR monitoring broken too. So it's not my config files, it's my setup. Hence I ask:
indman, what toolchain are you using?
With the default toolchain of WinAVR-20100110, I can build a hardware SPI (which we don't use for this), but I cannot make your config files fit (105% vs your 99.6%), and the LCR monitoring gets broken on 1.51m -but not on olders-.
And with the avr8-gnu-toolchain-installer-3.5.1.87 I cannot make a hardware SPI (the compilation errors I reported before).

It may be related with:
Quote
v1.51m 2023-12
- Changed GetThirdProbe() into convenience function UpdateProbes2() to reduce firmware size and adapted calls in various other functions (suggested by Viktor Klimkovich).
- Optimized DataStorage() and ManageAdjustmentStorage() to reduce firmware size (thanks to Viktor Klimkovich).
- Added option to slow down bit-bang SPI in case of a high MCU clock rate (SPI_SLOWDOWN, suggested by Viktor Klimkovich).
- Changed calculation of delay loop in IR_Detector() to support MCU overclocking (thanks to Viktor Klimkovich).
- Improved voltage drop algorithm in function LargeCap().
- Function LargeCap() takes now also negative zero offset into account.
« Last Edit: March 03, 2024, 06:20:43 pm by Feliciano »
 

Offline indman

  • Super Contributor
  • ***
  • Posts: 1012
  • Country: by
Re: $20 LCR ESR Transistor checker project
« Reply #9255 on: March 03, 2024, 05:09:16 pm »
Feliciano, I am using WinAVR-20100110 + AVR-GCC 8.3.0.
Use the search, not so long ago in this thread we discussed the most favorable combination of software for compilation to get a compact firmware size.
 
The following users thanked this post: Feliciano, Kim Christensen

Offline Feliciano

  • Regular Contributor
  • *
  • Posts: 214
  • Country: ve
Re: $20 LCR ESR Transistor checker project
« Reply #9256 on: March 03, 2024, 05:38:19 pm »
Thanks, I remember that discussion, but the conclusion was not clear to me.

I'm trying now that toolchain, downloaded from ZakKemble's github, but it gives me compile errors. I'm troubleshooting what it is.
Code: [Select]
avr-size: invalid option -- C
« Last Edit: March 03, 2024, 06:10:12 pm by Feliciano »
 

Offline indman

  • Super Contributor
  • ***
  • Posts: 1012
  • Country: by
Re: $20 LCR ESR Transistor checker project
« Reply #9257 on: March 03, 2024, 05:42:43 pm »
While you are figuring out how to install the software, you can give me your customized configuration files and font, I will compile the 1.51m firmware for you.
 
The following users thanked this post: Feliciano

Offline madires

  • Super Contributor
  • ***
  • Posts: 7771
  • Country: de
  • A qualified hobbyist ;)
Re: $20 LCR ESR Transistor checker project
« Reply #9258 on: March 03, 2024, 05:42:52 pm »
To rule-out my W10 build environment, I took indman's config and made 1.51m, with the result of LCR monitoring broken too. So it's not my config files, it's my system. Hence I ask:

Have you replaced the 1.51m's cap.c file with the fixed one (repo: cap.c-1.51m.tgz)?
 
The following users thanked this post: Feliciano

Offline Feliciano

  • Regular Contributor
  • *
  • Posts: 214
  • Country: ve
Re: $20 LCR ESR Transistor checker project
« Reply #9259 on: March 03, 2024, 05:52:09 pm »
As a little give-back to the project, here I present an alternate 8x16 hf western font. I composed it to be heavier and less serif than the existing one, and shifted a bit to the right, so I hope it gets better readability overall.

It's my first font from scratch, so please check it before adding to upcoming releases.
« Last Edit: March 04, 2024, 05:38:05 pm by Feliciano »
 
The following users thanked this post: madires, indman

Offline Feliciano

  • Regular Contributor
  • *
  • Posts: 214
  • Country: ve
Re: $20 LCR ESR Transistor checker project
« Reply #9260 on: March 03, 2024, 06:01:03 pm »
Have you replaced the 1.51m's cap.c file with the fixed one (repo: cap.c-1.51m.tgz)?
No, but I can fetch it an try again, once I fix the actual 8.3.0 toolchain incompatibility with the WinAVR2010.

In the meantime, I posted my config files on a previous message, and the custom font is on the previous post. So if somebody can build the binaries we can pinpoint the abnormal C monitoring differences bug. But me must note whether is with the december's cap.c or the current one.


EDIT:
I fixed the toolchain incompatibility, and made 1.51m with the old cap.c and with the new cap.c. And I can confirm now the monitoring bug can be specifically related to 1.51m and the old cap.c.

Special thanks to indman, and also Kim Christensen, 2hry and madires for the support.
« Last Edit: March 03, 2024, 08:35:09 pm by Feliciano »
 
The following users thanked this post: Kim Christensen

Offline indman

  • Super Contributor
  • ***
  • Posts: 1012
  • Country: by
Re: $20 LCR ESR Transistor checker project
« Reply #9261 on: March 03, 2024, 06:28:43 pm »
Feliciano, I'm glad you're over the problem!  :)
 I compiled the firmware with your font, it's in the archive.
There were a few errors in your config.h file, I fixed them. I also believe that for your clone, a correction of 0(-1%) for large capacitances is optimal. If you set +1.0, the tester will overestimate the capacitance on large capacitors, for example 4700.
 
The following users thanked this post: Feliciano, Kim Christensen

Offline Feliciano

  • Regular Contributor
  • *
  • Posts: 214
  • Country: ve
Re: $20 LCR ESR Transistor checker project
« Reply #9262 on: March 03, 2024, 06:49:07 pm »
Tried last indman's build.

And thinking about the compensation, I went to the other extreme, and tried a very large capacitor. I couldn't get a reading in this case: maybe the timeout for LCR monitoring is a tad short?

Note: I will check config's differences later.
 

Offline indman

  • Super Contributor
  • ***
  • Posts: 1012
  • Country: by
Re: $20 LCR ESR Transistor checker project
« Reply #9263 on: March 03, 2024, 06:53:49 pm »
And thinking about the compensation, I went to the other extreme, and tried a very large capacitor. I couldn't get a reading in this case: maybe the timeout for LCR monitoring is a tad short?
This is already interesting! I have not tested such large capacities in monitor mode. Tomorrow I'll check it on my clones. :D
 

Offline Kim Christensen

  • Super Contributor
  • ***
  • Posts: 1327
  • Country: ca
Re: $20 LCR ESR Transistor checker project
« Reply #9264 on: March 03, 2024, 08:49:06 pm »
Tried last indman's build.
And thinking about the compensation, I went to the other extreme, and tried a very large capacitor. I couldn't get a reading in this case: maybe the timeout for LCR monitoring is a tad short?
Note: I will check config's differences later.

I tried a 10,000uF and it worked in both modes with the "1.51mEn(8x16)Feliciano firmware". (Read as 11.78mF)
Then I paralleled another 8,200uF and it continued to work in both modes.  (Read as 19.6mF)
Crammed another 3900uF.   (Read as 26.19mF)
Note: My jumper wires did add some extra "ESR" and these, except for the 3900uF, were used parts...

Not sure what the point of your "ESR" test mode is, since it only works with capacitors... ie: RCL monitor does that already. Speed?

Feliciano, I am using WinAVR-20100110 + AVR-GCC 8.3.0.
Use the search, not so long ago in this thread we discussed the most favorable combination of software for compilation to get a compact firmware size.

Thanks. I'll try this instead of continuing with the "whack a mole" compiler error game that I'm currently playing... (Bit of a C compiler noob here, so the binaries and config files are a godsend)
FYI, the "FNIRSI 1.51mEnTestMonitor" binaries also worked fine with my unit in all modes.

EDIT on Mar 5th, 2024:
Here are the changes I made to my ComponentTester-1.51m code's makefile so it compiles using WinAVR-20100110 and AVR-GCC 8.3.0 and works on the TC-1 (FNIRSI-4A10 version) tester.
The LDFLAGS makes the code smaller so it'll fit.
"avr-size" is no longer supported and gave errors, so that line was commented out and "avr-objdump" was added instead.

MCU = atmega324p
FREQ = 16
LDFLAGS += -Wl,-relax
#   @avr-size -C --mcu=${MCU} $<
   @avr-objdump -Pmem-usage ${NAME}

See attached makefile which includes the above changes:
« Last Edit: March 06, 2024, 05:37:28 am by Kim Christensen »
 

Offline Feliciano

  • Regular Contributor
  • *
  • Posts: 214
  • Country: ve
Re: $20 LCR ESR Transistor checker project
« Reply #9265 on: March 03, 2024, 09:48:14 pm »
Not sure what the point of your "ESR" test mode is, since it only works with capacitors... ie: RCL monitor does that already. Speed?
From the manual:
Quote
The ESR tool measures capacitors in-circuit and displays the capacity and ESR if the measurement detects a valid capacitor. Make sure that the capacitor is discharged before connecting the tester! Values could differ from the standard measurement (out-of-circuit) because any component in parallel with the capacitor will affect the measurement.

Note: My jumper wires did add some extra "ESR"
That's why we have the "Adjustement" and "Save" for. In my case, I use the two connection methods by turns, so that's why I select the saved profile at the begining, but other people can prefer to adjust and not to save.

(Bit of a C compiler noob here, so the binaries and config files are a godsend)
From my part, a pleasure to help, and contribute a bit to the developement. And I think we also shall thank indman and the other people for helping support this clone variant, and ironing the code (either with the "say thanks" button, or in written).

BTW: I increased the cycle time, and now I can detect a 22mF. I suppose if we increase it more we could detect larger capacitors (like 44mF), but it would become a trade off on waiting when measuring "normal" values on regular basis.
« Last Edit: March 03, 2024, 10:06:40 pm by Feliciano »
 

Offline madires

  • Super Contributor
  • ***
  • Posts: 7771
  • Country: de
  • A qualified hobbyist ;)
Re: $20 LCR ESR Transistor checker project
« Reply #9266 on: March 04, 2024, 04:24:28 pm »
As a little give-back to the project, here I present an alternate 8x16 hf western font. I composed it to be heavier and less serif than the existing one, and shifted a bit to the right, so I hope it gets better readability overall.

It's my first font from scratch, so please check it before adding to upcoming releases.

Thanks! I've corrected the index addresses for the additional characters and removed a comma.
 
The following users thanked this post: Kim Christensen, carl1961

Offline Feliciano

  • Regular Contributor
  • *
  • Posts: 214
  • Country: ve
Re: $20 LCR ESR Transistor checker project
« Reply #9267 on: March 04, 2024, 05:39:19 pm »
Thanks. I updated my original post for further readers.
« Last Edit: March 04, 2024, 07:15:37 pm by Feliciano »
 

Offline carl1961

  • Contributor
  • Posts: 31
  • Country: us
Re: $20 LCR ESR Transistor checker project
« Reply #9268 on: March 05, 2024, 03:47:46 am »
For who may want this  ;) a alternative for WinAVR     Transistor-Tester-AVR-Compiled-files-On-Windows
Mainly did this so later when i forget how.

also the github link where anyone can fork and improve.

https://github.com/carl1961/Transistor-Tester-AVR-Compiled-files-On-Windows

 
The following users thanked this post: madires

Offline carl1961

  • Contributor
  • Posts: 31
  • Country: us
Re: $20 LCR ESR Transistor checker project
« Reply #9269 on: March 05, 2024, 03:56:00 am »
Got the 644 Adapter board in today.. Now the fun begins. Remember anyone who wants one, there free for what a stamp and envelope cost.

 

Offline carl1961

  • Contributor
  • Posts: 31
  • Country: us
Re: $20 LCR ESR Transistor checker project
« Reply #9270 on: March 05, 2024, 09:51:12 am »
Got the Board soldered and Programmed, having trouble with the 2.8 TFT
The firmware right now is von Boleslaw J. (boleslaw_43) pre compiled Adapter_m328_m644_AY-AT_mod_hard_SPI_firmware 1.49m
@indman can you have share how you connected the 2.8 TFT to AH-AT?
« Last Edit: March 05, 2024, 09:59:25 am by carl1961 »
 

Offline Yuriy_K

  • Regular Contributor
  • *
  • Posts: 140
  • Country: ru
Re: $20 LCR ESR Transistor checker project
« Reply #9271 on: March 05, 2024, 10:44:43 am »
can you have share how you connected the 2.8 TFT to AH-AT?
Look at the message and at the fragment of the diagram...
https://www.eevblog.com/forum/testgear/$20-lcr-esr-transistor-checker-project/msg4882043/#msg4882043

The link works
« Last Edit: March 05, 2024, 11:02:22 am by Yuriy_K »
 
The following users thanked this post: carl1961

Offline Boleslaw_J

  • Newbie
  • Posts: 5
  • Country: pl
Re: $20 LCR ESR Transistor checker project
« Reply #9272 on: March 05, 2024, 11:10:25 am »
Got the Board soldered and Programmed, having trouble ...

In order for the microcontroller to work with an external crystal
resonator, the microcontroller's fuses must be properly positioned.
When programming these keys, an external resonator (e.g. 8 or 16 MHz) must be
connected to the microcontroller!

Valid key values are:
Fuses:
L: 0xF7
H: 0xD9
E: 0xFC

Lock bits:
LB: 0xFF  (do not touch!)

 
The following users thanked this post: carl1961

Offline carl1961

  • Contributor
  • Posts: 31
  • Country: us
Re: $20 LCR ESR Transistor checker project
« Reply #9273 on: March 05, 2024, 11:33:59 am »
Got the Board soldered and Programmed, having trouble ...

In order for the microcontroller to work with an external crystal
resonator, the microcontroller's fuses must be properly positioned.
When programming these keys, an external resonator (e.g. 8 or 16 MHz) must be
connected to the microcontroller!

Valid key values are:
Fuses:
L: 0xF7
H: 0xD9
E: 0xFC

Lock bits:
LB: 0xFF  (do not touch!)
Thanks Boleslaw_J ,

I already have a 16 MHZ Crystal on the main board, that's why the crystal is missing from your  644 Adapter. Do i need to remove it and install on adapter? I under stood to leave it off the crystal from Adapter if already have one on the board.
 

Offline Boleslaw_J

  • Newbie
  • Posts: 5
  • Country: pl
Re: $20 LCR ESR Transistor checker project
« Reply #9274 on: March 05, 2024, 12:26:09 pm »
Thanks Boleslaw_J ,

I already have a 16 MHZ Crystal on the main board, that's why the crystal is missing from your  644 Adapter. Do i need to remove it and install on adapter?

Of course not. The location of the external resonator is not important.




 
The following users thanked this post: carl1961


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf