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

bffargo, jellytot and 11 Guests are viewing this topic.

Offline alex_D

  • Contributor
  • Posts: 20
  • Country: gb
Re: $20 LCR ESR Transistor checker project
« Reply #8450 on: April 14, 2023, 07:19:32 am »
I bought a brand new ATMega644P, when I program it for the first time with a 20Mhz external crystal what fuse settings do I need to use?

This is what I used for ATMega328p

avrdude -c usbasp -p m328p -B 12.0 -e -U flash:w:"ComponentTester.hex":i -U eeprom:w:"ComponentTester.eep":i -U lfuse:w:0xF7:m -U hfuse:w:0xD9:m -U efuse:w:0x04:m
 

Offline madires

  • Super Contributor
  • ***
  • Posts: 7767
  • Country: de
  • A qualified hobbyist ;)
Re: $20 LCR ESR Transistor checker project
« Reply #8451 on: April 14, 2023, 07:46:32 am »
Those fuse bit settings work for the ATmega644 too. But please change the efuse to 0xfc and ignore avrdude's warning about it (known issue, mistake in avrdude's config file).
 
The following users thanked this post: alex_D

Offline .RC.

  • Frequent Contributor
  • **
  • Posts: 257
  • Country: au
Re: $20 LCR ESR Transistor checker project
« Reply #8452 on: April 14, 2023, 08:01:41 am »
Edit: Found the issue.   Needed to install Winavr as windows was missing some bits. But it still did not make an eeprom file of a cfg file.


I have built my AYAT model with precision resistors, 0.1% voltage regulator and a 16mhz crystal, and need firmware. Well all I need is to change the clock from 8Mhz to 16MHz

Is there any way to use the makefile to output a .hex and .eep with windows 10 or is it linux only?

I downloaded the full 1.42m files just to see if I could output the hex files, and when I use the make command using the mingw program all I get is a heap of error messages. Which from prior experience seems par for the course when trying to do this with Windows.

Quote
C:\transtester>make
The system cannot find the path specified.
avr-gcc -mmcu=atmega328 -Wall -I. -Ibitmaps -DF_CPU=16000000UL -DOSC_STARTUP=16384 -gdwarf-2 -std=gnu99 -Os -mcall-prologues -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -MD -MP -MT main.o -MF dep/main.o.d -c main.c
process_begin: CreateProcess(NULL, avr-gcc -mmcu=atmega328 -Wall -I. -Ibitmaps -DF_CPU=16000000UL -DOSC_STARTUP=16384 -gdwarf-2 -std=gnu99 -Os -mcall-prologues -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -MD -MP -MT main.o -MF dep/main.o.d -c main.c, ...) failed.
make (e=2): The system cannot find the file specified.
Makefile:209: recipe for target 'main.o' failed
make: *** [main.o] Error 2
« Last Edit: April 14, 2023, 08:24:34 am by .RC. »
 

Offline .RC.

  • Frequent Contributor
  • **
  • Posts: 257
  • Country: au
Re: $20 LCR ESR Transistor checker project
« Reply #8453 on: April 14, 2023, 08:46:02 am »
Obligatory photo's.  My soldering is a bit ordinary.  I am still relearning that skill.
 

Offline oitar

  • Contributor
  • Posts: 26
  • Country: za
Re: $20 LCR ESR Transistor checker project
« Reply #8454 on: April 14, 2023, 10:44:20 am »
Hi all,
I'm encountering a peculiar problem that was there with the original firmware, and also showing with the 1.48m. T7-plus v1.1 board, mega324pa with the 27V voltage source(no transformer).
If I measure higher voltage zeners, it displays correct. For lower values- below 10V, it displays way lower- i.e. 3-4 times lower(but the voltage drop over the zener while measuring is correct).
I cannot perform calibration(having issues with the single button- only working to start, but no redo), but I think this has nothing to do with [RC] calibration?
Where can I manually touch the calculation?
The zener resistors were checked(100k and 12k), the voltage references are ok too.

These -afaik, are just to define the "working range", out of which the part is declared "not a zener"
#define ZENER_VOLTAGE_MIN     1000      /* min. voltage in mV */
#define ZENER_VOLTAGE_MAX     24000     /* max. voltage in mV */

And fiddling with these(which are correct):
#define ZENER_DIVIDER_CUSTOM
#define ZENER_R1         100000
#define ZENER_R2         12000
Only makes things worse. Is there an off-set I am not aware of?

 

Offline gipetto

  • Contributor
  • Posts: 19
  • Country: ie
Re: $20 LCR ESR Transistor checker project
« Reply #8455 on: April 14, 2023, 10:47:11 am »
Maybe this is a silly idea but if anyone wanted to fix the situation with the clone mcu then one way would be to clone the clone testers, but with a second footprint for a dip or smt mcu. it wouldn't be much more expensive for manufacturers to build, and if someone wanted to upgrade, they could cut the traces to the logic green and drop in their mcu and crystal.
If they open sourced the design, then there would be a standard sellers would follow for more sales, same way as how the ay-at is the best seller now.
 

Offline madires

  • Super Contributor
  • ***
  • Posts: 7767
  • Country: de
  • A qualified hobbyist ;)
Re: $20 LCR ESR Transistor checker project
« Reply #8456 on: April 14, 2023, 12:06:32 pm »
I cannot perform calibration(having issues with the single button- only working to start, but no redo), but I think this has nothing to do with [RC] calibration?

Press the button twice to enter the menu. This and the self-adjustment process is explained in the README file.   
 
The following users thanked this post: oitar

Offline .RC.

  • Frequent Contributor
  • **
  • Posts: 257
  • Country: au
Re: $20 LCR ESR Transistor checker project
« Reply #8457 on: April 14, 2023, 12:09:56 pm »
Is there a dummies guide on how to compile the firmware, now I see 1.49m  just got released a few minutes ago. I am not sure what the flashlight is all about.
 

Offline madires

  • Super Contributor
  • ***
  • Posts: 7767
  • Country: de
  • A qualified hobbyist ;)
Re: $20 LCR ESR Transistor checker project
« Reply #8458 on: April 14, 2023, 12:11:17 pm »
Is there any way to use the makefile to output a .hex and .eep with windows 10 or is it linux only?

Please see https://www.eevblog.com/forum/testgear/$20-lcr-esr-transistor-checker-project/2475/
 
The following users thanked this post: .RC.

Offline madires

  • Super Contributor
  • ***
  • Posts: 7767
  • Country: de
  • A qualified hobbyist ;)
Re: $20 LCR ESR Transistor checker project
« Reply #8459 on: April 14, 2023, 12:16:22 pm »
Get your ISP programmer ready! ;)

v1.49m:
- Alternative pinouts for IR receiver module (SW_IR_RX_PINOUT_G_V_D, SW_IR_RX_PINOUT_D_G_V, SW_IR_RX_PINOUT_D_V_G, suggested by boleslaw_43@mikrocontroller.net).
- Fixed capacitor detection issue in ESR tool. Happened after a semiconductor was found before by normal probing (reported by indman@EEVblog).
- Fixed bug in configuration management for touchscreens.
- Added check for frequency counter options to config_support.h.
- Moved code for counter tools from tools_signal.c to new tools_counter.c.
- Added checks for SPI_PIN and SPI_MISO to config_support.h in case bit-bang SPI with read support is enabled. Also extended SPI section in all
  config_<MCU>.h for easier handling.
- SW_R_TRIMMER shows now also the ratio of the second resistor (suggested by wandows@EEVblog).
- Display OneWire device symbol in DS18B20, DS18S20 and DHTXX tool (UI_ONEWIRE, suggested by indman@EEVblog).
- Added symbol for OneWire devices to all symbol sets (thanks to indman@EEVblog).
- Support for temperature sensor DS18S20 (SW_DS18S20, DS18S20_HIGHRES, suggested by indman@EEVblog).
- Added checks for Darlington BJTs to CheckProbes() & CheckDepletionModeFET() to prevent false detection as JFET in case EMI issues cause a high leakage current (reported by wandows@EEVblog).
- Fixed bug in check for Germanium PNP BJTs in CheckDepletionModeFET().
- Added configuration switch for sequential COM pin layout to OLED drivers for SH1106 and SSD1306 (LCD_COM_SEQ), and a switch for reversed COM mapping to the SSD1306 driver (LCD_COM_REMAP, suggested by boneDragon@EEVblog).
- Added support for a passive buzzer (BUZZER_ACTIVE or BUZZER_PASSIVE, suggested by boneDragon@EEVblog).
- Texts in Brazilian Portuguese (thanks to wandows@EEVblog).
- Added general purpose switched output, e.g. for an LED flashlight (HW_FLASHLIGHT, suggested by boneDragon@EEVblog).

Please download at
- https://github.com/madires/Transistortester-Warehouse/tree/master/Firmware/m-firmware
- https://github.com/kubi48/TransistorTester-source/tree/master/Markus
« Last Edit: April 14, 2023, 06:16:55 pm by madires »
 

Offline madires

  • Super Contributor
  • ***
  • Posts: 7767
  • Country: de
  • A qualified hobbyist ;)
Re: $20 LCR ESR Transistor checker project
« Reply #8460 on: April 14, 2023, 12:31:05 pm »
now I see 1.49m  just got released a few minutes ago. I am not sure what the flashlight is all about.

It's a simple switched output controlled via the menu, e.g. for switching an LED (hence the name). Even smartphones have a flashlight app. ;D
 
The following users thanked this post: carrascoso, Yuriy_K

Offline .RC.

  • Frequent Contributor
  • **
  • Posts: 257
  • Country: au
Re: $20 LCR ESR Transistor checker project
« Reply #8461 on: April 14, 2023, 01:21:08 pm »
Is there any way to use the makefile to output a .hex and .eep with windows 10 or is it linux only?

Please see https://www.eevblog.com/forum/testgear/$20-lcr-esr-transistor-checker-project/2475/

Thanks.  Some of the links are dead but I managed to find the avr GNU8 toolchain from the microchip website.

I was still getting an error message as the eeprom was not getting made.   But the solution is here

I will have to research ans configure the firmware for my device.  My first attempt has given me a white screen and that is all. But at least I can compile and upload it now. :)
 

Offline pepe10000

  • Regular Contributor
  • *
  • Posts: 87
  • Country: es
Re: $20 LCR ESR Transistor checker project
« Reply #8462 on: April 14, 2023, 06:02:34 pm »
Thanks madires.

Attached update of the Spanish language file for those interested.

All the best.
 
The following users thanked this post: madires

Offline Jacon

  • Regular Contributor
  • *
  • Posts: 50
  • Country: pl
Re: $20 LCR ESR Transistor checker project
« Reply #8463 on: April 14, 2023, 07:58:21 pm »
Hi Marcus,

Attached please find updated Polish translation.

BTW - my ordinary '328 configuration reached 32764 bytes (sic!) this time...

Great work as always  :-+
 
The following users thanked this post: madires

Offline .RC.

  • Frequent Contributor
  • **
  • Posts: 257
  • Country: au
Re: $20 LCR ESR Transistor checker project
« Reply #8464 on: April 15, 2023, 12:00:35 am »
No idea how to use it, but it is there.   ;D

But my tester does this and I am not sure why.  I assume a hardware build error.  Sometimes with nothing installed it will say there is a resistor, always between pins two and three.
 

Offline indman

  • Super Contributor
  • ***
  • Posts: 1012
  • Country: by
Re: $20 LCR ESR Transistor checker project
« Reply #8465 on: April 15, 2023, 06:52:07 am »
But my tester does this and I am not sure why.  I assume a hardware build error.  Sometimes with nothing installed it will say there is a resistor, always between pins two and three.
This is not surprising, because in your photos I see a lot of unwashed flux. This device has a high sensitivity, so any dirt, flux between the test contacts is perceived as resistance. :)
 
The following users thanked this post: .RC.

Offline .RC.

  • Frequent Contributor
  • **
  • Posts: 257
  • Country: au
Re: $20 LCR ESR Transistor checker project
« Reply #8466 on: April 15, 2023, 08:48:10 am »
Thanks, I did think I had cleaned the board enough.  It would explain the erratic nature of the issue.   Given it a good clean now and all is good.

Now that I have worked out this compiling and programming I am blown away at the number of options in the config.h file. There seems to be a lot of fine tuning option where you can measure your device and put in correction figures, along with way too many things to enable everything on a little AT328P

It leaves the FNIRSI clone tester for dead and is only AU$10 more expensive.  I just need to find a good case to print out.

And who needs a torch option. :)






 

Offline alex_D

  • Contributor
  • Posts: 20
  • Country: gb
Re: $20 LCR ESR Transistor checker project
« Reply #8467 on: April 15, 2023, 05:39:37 pm »
Has anyone got the passive buzzer to work?  tried enabling the passive buzzer options and connected to the port in config_MCU.h, but get no sound when probing, using the piezo type like in the photo below.   :-//
 

Offline madires

  • Super Contributor
  • ***
  • Posts: 7767
  • Country: de
  • A qualified hobbyist ;)
Re: $20 LCR ESR Transistor checker project
« Reply #8468 on: April 15, 2023, 06:57:40 pm »
I tested a few passive buzzers and boneDragon tested too. Do you have a scope to check the output signal? Do you know the voltage specs of your buzzer?
 
The following users thanked this post: alex_D

Offline alex_D

  • Contributor
  • Posts: 20
  • Country: gb
Re: $20 LCR ESR Transistor checker project
« Reply #8469 on: April 15, 2023, 09:52:34 pm »
I tested a few passive buzzers and boneDragon tested too. Do you have a scope to check the output signal? Do you know the voltage specs of your buzzer?

Doh, found my mistake, didn't uncomment #define HW_BUZZER as well, works fine now.  :palm:
 

Offline indman

  • Super Contributor
  • ***
  • Posts: 1012
  • Country: by
Re: $20 LCR ESR Transistor checker project
« Reply #8470 on: April 16, 2023, 10:23:07 am »
I have updated the Russian translation of the pdf documentation for version 1.49m as well as the language file. :)
 
The following users thanked this post: madires, Yuriy_K

Offline Yuriy_K

  • Regular Contributor
  • *
  • Posts: 140
  • Country: ru
Re: $20 LCR ESR Transistor checker project
« Reply #8471 on: April 16, 2023, 12:38:22 pm »
Madires, thank you very much for the new version. Everything works great, but there is a small remark. When measuring electrolytic capacitors, there is a "dead zone" up to about 0.03 ohm. Maybe it's on my Mega644, please check everyone who installed the new 1.49m version...
The picture shows the measurements of two different capacitors at different frequencies.
 

Offline madires

  • Super Contributor
  • ***
  • Posts: 7767
  • Country: de
  • A qualified hobbyist ;)
Re: $20 LCR ESR Transistor checker project
« Reply #8472 on: April 16, 2023, 01:03:03 pm »
You're welcome! There are no changes in the actual ESR measurement functions for quite a while.
« Last Edit: April 16, 2023, 01:13:02 pm by madires »
 

Offline Fuzzy Star

  • Contributor
  • Posts: 30
  • Country: 00
Re: $20 LCR ESR Transistor checker project
« Reply #8473 on: April 16, 2023, 03:46:13 pm »
Get your ISP programmer ready! ;)

v1.49m
Since v1.47m we have symbols_32x39_hf in the bitmaps folder but don't have "#define SYMBOLS_32X39_HF" lines in config-<MCU> files. An oversight?
 

Offline indman

  • Super Contributor
  • ***
  • Posts: 1012
  • Country: by
Re: $20 LCR ESR Transistor checker project
« Reply #8474 on: April 16, 2023, 04:11:32 pm »
Since v1.47m we have symbols_32x39_hf in the bitmaps folder but don't have "#define SYMBOLS_32X39_HF" lines in config-<MCU> files. An oversight?
No, this is not an oversight. This symbols set is relevant for displays with a higher resolution of 320x240 and higher.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf