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

0 Members and 10 Guests are viewing this topic.

Offline indman

  • Super Contributor
  • ***
  • Posts: 1164
  • Country: by
Re: $20 LCR ESR Transistor checker project
« Reply #9250 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
 

Online Kim Christensen

  • Super Contributor
  • ***
  • Posts: 1746
  • Country: ca
Re: $20 LCR ESR Transistor checker project
« Reply #9251 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: 247
  • Country: ve
Re: $20 LCR ESR Transistor checker project
« Reply #9252 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: 8175
  • Country: de
  • A qualified hobbyist ;)
Re: $20 LCR ESR Transistor checker project
« Reply #9253 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: 247
  • Country: ve
Re: $20 LCR ESR Transistor checker project
« Reply #9254 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 #9255 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 #9256 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 #9257 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: 166
  • Country: ru
Re: $20 LCR ESR Transistor checker project
« Reply #9258 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 #9259 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 #9260 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 #9261 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

Offline Boleslaw_J

  • Newbie
  • Posts: 5
  • Country: pl
Re: $20 LCR ESR Transistor checker project
« Reply #9262 on: March 05, 2024, 03:53:26 pm »
@ carl1961

The current used 2.8-inch 240x320 LCD TFT displays with ILI9341 or ST7789 drivers are powered by 3.3 V. To connect them to the AY-AT tester, whose microcontroller is powered by 5 volts, an additional interface must be used to reduce the voltage level.
Here is an example of such an interface.


 
The following users thanked this post: carl1961

Offline carl1961

  • Contributor
  • Posts: 31
  • Country: us
Re: $20 LCR ESR Transistor checker project
« Reply #9263 on: March 05, 2024, 05:51:54 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.
Thanks  Boleslaw_J,  that's what I read from your post  ;)  https://www.mikrocontroller.net/topic/transistortester-avr?page=32#7426316
 

Offline Feliciano

  • Regular Contributor
  • *
  • Posts: 247
  • Country: ve
Re: $20 LCR ESR Transistor checker project
« Reply #9264 on: March 06, 2024, 11:59:30 pm »
Dear madires:
I'm still working, with low priority, on the fonts.

IIRC, Karl-Heinz used to show the test of the bitmaps continously as it fit the screen (reminds me a typewriter). You on the other hand plot 8 chars per line. Because there is the case of small and/or narrow fonts on a high_res LCD (like 8x16 on 160128), I wonder whether it would take too much code to do something like:
if((screen_witdh/font_width>17);then plot_16_char_per_row;else plot_8_char_per_row /*as done now*/)
That way we would have to scroll less, and get a better understanding of the whole set.

What do you think?
« Last Edit: March 07, 2024, 12:24:26 am by Feliciano »
 

Offline Boleslaw_J

  • Newbie
  • Posts: 5
  • Country: pl
Re: $20 LCR ESR Transistor checker project
« Reply #9265 on: March 07, 2024, 07:41:26 am »
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.
Thanks  Boleslaw_J,  that's what I read from your post  ;)  https://www.mikrocontroller.net/topic/transistortester-avr?page=32#7426316

If you want to know exactly what I meant, check out the content of the post I wrote earlier on the subject:
https://www.mikrocontroller.net/topic/transistortester-avr?page=31#7396852
 
The following users thanked this post: carl1961

Offline madires

  • Super Contributor
  • ***
  • Posts: 8175
  • Country: de
  • A qualified hobbyist ;)
Re: $20 LCR ESR Transistor checker project
« Reply #9266 on: March 07, 2024, 08:53:50 am »
IIRC, Karl-Heinz used to show the test of the bitmaps continously as it fit the screen (reminds me a typewriter). You on the other hand plot 8 chars per line. Because there is the case of small and/or narrow fonts on a high_res LCD (like 8x16 on 160128), I wonder whether it would take too much code to do something like:
if((screen_witdh/font_width>17);then plot_16_char_per_row;else plot_8_char_per_row /*as done now*/)
That way we would have to scroll less, and get a better understanding of the whole set.

A similar suggestion was already on my to-do list (implemented a few days ago). The alternative output prints all available characters without an index address and uses the complete display width.
 
The following users thanked this post: Jacon, Feliciano

Offline Strateg58

  • Contributor
  • Posts: 19
  • Country: ru
    • https://www.eevblog.com/forum/register2/
Re: $20 LCR ESR Transistor checker project
« Reply #9267 on: March 08, 2024, 05:23:56 am »
Hi guys. Which one of you has implemented the LOPT/FBT function in the transistor tester.? It doesn't work for me. See if I have connected the circuit correctly.
 

Offline madires

  • Super Contributor
  • ***
  • Posts: 8175
  • Country: de
  • A qualified hobbyist ;)
Re: $20 LCR ESR Transistor checker project
« Reply #9268 on: March 08, 2024, 09:13:32 am »
It seems that Vcc and Gnd are reversed. From the README:
Code: [Select]
Pinout for control output via probes:
  Probe #1:  Vcc (5 V)
  Probe #2:  pulse output (with 680 Ohms resistor to limit current)
  Probe #3:  Ground
  T0:        counter input
 
The following users thanked this post: carl1961

Offline Strateg58

  • Contributor
  • Posts: 19
  • Country: ru
    • https://www.eevblog.com/forum/register2/
Re: $20 LCR ESR Transistor checker project
« Reply #9269 on: March 09, 2024, 03:48:08 am »
Thanks Madires. And to connect to +5 volts, or is it enough to connect to Pin1
 

Offline carl1961

  • Contributor
  • Posts: 31
  • Country: us
Re: $20 LCR ESR Transistor checker project
« Reply #9270 on: March 09, 2024, 06:11:12 am »
Finally got AY-AT Running, with von Boleslaw J. (boleslaw_43) Adapter_m328_m644_AY-AT. made a adapter from His photo FotoAlbum_TT_diagram. attached is eagle cad of the adapter and the kicad version to CNC mill, putting 4 jumpers (green traces) on back, because I can only do one sided PCB's.  I forgot to mirror the board , when doing the Milling file gcodes and had to solder the chip directly  to pcb (or redo it). Now to make small cables for screen and tweak the Case. 
 

Offline madires

  • Super Contributor
  • ***
  • Posts: 8175
  • Country: de
  • A qualified hobbyist ;)
Re: $20 LCR ESR Transistor checker project
« Reply #9271 on: March 09, 2024, 10:51:04 am »
Thanks Madires. And to connect to +5 volts, or is it enough to connect to Pin1

Probe #1 is fine.
 

Offline rogerdammit

  • Newbie
  • Posts: 7
  • Country: us
Re: $20 LCR ESR Transistor checker project
« Reply #9272 on: March 10, 2024, 05:34:44 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

I'm getting the same error. Can you please post the fix?
 

Offline Feliciano

  • Regular Contributor
  • *
  • Posts: 247
  • Country: ve
Re: $20 LCR ESR Transistor checker project
« Reply #9273 on: March 10, 2024, 06:28:25 pm »
I rolled back to the original avr-size.
 

Online Kim Christensen

  • Super Contributor
  • ***
  • Posts: 1746
  • Country: ca
Re: $20 LCR ESR Transistor checker project
« Reply #9274 on: March 10, 2024, 08:08:15 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

I'm getting the same error. Can you please post the fix?

I made the following changes to my makefile:

#   @avr-size -C --mcu=${MCU} $<
   @avr-objdump -Pmem-usage ${NAME}

 
The following users thanked this post: rogerdammit


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf