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

Calambres, Messtechniker and 7 Guests are viewing this topic.

Offline madires

  • Super Contributor
  • ***
  • Posts: 7764
  • Country: de
  • A qualified hobbyist ;)
Re: $20 LCR ESR Transistor checker project
« Reply #9400 on: April 14, 2024, 09:04:50 am »
You could try following:

In display.c, function Display_Value() change
Code: [Select]
    if (Offset > 0)                     /* dot required */
to
Code: [Select]
    /* dot required or 4-digit value */
    if ((Offset > 0) || (Value >= 1000))

Edit: Will be an option in the next firmware version.
« Last Edit: April 14, 2024, 11:42:38 am by madires »
 
The following users thanked this post: Jacon, edgard22

Offline Kim Christensen

  • Super Contributor
  • ***
  • Posts: 1326
  • Country: ca
Re: $20 LCR ESR Transistor checker project
« Reply #9401 on: April 14, 2024, 03:21:35 pm »
At first, I tried something similar to your solution madires. But found that some calls to Display_Value() returned unwanted results. One I remember was the self tests and corrections mV readouts being in volts.
So in the end, I wrote my code so it only changed the default behavior for certain calls to Display_Value(). I'm sure there's a more elegant way than my solution.
 
The following users thanked this post: edgard22

Offline madires

  • Super Contributor
  • ***
  • Posts: 7764
  • Country: de
  • A qualified hobbyist ;)
Re: $20 LCR ESR Transistor checker project
« Reply #9402 on: April 14, 2024, 04:17:49 pm »
The only value looking a bit strange should be T6 (Rh+) in the self test. It's near Vcc, e.g. 4990. 4990 would become 4.980k (because it's just a plain number).

@all: Please tell me if you encounter other strange values when testing the modification for 4-digit values!
« Last Edit: April 14, 2024, 04:25:16 pm by madires »
 

Offline edgard22

  • Newbie
  • Posts: 6
  • Country: uy
Re: $20 LCR ESR Transistor checker project
« Reply #9403 on: April 15, 2024, 12:16:27 am »
Thanks, I haven't tested it thoroughly but everything seems to be ok.

Gracias, no he probado a fondo pero parece estar todo ok.
 

Offline Feliciano

  • Regular Contributor
  • *
  • Posts: 214
  • Country: ve
Re: $20 LCR ESR Transistor checker project
« Reply #9404 on: April 19, 2024, 07:47:22 pm »
The only value looking a bit strange should be T6 (Rh+) in the self test. It's near Vcc, e.g. 4990. 4990 would become 4.980k (because it's just a plain number).

@all: Please tell me if you encounter other strange values when testing the modification for 4-digit values!
For normal and ESR capacitor measurements, the new dot option works for me.
Indeed the more noticeable "strange" results are in the SelfTest: I don't mind T1 showing 1.1xxV, but T6 showing 4.9xxK(mV) can be confusing. I think that part would require a little adjustment too :-/O
« Last Edit: April 19, 2024, 07:55:45 pm by Feliciano »
 

Offline madires

  • Super Contributor
  • ***
  • Posts: 7764
  • Country: de
  • A qualified hobbyist ;)
Re: $20 LCR ESR Transistor checker project
« Reply #9405 on: April 20, 2024, 09:40:42 am »
Also, three times 4.9xxk plus two spaces exceeds a line length of 16 chars. The new firmware version will come with a simple workaround when 4-digit values are disabled.
 

Offline indman

  • Super Contributor
  • ***
  • Posts: 1012
  • Country: by
Re: $20 LCR ESR Transistor checker project
« Reply #9406 on: April 20, 2024, 09:49:56 am »
madires, there is a suggestion to implement the possibility to disable the "Selftest" option in the firmware? This will save some memory, as this procedure is usually done only a few times when hardware problems are detected. Now I disable this option myself if I compile the firmware for myself. If I am sure that my circuit is correct, I only need the "Self Adjustment"option. If any strange results appear, you can always enable self-test if necessary or use the standard firmware where this option is enabled.
« Last Edit: April 20, 2024, 10:00:18 am by indman »
 

Offline madires

  • Super Contributor
  • ***
  • Posts: 7764
  • Country: de
  • A qualified hobbyist ;)
Re: $20 LCR ESR Transistor checker project
« Reply #9407 on: April 20, 2024, 11:06:57 am »
Ok, I'll add that to the to-do list.
 
The following users thanked this post: indman

Offline madires

  • Super Contributor
  • ***
  • Posts: 7764
  • Country: de
  • A qualified hobbyist ;)
Re: $20 LCR ESR Transistor checker project
« Reply #9408 on: April 20, 2024, 04:52:04 pm »
Disabling the self-test reduces the firmware size by about 86 bytes (and a few bytes in the EEPROM). I also replaced a few similar function calls of Display_Value() with a new convenience function, freeing up another 50 bytes.
 

Offline madires

  • Super Contributor
  • ***
  • Posts: 7764
  • Country: de
  • A qualified hobbyist ;)
Re: $20 LCR ESR Transistor checker project
« Reply #9409 on: Yesterday at 05:44:12 pm »
Bohu has updated the PDFs (for firmware 1.52m, Czech, English and German): https://github.com/madires/Transistortester-Warehouse/tree/master/Documentation
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf