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

0 Members and 17 Guests are viewing this topic.

Offline madires

  • Super Contributor
  • ***
  • Posts: 7767
  • Country: de
  • A qualified hobbyist ;)
Re: $20 LCR ESR Transistor checker project
« Reply #2950 on: November 29, 2016, 01:08:07 pm »
When I started to add support for graphic displays, I've renamed the old firmware to "classic" and the new one became "trendy". The classic edition supports ATmega 168/328 and 2x16 HD44780 compatible displays. For the graphic displays I had to add an abstraction layer, which was too much for an 168. So the trendy edition was 328 only at first (now it's 328, 324, 644 & 1284). Of course, it still supports HD44780 based displays, up to 4*20. Since all clones got a 328 meanwhile, I've dropped the parallel releases after a while. So  "trendy" is the active one. I was thinking about going back to the former naming (just m-firmware), but I don't know if it might confuse users or not.

Regarding the k-firmware, it's the other way around. The control logic and things like the abstraction layer for displays are quite different, and merging both branches into one would take a huge effort. Anyway, competition creates progress ;)
« Last Edit: November 29, 2016, 05:34:00 pm by madires »
 
The following users thanked this post: all_repair, lpc32

Offline lpc32

  • Frequent Contributor
  • **
  • Posts: 454
Re: $20 LCR ESR Transistor checker project
« Reply #2951 on: November 29, 2016, 05:21:05 pm »
I think it would be less confusing to remove the "trendy" suffix, and just note somewhere clearly that 1.xx is the last version that supports the 168. BTW, if it's abstracted in the newer versions, can't one conditionally compile with just the segmented display code?

Competition can drive progress, but also hinder it, especially with small dev groups. :)

Quote
Regarding the k-firmware, it's the other way around.
Oh, sorry. I mixed you up with M.F.
« Last Edit: November 29, 2016, 05:26:05 pm by lpc32 »
 

Offline madires

  • Super Contributor
  • ***
  • Posts: 7767
  • Country: de
  • A qualified hobbyist ;)
Re: $20 LCR ESR Transistor checker project
« Reply #2952 on: November 29, 2016, 06:09:31 pm »
What do other users think about dropping the "trendy" suffix?

BTW, if it's abstracted in the newer versions, can't one conditionally compile with just the segmented display code?

The code for driving HD44780 based displays is the smallest anyway, since it doesn't got the character bitmaps, just a few symbols. Adding an #ifdef orgy to allow to skip the display abstraction layer would make the code much more muddled in my opinion. And the abstraction layer also takes care about muli-line displays. Otherwise we would need a second #ifdef orgy for 4*20 displays. Too much trouble for saving about 500-700 bytes, IIRC.
 

Offline milamber

  • Contributor
  • Posts: 20
  • Country: de
Re: $20 LCR ESR Transistor checker project
« Reply #2953 on: November 29, 2016, 08:00:57 pm »
Then we should keep "#define LCD_RES  PD0". If LCD_RES is set to PD4, which isn't connected to the LCD module, the pin doesn't contol anything, besides creating some additional heat in the bottom resistor of the frequency counter's input voltage divider. So setting PD0 would increase the run time of the battery ;)

@madires:
The "Clones" file in ComponentTester-trendy-1.25m.tgz is still showing the wrong "white screen" PD4 setting instead of PD0 for LCD_RES.
Ran into the problem today with my AY-AT.
Could you please correct that in the next version?
 

Offline madires

  • Super Contributor
  • ***
  • Posts: 7767
  • Country: de
  • A qualified hobbyist ;)
Re: $20 LCR ESR Transistor checker project
« Reply #2954 on: November 29, 2016, 08:10:05 pm »
Of course, it's already fixed in the Clones file for 1.26m, which will be released when I've sorted out the compensation for the inductance measurement.
 

Offline lpc32

  • Frequent Contributor
  • **
  • Posts: 454
Re: $20 LCR ESR Transistor checker project
« Reply #2955 on: November 30, 2016, 04:25:20 pm »
Too much trouble for saving about 500-700 bytes, IIRC.
I meant the reverse, excluding the pixel-display code to allow supporting the 168. I'm not familiar with the code, so thought it would be something like excluding the pixel-display source file, and maybe ifdefing a few lines in a header file.

But anyway, I was just curious. I don't know if people still need 168 support.
« Last Edit: November 30, 2016, 04:27:00 pm by lpc32 »
 

Offline madires

  • Super Contributor
  • ***
  • Posts: 7767
  • Country: de
  • A qualified hobbyist ;)
Re: $20 LCR ESR Transistor checker project
« Reply #2956 on: November 30, 2016, 04:51:05 pm »
You compile the firmware for a specific display controller anyway. When you choose the HD44780, just the code for that controller will be included, and not any code for graphic LCDs.
 
The following users thanked this post: lpc32

Offline boffin

  • Supporter
  • ****
  • Posts: 1027
  • Country: ca
Re: $20 LCR ESR Transistor checker project
« Reply #2957 on: November 30, 2016, 06:16:44 pm »
I was actually considering modifying the firmware to add a 'serial' option for the display, so that you just send it a command (test component) and it comes back with the results.  Part of a test system I was thinking about.

Anyone done anything similar?
 

Offline madires

  • Super Contributor
  • ***
  • Posts: 7767
  • Country: de
  • A qualified hobbyist ;)
Re: $20 LCR ESR Transistor checker project
« Reply #2958 on: November 30, 2016, 07:05:18 pm »
Not yet, but for the ATmega 324/644/1284 based circuit the RXD0 and TXD0 pins are reserved for a serial interface. Currently there's only a software UART in the k-firmware.
 

Offline RoDiSK

  • Newbie
  • Posts: 2
  • Country: sk
Re: $20 LCR ESR Transistor checker project
« Reply #2959 on: November 30, 2016, 07:18:29 pm »
Hi, I bought this ESR meter,
-what is his mark ? M328 ? GM328 ?
-somewhere it is possible to download the latest software for 16MHz crystal ?

I bought it in aliexpress from store "All sea Store" and not everything is OK...
a) unpopulated SMD components :( (Seller has the pictures already mounted SMD)
b) 1x missing resistor 33 k? (1x more resistor 3.3 k?)

thanks
 

Offline stj

  • Super Contributor
  • ***
  • Posts: 2155
  • Country: gb
Re: $20 LCR ESR Transistor checker project
« Reply #2960 on: November 30, 2016, 08:18:46 pm »
that's the "AY-AT" colour tft kit.

it has nothing to do with a GM328 which is completely different and does not use a colour display.
« Last Edit: November 30, 2016, 08:24:38 pm by stj »
 

Offline milamber

  • Contributor
  • Posts: 20
  • Country: de
Re: $20 LCR ESR Transistor checker project
« Reply #2961 on: November 30, 2016, 08:27:28 pm »
@RoDiSK: It's the AY-AT Version with 8 MHz oscillator.

The k-Version from Karl-Heinz (SVN 684) can be found here.
https://www.eevblog.com/forum/testgear/$20-lcr-esr-transistor-checker-project/msg997651/#msg997651
stj just provided (SVN 685):
https://www.eevblog.com/forum/testgear/$20-lcr-esr-transistor-checker-project/msg1081866/#msg1081866

Just compiled the Markus Trendy Version 1.25 for you attached as 8MHz Version.
(And as 16MHz version, if you exchange the oscillator.)
Settings for TL866 Programmer are included.
« Last Edit: November 30, 2016, 09:08:40 pm by milamber »
 
The following users thanked this post: Pukker

Offline RoDiSK

  • Newbie
  • Posts: 2
  • Country: sk
Re: $20 LCR ESR Transistor checker project
« Reply #2962 on: November 30, 2016, 10:30:01 pm »
@stj & @milamber - thanks
oscilator is in socket and 16MHz is on way
 
The following users thanked this post: Pukker

Offline egil

  • Newbie
  • Posts: 1
  • Country: no
Re: $20 LCR ESR Transistor checker project
« Reply #2963 on: December 02, 2016, 10:37:45 am »
For anyone venturing into any of the ready made PCBs from China, I have made case designs suitable for 3D printing for several variants. If you do not have a 3D printer yourself, you can order 3D prints for various places. My designs are:

GM328A: https://www.thingiverse.com/thing:1920077
M12864: http://www.thingiverse.com/thing:1580922
LCR-T4: http://www.thingiverse.com/thing:797733
LCR-T3: http://www.thingiverse.com/thing:694790
Alphanumeric: http://www.thingiverse.com/thing:641003
 
The following users thanked this post: PedroDaGr8, edavid, fanOfeeDIY, bitseeker, AlxDroidDev, jdev99, esrtester

Offline madires

  • Super Contributor
  • ***
  • Posts: 7767
  • Country: de
  • A qualified hobbyist ;)
Re: $20 LCR ESR Transistor checker project
« Reply #2964 on: December 03, 2016, 04:31:48 pm »
Back to the inductance measurement. It's a can of worms. I've checked several testers with different PCBs and MCU clocks and found some common pattern of deviations. The compensation logic for the high current check is done, I hope. For the low current check I've added a simple compensation, which still needs more investigation (I have to order some inductors above 10mH). The problem with the inductance measurement is that several things got an impact on the results, and some of them are tester specific. I've choosen compensation offsets which work fine with most of my testers. So please don't be surprised if your tester might need some tweaking.

For the new 1.26m we got following changes:
- Added compensation for inductance measurement (more work required).
- Added Spanish texts. Translation provided by pepe10000@EEVblog.
- Changed FrequencyCounter() to support also ATmega 324/644/1284.
- Fixed problem in inductance measurement logic. Reported by indman@EEVblog.
- Fixed error in voltage reference handling for ATmega 324/644/1284.
- Improved detection of turning velocity of rotary encoder to cope with different values of pulses per step or detent.
- Added hardware SPI to all drivers for SPI based displays.
 
The following users thanked this post: edavid, indman, milamber, Nawual, pepe10000

Offline milamber

  • Contributor
  • Posts: 20
  • Country: de
Re: $20 LCR ESR Transistor checker project
« Reply #2965 on: December 05, 2016, 07:42:00 pm »
For the new 1.26m we got following changes:
- Added hardware SPI to all drivers for SPI based displays.
Compiled 1.26m for AY-AT 16MHz and the AY-AT settings from Clones.
@madires: BITBANG SPI takes 5 seconds for one screen refresh (about 10 times slower than in 1.25m). Can you confirm that with your displays?

Just trying to get Hardware SPI running. Compiled it with:
#define LCD_SPI_HARDWARE        /* bit-bang SPI interface */
#define LCD_SCL          PB5            /* port pin used for SCL & SPI HARDWARE @ SCK */
#define LCD_SDA         PB3            /* port pin used for SDA & SPI HARDWARE @ MOSI */
instead of
//#define LCD_SPI_BITBANG                 /* bit-bang SPI interface */
//#define LCD_SCL          PD2            /* port pin used for SCL & SPI BITBANG */
//#define LCD_SDA          PD3            /* port pin used for SDA & SPI BITBANG */
and rewired the display to PD2&PD3 pins to PB5&PB3 with the 328er@16MHz. Screen still white - maybe mixed something up with the wiring.
 

Offline madires

  • Super Contributor
  • ***
  • Posts: 7767
  • Country: de
  • A qualified hobbyist ;)
Re: $20 LCR ESR Transistor checker project
« Reply #2966 on: December 05, 2016, 08:32:02 pm »
I'll check the ST7735, but hardware SPI won't run with an ATmega 328 because of the circuit's pin assignment.
 

Offline indman

  • Super Contributor
  • ***
  • Posts: 1012
  • Country: by
Re: $20 LCR ESR Transistor checker project
« Reply #2967 on: December 06, 2016, 02:15:27 pm »
Hi, madires! Thanks for really lot of work in the new version!  :-+ Inductance measurement perfectly works, I didn't do any settings in addition.
« Last Edit: December 06, 2016, 02:19:29 pm by indman »
 

Offline ja421

  • Contributor
  • Posts: 46
resistors vs. kit contents
« Reply #2968 on: December 06, 2016, 04:44:04 pm »
I received a new kit yesterday to replace an old one I destroyed (rolled over it with a chair).
I picked up one similar to this.
The kit was missing a few parts, it contained only 1 capacitor for the crystal, but it was missing the crystal, and sent 2 33K resistors, but the board is marked 3K3.
Question is: Which should be right? Kit contents, or board silk screen?.  Sadly, no schematic from vendor, no response either (not really expected it).
Since the crystal is missing, would it be worth putting a 16mhz crystal in, instead of 8mhz? (I understand I'd need to load a different firmware.)
 

Offline madires

  • Super Contributor
  • ***
  • Posts: 7767
  • Country: de
  • A qualified hobbyist ;)
Re: $20 LCR ESR Transistor checker project
« Reply #2969 on: December 06, 2016, 05:10:15 pm »
Compiled 1.26m for AY-AT 16MHz and the AY-AT settings from Clones.
@madires: BITBANG SPI takes 5 seconds for one screen refresh (about 10 times slower than in 1.25m). Can you confirm that with your displays?

I've checked the ST7735 and haven't seen any difference in display performance between 1.25m and 1.26m.
 

Offline indman

  • Super Contributor
  • ***
  • Posts: 1012
  • Country: by
Re: $20 LCR ESR Transistor checker project
« Reply #2970 on: December 06, 2016, 07:31:01 pm »
I didn't note any difference in the display speed of operation 1.25 and 1.26 too  :)
 

Offline edy

  • Super Contributor
  • ***
  • Posts: 2385
  • Country: ca
    • DevHackMod Channel
$20 LCR ESR Transistor checker project
« Reply #2971 on: December 06, 2016, 08:01:26 pm »
I bought one of these types of devices a few years ago and it helped me test a number of components and fix a TV Power supply. I am not sure how reliable or accurate they are but it was cheap. Here is the video on it. Looks like it fits some of those ready made case designs above. Mine didn't come in a case... Which would have been nice  to house the 9V battery and also protection.

https://youtu.be/ZUq6QDuSbfY


Sent from my iPhone using Tapatalk
« Last Edit: December 06, 2016, 08:05:01 pm by edy »
YouTube: www.devhackmod.com LBRY: https://lbry.tv/@winegaming:b Bandcamp Music Link
"Ye cannae change the laws of physics, captain" - Scotty
 

Offline chick0n

  • Regular Contributor
  • *
  • Posts: 88
  • Country: de
Re: $20 LCR ESR Transistor checker project
« Reply #2972 on: December 06, 2016, 09:52:48 pm »
Hi

I bought this one:

http://www.banggood.com/DIY-M328-Transistor-Tester-LCR-Diode-Capacitance-ESR-Meter-p-1056454.html?rmmds=myorder

It uses JLX12864G-086 Display Module, with UC1701x Controller.

What firmware Configuration can I use?

thanks!
 

Offline stj

  • Super Contributor
  • ***
  • Posts: 2155
  • Country: gb
Re: resistors vs. kit contents
« Reply #2973 on: December 06, 2016, 10:06:11 pm »
I received a new kit yesterday to replace an old one I destroyed (rolled over it with a chair).
I picked up one similar to this.
The kit was missing a few parts, it contained only 1 capacitor for the crystal, but it was missing the crystal, and sent 2 33K resistors, but the board is marked 3K3.
Question is: Which should be right? Kit contents, or board silk screen?.  Sadly, no schematic from vendor, no response either (not really expected it).
Since the crystal is missing, would it be worth putting a 16mhz crystal in, instead of 8mhz? (I understand I'd need to load a different firmware.)
 
The following users thanked this post: ja421

Offline coromonadalix

  • Super Contributor
  • ***
  • Posts: 5906
  • Country: ca
Re: $20 LCR ESR Transistor checker project
« Reply #2974 on: December 07, 2016, 02:25:45 am »
would be nice to have a compilation for Example : an 128x64  graphic lcd based on ks0108 ???   they are cheap for 10$ on Ebay

bigger is better  loll 

I have a old mega 2560 sitting duck in my drawer ...
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf