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

hfleming, carrascoso and 23 Guests are viewing this topic.

Offline madires

  • Super Contributor
  • ***
  • Posts: 7800
  • Country: de
  • A qualified hobbyist ;)
Re: $20 LCR ESR Transistor checker project
« Reply #5650 on: May 10, 2019, 05:27:03 pm »
All errors are caused by using the header files of the old firmware version. The next issue can be fixed by editing config.h. Replace
Code: [Select]
#define C_ZERO           CAP_PCB + CAP_WIRES + CAP_PROBELEADS
with
Code: [Select]
#define C_ZERO           43
 

Offline Andbro

  • Regular Contributor
  • *
  • Posts: 119
Re: $20 LCR ESR Transistor checker project
« Reply #5651 on: May 10, 2019, 06:02:01 pm »
Hi..... again me

Now the error is:

> "make.exe" all
      0 [main] sh 896 sync_with_child: child 10748(0x1CC) died before initialization with status code 0xC0000142
  47571 [main] sh 896 sync_with_child: *** child state waiting for longjmp
/usr/bin/sh: fork: Resource temporarily unavailable
avr-gcc -mmcu=atmega328 -Wall -mcall-prologues -I. -Ibitmaps -DF_CPU=8000000UL -DOSC_STARTUP=16384 -gdwarf-2 -std=gnu99 -Os -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -MD -MP -MT main.o -MF dep/main.o.d -c main.c
main.c:1913:1: fatal error: opening dependency file dep/main.o.d: No such file or directory
 }
 ^
compilation terminated.
make.exe: *** [main.o] Error 1


> Process Exit Code: 2

Thanks x 100
 

Offline madires

  • Super Contributor
  • ***
  • Posts: 7800
  • Country: de
  • A qualified hobbyist ;)
Re: $20 LCR ESR Transistor checker project
« Reply #5652 on: May 10, 2019, 06:25:19 pm »
That looks like the tool chain has a problem. If it's cygwin try to run it as admin.
 

Offline Andbro

  • Regular Contributor
  • *
  • Posts: 119
Re: $20 LCR ESR Transistor checker project
« Reply #5653 on: May 10, 2019, 07:34:07 pm »
hi,

When you copy AVR Toolchain in WinAVR folder, do you owerwrite the same filles or ignore ?

Thanks
 

Offline eas

  • Frequent Contributor
  • **
  • Posts: 601
  • Country: us
    • Tech Obsessed
Re: $20 LCR ESR Transistor checker project
« Reply #5654 on: May 11, 2019, 01:58:01 am »
A quick warning to others.

I recently ordered a kit version of the AY-AT tester from this ebay listing.

It came today and I was disappointed that the all the resistors were loose, rather than still in the paper tape. As a result I measured each resistor with a DMM rather than trying to read the markings. In the process I discovered that the key measurement resistors, which should have 0.1% tolerances, and which were color coded as having 0.1% tolerances were way way off!

The 3x 470K Ohm 0.1% resistors measure 487K Ohm 503K Ohm and 520K Ohm.  That's an error of 3.6% 7.0% and 10.6%!
The 3x 680 Ohm 0.1% resistors measure 671 (-1.3%), 661(-2.8%) & 674 (-0.8%).

It's odd, because none of the other resistors in the kit were anywhere near as far off.

I've requested replacements.

Has anyone else had a similar experience?
 

Offline bitseeker

  • Super Contributor
  • ***
  • Posts: 9057
  • Country: us
  • Lots of engineer-tweakable parts inside!
Re: $20 LCR ESR Transistor checker project
« Reply #5655 on: May 11, 2019, 02:23:55 am »
Hey eas! Good to see you.

My tester from several years ago had a couple of those resistors out of tolerance, but not by that much. So, I just arranged them to minimize the total error in their ratios.
TEA is the way. | TEA Time channel
 

Offline pepe10000

  • Regular Contributor
  • *
  • Posts: 87
  • Country: es
Re: $20 LCR ESR Transistor checker project
« Reply #5656 on: May 11, 2019, 06:47:05 am »
hi,

When you copy AVR Toolchain in WinAVR folder, do you owerwrite the same filles or ignore ?

Thanks

Hello Andbro.

Maybe this will help you:

https://www.eevblog.com/forum/testgear/$20-lcr-esr-transistor-checker-project/msg1729157/#msg1729157

A greeting.
 

Offline Andbro

  • Regular Contributor
  • *
  • Posts: 119
Re: $20 LCR ESR Transistor checker project
« Reply #5657 on: May 11, 2019, 01:52:58 pm »
Hi,

I have always this error with WinAVR . I have try with 2 others computers and i have the same error.

> "make.exe" all
      0 [main] sh 3716 sync_with_child: child 11016(0x1E8) died before initialization with status code 0xC0000142
  40724 [main] sh 3716 sync_with_child: *** child state waiting for longjmp
/usr/bin/sh: fork: Resource temporarily unavailable
avr-gcc -mmcu=atmega328 -Wall -mcall-prologues -I. -Ibitmaps -DF_CPU=8000000UL -DOSC_STARTUP=16384 -gdwarf-2 -std=gnu99 -Os -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -MD -MP -MT main.o -MF dep/main.o.d -c main.c
main.c:1565:1: fatal error: opening dependency file dep/main.o.d: No such file or directory
 }
 ^
compilation terminated.
make.exe: *** [main.o] Error 1



Thanks
 

Online indman

  • Super Contributor
  • ***
  • Posts: 1015
  • Country: by
Re: $20 LCR ESR Transistor checker project
« Reply #5658 on: May 11, 2019, 02:46:16 pm »
Andbro
If you installed Windows 8 or Windows 10, then on my resource there is a HELP folder in which is all necessary for the correct work of WinAVR. https://yadi.sk/d/yW8xa5NJgUo5z/Help/Editing%20and%20compilation%20of%20a%20firmware
Read attentively the Readme En.txt file - I hope that it will help you to solve a problem with compilation. :)
 

Offline Andbro

  • Regular Contributor
  • *
  • Posts: 119
Re: $20 LCR ESR Transistor checker project
« Reply #5659 on: May 11, 2019, 03:18:48 pm »
Hi,

If I want to use Markus firmware 1.30 does I extract the files of the folder "ComponentTester-1.30m" in Trunk folder.. I have never try to modify a Markus firmware.

Many thanks
 

Online indman

  • Super Contributor
  • ***
  • Posts: 1015
  • Country: by
Re: $20 LCR ESR Transistor checker project
« Reply #5660 on: May 11, 2019, 04:20:26 pm »
Andbro, the instruction in Readme En.txt is a step-by-step installation of software and compilation for k - firmware.
For compilation of  m - firmware there is no need to create the Trunk folder and to leave the dep folder. You need just to unpack relevant archive "ComponentTester-1.35m"
further to carry out necessary settings in files of a configuration as prompted dear madires.
Then to start compile process. Everything is very simple. :)
 

Offline Andbro

  • Regular Contributor
  • *
  • Posts: 119
Re: $20 LCR ESR Transistor checker project
« Reply #5661 on: May 11, 2019, 04:35:31 pm »
Hi,

I have unpacked the version 1.35m, modify config.h and config_328.h.
When I Make All with WinAVR, I have this error. I have try on other computer and it's the same error.

 "make.exe" all
      0 [main] sh 3716 sync_with_child: child 11016(0x1E8) died before initialization with status code 0xC0000142
  40724 [main] sh 3716 sync_with_child: *** child state waiting for longjmp
/usr/bin/sh: fork: Resource temporarily unavailable
avr-gcc -mmcu=atmega328 -Wall -mcall-prologues -I. -Ibitmaps -DF_CPU=8000000UL -DOSC_STARTUP=16384 -gdwarf-2 -std=gnu99 -Os -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -MD -MP -MT main.o -MF dep/main.o.d -c main.c
main.c:1565:1: fatal error: opening dependency file dep/main.o.d: No such file or directory
 }
 ^
compilation terminated.
make.exe: *** [main.o] Error 1

I'm thinking I will abort...

Thanks
 

Offline Andbro

  • Regular Contributor
  • *
  • Posts: 119
Re: $20 LCR ESR Transistor checker project
« Reply #5662 on: May 11, 2019, 08:29:16 pm »
Hi,

Sorry, it's my mistake. I have forgotten to replace the msys-1.0.dll in WinAVR\utils\bin\. |O


« Last Edit: May 11, 2019, 08:41:36 pm by Andbro »
 

Offline Andbro

  • Regular Contributor
  • *
  • Posts: 119
Re: $20 LCR ESR Transistor checker project
« Reply #5663 on: May 11, 2019, 08:38:47 pm »
Hi,

I have tried to changed the language for english for my GM328A 8Mhz in the firmware of Clone Ttester, "1.30mRus(8MHz).zip".
When i Make All in WinAVR, i have this message. Does anyone can help me ?
I use the packed file, ComponentTester-1.30m.tgz.

extras.c: In function 'Servo_Check':
extras.c:793:10: error: 'RUN_FLAG' undeclared (first use in this function)
   Flag = RUN_FLAG | MODE_PULSE | CHANGE_PULSE | CHANGE_FREQ | UPDATE_FREQ | UPDATE_PULSE | UPDATE_FREQ;
          ^
extras.c:793:10: note: each undeclared identifier is reported only once for each function it appears in
make.exe: *** [extras.o] Error 1


Thanks
 

Offline madires

  • Super Contributor
  • ***
  • Posts: 7800
  • Country: de
  • A qualified hobbyist ;)
Re: $20 LCR ESR Transistor checker project
« Reply #5664 on: May 11, 2019, 09:18:18 pm »
That is a known issue and was fixed in a later version. Add following in Servo_Check() in extras.c:
Code: [Select]
  #define RUN_FLAG       0b00000001     /* run / otherwise end */

Why are you using an old firmware version?
 

Offline madires

  • Super Contributor
  • ***
  • Posts: 7800
  • Country: de
  • A qualified hobbyist ;)
Re: $20 LCR ESR Transistor checker project
« Reply #5665 on: May 11, 2019, 09:34:38 pm »
It's time for a new version of the m-firmware. ;)

v1.36m:
- Added optional 6x8 font to ST7565R driver.
- Added optional mainmenu item to power off tester (SW_POWER_OFF).
- Integrated battery monitoring into TestKey() and Zener_Tool().
- Added detection of two short presses of the test key to TestKey() and removed
  redundant functionality in multiple functions to reduce firmware size.
- Driver for ST7036 based displays (4-bit parallel & 4-wire SPI, untested).
- Moved power control and battery monitoring to dedicated functions for
  better integration with other functions.
- Driver for PCF8814 based displays (3-line SPI, thanks to Mahmoud Laouar
  for testing).
- Driver for STE2007/HX1230 based displays (3-line SPI).
- Fixed bug in LCD_Clear() of PCD8544 driver.
- Added missing cyrillic font to ST7565R driver (reported by Andrey@EEVblog).
- Updated font_8x16_cyrillic_vfp.h (thanks to Andrey@EEVblog).
- Fixed issue with bad character in font_HD44780_cyr.h.

Please visit https://github.com/madires/Transistortester-Warehouse/tree/master/Firmware/m-firmware for downloading the new version.
 
The following users thanked this post: all_repair, vivaT, Tech_JA, bitseeker, indman, elecdonia, pepe10000, UKTech, Obelix2007

Offline pepe10000

  • Regular Contributor
  • *
  • Posts: 87
  • Country: es
Re: $20 LCR ESR Transistor checker project
« Reply #5666 on: May 12, 2019, 09:05:50 am »
Hello madires.

Update for firmware m of the Spanish language for all those interested with the latest news introduced by the master madires.

A greeting.
 
The following users thanked this post: madires

Offline Andbro

  • Regular Contributor
  • *
  • Posts: 119
Re: $20 LCR ESR Transistor checker project
« Reply #5667 on: May 12, 2019, 05:44:45 pm »
Hi,

What is the right fuses for a GM328A ?

Thanks
 

Offline Obelix2007

  • Regular Contributor
  • *
  • Posts: 59
  • Country: de
Re: $20 LCR ESR Transistor checker project
« Reply #5668 on: May 12, 2019, 08:56:22 pm »
Hi Andbro,

...try Fuses:

                   Low 0xF7
                   High 0xD9
                   Ext   0xFC

                   LB    0xFF

Greetings Horst
 

Offline Andbro

  • Regular Contributor
  • *
  • Posts: 119
Re: $20 LCR ESR Transistor checker project
« Reply #5669 on: May 12, 2019, 10:21:53 pm »
Hi,

I have modify the new Markus firmware 1.36 for my GM328A (AY-AT). I don't find where is my errors. The screen turn ON without text. I have checked my LCD 7735 parameters but i don't find an error.
I post my config.h and config_328.h.

Thanks for your help

A newbie...
 

Offline Obelix2007

  • Regular Contributor
  • *
  • Posts: 59
  • Country: de
Re: $20 LCR ESR Transistor checker project
« Reply #5670 on: May 12, 2019, 11:09:41 pm »
Hi Andbro,

... first sorry for my bad english!!

next, i see in your config_328.h is activatet the ST7565R Display? What for a Display you used in your Tester?
If it is the 7735 Display, you have configured the wrong.

/*
 *  ST7735, SPI interface (bit-bang, 4 wire)
 */

//#if 0
#define LCD_ST7735                      /* display controller ST7735 */
#define LCD_GRAPHIC                     /* graphic display */
#define LCD_COLOR                       /* color display */
#define LCD_SPI                         /* SPI interface */
#define LCD_PORT         PORTD          /* port data register */
#define LCD_DDR          DDRD           /* port data direction register */
#define LCD_RES          PD0            /* port pin used for /RESX (optional) */
#define LCD_CS           PD5            /* port pin used for /CSX (optional) */
#define LCD_DC           PD1            /* port pin used for D/CX */
#define LCD_SCL          PD2            /* port pin used for SCL */
#define LCD_SDA          PD3            /* port pin used for SDA */
#define LCD_DOTS_X       128            /* number of horizontal dots */
#define LCD_DOTS_Y       160            /* number of vertical dots */
#define LCD_FLIP_X                      /* enable horizontal flip */
//#define LCD_FLIP_Y                      /* enable vertical flip */
#define LCD_ROTATE                      /* switch X and Y (rotate by 90°) */
//#define LCD_OFFSET_X     4               /* enable x offset of 2 or 4 dots */
//#define LCD_OFFSET_Y     2               /* enable y offset of 1 or 2 dots */
#define LCD_LATE_ON                     /* turn on LCD after clearing it */
#define FONT_10X16_HF                   /* 10x16 font, horizontally aligned & flipped */
//#define FONT_8X16_CYRILLIC_HF           /* 8x16 cyrillic font, horizontally aligned & flipped */
#define SYMBOLS_30X32_HF                /* 30x32 symbols, horizontally aligned & flipped */
#define SPI_BITBANG                     /* bit-bang SPI */
#define SPI_PORT         LCD_PORT       /* SPI port data register */
#define SPI_DDR          LCD_DDR        /* SPI port data direction register */
#define SPI_SCK          LCD_SCL        /* port pin used for SCK */
#define SPI_MOSI         LCD_SDA        /* port pin used for MOSI */
//#endif

/*
 *  rotary encoder
 */

#define ENCODER_PORT     PORTD     /* port data register */
#define ENCODER_DDR      DDRD      /* port data direction register */
#define ENCODER_PIN      PIND      /* port input pins register */
#define ENCODER_A        PD3       /* rotary encoder A signal */
#define ENCODER_B        PD1       /* rotary encoder B signal */

if it is the GeekTeches Board.

Greetings Horst
« Last Edit: May 12, 2019, 11:29:07 pm by Obelix2007 »
 

Offline Andbro

  • Regular Contributor
  • *
  • Posts: 119
Re: $20 LCR ESR Transistor checker project
« Reply #5671 on: May 12, 2019, 11:36:07 pm »
Hi,

Sorry me too for my english :). I use a ST7735 like display. And myself, i'm a newbie but i try hard....

/*
 *  ST7565R, SPI interface (bit-bang)
 *  - settings for Electronic Assembly EA DOGM/DOGL128-6
 *  - uses LCD_CS to support rotary encoder in parallel at PD2/3
 */

//#if 0

I must add or remove // for activated a display?

Best regards
 

Offline Obelix2007

  • Regular Contributor
  • *
  • Posts: 59
  • Country: de
Re: $20 LCR ESR Transistor checker project
« Reply #5672 on: May 12, 2019, 11:54:00 pm »
... you have to add!

See the differents in my post  above, there is another portorder if your Bord is the GeekTeches .

Best regards.
 

Offline Andbro

  • Regular Contributor
  • *
  • Posts: 119
Re: $20 LCR ESR Transistor checker project
« Reply #5673 on: May 13, 2019, 12:02:47 am »
Hi Obelix,

It's working well.  :D

Is it OK section ?

/*
 *  increase/decrease push buttons
 */

#define KEY_PORT         PORTD     /* port data register */
#define KEY_DDR          DDRD      /* port data direction register */
#define KEY_PIN          PIND      /* port input pins register */
#define KEY_INC          PD1       /* increase push button (low active) */
#define KEY_DEC          PD3       /* decrease push button (low active) */

Thanks a lot

« Last Edit: May 13, 2019, 12:19:10 am by Andbro »
 

Offline Obelix2007

  • Regular Contributor
  • *
  • Posts: 59
  • Country: de
Re: $20 LCR ESR Transistor checker project
« Reply #5674 on: May 13, 2019, 12:17:07 am »
Hi,

... did you have no rotary encoder on the Testerboard? Can you make a picture ?

If it is another board as the Geek, i ‚m not shure about the portorder, so you have to test it.

Regards
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf