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

Fahadalkithiri, es, Feliciano, Andy Watson, indman, tedris and 15 Guests are viewing this topic.

Offline phunky2018

  • Newbie
  • Posts: 3
  • Country: de
Re: $20 LCR ESR Transistor checker project
« Reply #4825 on: May 31, 2018, 05:14:32 pm »
I disabled LCD_RES and LCD_CS in config_328.h without success.

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

//#if 0
#define LCD_ST7735
#define LCD_COLOR                       /* color graphic display */
#define LCD_SPI                         /* SPI interface */
#define LCD_PORT         PORTD          /* port data register */
#define LCD_DDR          DDRD           /* port data direction register */
//#define LCD_RES          PD1            /* port pin used for /RESX (optional) */
//#define LCD_CS           PD5            /* port pin used for /CSX (optional) */
#define LCD_DC           PD3            /* port pin used for D/CX */
#define LCD_SCL          PD2            /* port pin used for SCL */
#define LCD_SDA          PD4            /* 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

Maybe your idea in the future with an dummy LCD could work. 
 

Online indman

  • Super Contributor
  • ***
  • Posts: 1066
  • Country: by
Re: $20 LCR ESR Transistor checker project
« Reply #4826 on: May 31, 2018, 06:11:37 pm »
Hi madires! :)
At me it is also impossible to receive the response in an automatic mode.
ERR responds to any command.
I try simulation of the project in Proteus.
 
The following users thanked this post: timelessbeing

Offline firewalker

  • Super Contributor
  • ***
  • Posts: 2452
  • Country: gr
Re: $20 LCR ESR Transistor checker project
« Reply #4827 on: May 31, 2018, 06:47:55 pm »
Nice! I started making the same yesterday! Can you share the Proteus project files?

Alexander.
Become a realist, stay a dreamer.

 

Online indman

  • Super Contributor
  • ***
  • Posts: 1066
  • Country: by
Re: $20 LCR ESR Transistor checker project
« Reply #4828 on: May 31, 2018, 07:06:37 pm »
So far the project in Proteus crude! I am not ready will share. Perhaps later. :)
 
The following users thanked this post: firewalker

Offline madires

  • Super Contributor
  • ***
  • Posts: 8026
  • Country: de
  • A qualified hobbyist ;)
Re: $20 LCR ESR Transistor checker project
« Reply #4829 on: May 31, 2018, 07:52:52 pm »
I disabled LCD_RES and LCD_CS in config_328.h without success.

Could you please try SERIAL_BITBANG?
 
The following users thanked this post: phunky2018

Offline madires

  • Super Contributor
  • ***
  • Posts: 8026
  • Country: de
  • A qualified hobbyist ;)
Re: $20 LCR ESR Transistor checker project
« Reply #4830 on: May 31, 2018, 08:00:21 pm »
Hi madires! :)
At me it is also impossible to receive the response in an automatic mode.
ERR responds to any command.
I try simulation of the project in Proteus.

At least you get some feedback. ;) Which control characters is the virtual terminal sending as newline?
 

Offline tongbajiel

  • Newbie
  • Posts: 5
  • Country: id
Re: $20 LCR ESR Transistor checker project
« Reply #4831 on: June 01, 2018, 12:30:20 am »
Hello guys.
"SALAM" form Indonesia.

Let me share my job testing for last version ESR from Karl-Heinz trunk on proteus 8.7 sp2
with ST7735 lcd.

This project based from old trunk KH esr files for ST7565 from this post.
You can find the original works here.
http://kazus.ru/forums/showthread.php?t=8259&page=20#

Schematic is very simple and not full like real board.
REMEMBER !!! its made just for test only on proteus.

you can change whatever you want for simulation, but must be warning if execution on real HW.

I change some parameter on makefile and not connected all of lcd pin on proteus to make its displayed and works on proteus.
I change "MAX_MENU_LINES" from 5 to 14 menu in "function_menu.c" in this test.
Remember to change the parameter if you want to flash in real hardware before compile it.
uncomment #CFLAGS += -DUSE_EEPROM in makefile if compile for real HW.

If anyone has same project from Markus based esr, and works displayed on proteus with BW/Color lcd, please share it, because still now i got not working simulation for Markus based esr.


Finally.... I hope you like, and forgive for my bad English.

« Last Edit: June 01, 2018, 05:12:34 pm by tongbajiel »
 
The following users thanked this post: firewalker, mauroh

Offline carrascoso

  • Contributor
  • Posts: 41
  • Country: es
Re: $20 LCR ESR Transistor checker project
« Reply #4832 on: June 01, 2018, 03:43:52 pm »
Hello, thanks to all of you and I was able to modify and update my old meter in disuse.  :clap:

Changed the ATmega168 by a 328, and incorporated a 20MHz crystal.

I have put the firmware K "mega328_2X16_menu" compiled at 20MHz, since firmware M has been impossible to make it work.

When I want to measure any component it does not recognize any and it gives practically the same results for all of them and not differentiating between them.

The only thing that recognizes well are the capacitors, but it gives a very high ESR.

In the calibration in the step that asks to put a capacitor of 4-30nf when putting it it remains indefinitely stopped, it is necessary to remove the condenser so that it goes ahead and finish the calibration.

Attached some photos, have if you can help me solve the problem.

Thank you

     

« Last Edit: June 01, 2018, 05:29:03 pm by carrascoso »
 

Offline carrascoso

  • Contributor
  • Posts: 41
  • Country: es
Re: $20 LCR ESR Transistor checker project
« Reply #4833 on: June 01, 2018, 03:55:20 pm »
     
« Last Edit: June 01, 2018, 03:57:23 pm by carrascoso »
 

Offline lordstein

  • Contributor
  • Posts: 16
  • Country: co
Re: $20 LCR ESR Transistor checker project
« Reply #4834 on: June 01, 2018, 06:23:28 pm »
i was measuring ESR on a visually damaged capacitor (680mF and 25v) and  i was very impressed because the values were very close to those shown by the atlas esr70. version 1.13k



delete tripit account
 

Online indman

  • Super Contributor
  • ***
  • Posts: 1066
  • Country: by
Re: $20 LCR ESR Transistor checker project
« Reply #4835 on: June 01, 2018, 07:19:40 pm »
At least you get some feedback. ;) Which control characters is the virtual terminal sending as newline?
The virtual terminal supports the CR (0x0D) codes (carriage return), BS (0x08) (return) and BEL (0x07) (a sound signal) controlling ASCII. All other codes, including line feed of LF (0x0A), are ignored.
 

Offline madires

  • Super Contributor
  • ***
  • Posts: 8026
  • Country: de
  • A qualified hobbyist ;)
Re: $20 LCR ESR Transistor checker project
« Reply #4836 on: June 01, 2018, 07:50:57 pm »
The remote commands expect each line to be terminated with either <CR><LF> or <LF> (CR=0D, LF=0A). Oops, found a typo in the README (it should be <LF> and not <NL>).
 

Offline tongbajiel

  • Newbie
  • Posts: 5
  • Country: id
Re: $20 LCR ESR Transistor checker project
« Reply #4837 on: June 01, 2018, 08:06:29 pm »

At me it is also impossible to receive the response in an automatic mode.
ERR responds to any command.
I try simulation of the project in Proteus.

Hi indman, Can you share the proteus source please
 

Offline phunky2018

  • Newbie
  • Posts: 3
  • Country: de
Re: $20 LCR ESR Transistor checker project
« Reply #4838 on: June 02, 2018, 06:01:59 am »
Hi madires,
yes SERIAL_BITBANG is working, in my case at PD4 and PD5.
Now i can play with all commands.
Thank you.

One stupid question, everytime I reprogram the chip, is also necessary to reprogram again the fuses?
 

Offline madires

  • Super Contributor
  • ***
  • Posts: 8026
  • Country: de
  • A qualified hobbyist ;)
Re: $20 LCR ESR Transistor checker project
« Reply #4839 on: June 02, 2018, 11:09:51 am »
Interesting! So I'll have to recheck SERIAL_HARDWARE on the ATmega328. The fuses need to be set just the first time (new or salvaged ATmega).
 

Offline madires

  • Super Contributor
  • ***
  • Posts: 8026
  • Country: de
  • A qualified hobbyist ;)
Re: $20 LCR ESR Transistor checker project
« Reply #4840 on: June 02, 2018, 11:21:28 am »
Quick update on the m-firmware. I'm working on an 1Wire driver (probes or a dedicated MCU pin are possible) and support for the DS18B20 temperature sensor.
 

Offline goophoba

  • Newbie
  • Posts: 2
  • Country: ca
Re: $20 LCR ESR Transistor checker project
« Reply #4841 on: June 03, 2018, 05:18:44 am »
I think I am going in circles and I was hoping someone might know whats up.

Got a "M328" (same as timelessbeings at Reply 4744 pg. 190) and I updated to version 1.33m on a spare 328 pulled out of a UNO (perhaps relevant?). I followed directions from this post using the eep and hex from mega328_st7565_kit on gitub. Got a "end of file error" and no write. Files also larger than others some others I've found.

I then tried the latest K-H M328 1.12 hex and eep from avrtester.tode and no joy. Flash and eeprom seem to erase and write just fine, no warnings in cmd aside from "cannot set sck period" but thats never got in the way before.  Even with the seemingly ok write when the mega328p is returned to "M328" tester the screen just stays blank when turned on. No power LED either. (contrast issue?) Led light and screen backlight stay on without any image.

As a last shot tried the files from here. Hex file 1k bigger at 87.4k than the previous hex attempted. These files worked, but the firmware comes up as V1.13k in the tester even though the page downloaded from says 1.33m. Seems like I am grabbing the wrong files but they are all labeled "mega328_st7565_kit".

Am I using the newest at 1.13K?
 

Offline timelessbeing

  • Frequent Contributor
  • **
  • Posts: 929
  • Country: 00
Re: $20 LCR ESR Transistor checker project
« Reply #4842 on: June 03, 2018, 07:45:24 am »
/Software/trunk directory is 'k' firmware.
/Software/Markus directory is 'm' firmware. (hex/eep files not provided. You need to compile)
« Last Edit: June 03, 2018, 07:47:00 am by timelessbeing »
 
The following users thanked this post: goophoba

Offline goophoba

  • Newbie
  • Posts: 2
  • Country: ca
Re: $20 LCR ESR Transistor checker project
« Reply #4843 on: June 04, 2018, 01:00:33 am »
ah, got it. Thanks.
 

Offline carrascoso

  • Contributor
  • Posts: 41
  • Country: es
Re: $20 LCR ESR Transistor checker project
« Reply #4844 on: June 04, 2018, 07:56:00 pm »
     

The problem that had to mediate all components was due to this resistance was not welded in place.
I do not know if it came from home or moved when the ATmega168 was changed by the Atmega 328.

Thank you very much to all.
regards

 

Offline madires

  • Super Contributor
  • ***
  • Posts: 8026
  • Country: de
  • A qualified hobbyist ;)
Re: $20 LCR ESR Transistor checker project
« Reply #4845 on: June 07, 2018, 06:54:15 pm »
Another quick update. The idea of a VT100 display driver appealed to me so much that I've simply written one. ;) It supports color (option switch) and replaces a LCD display completely, i.e. same output but no symbols, and special characters are replaced by standard ones. And it works also for all menus and tools. The benefits are freed-up MCU pins for other hardware options and a smaller firmware.
 
The following users thanked this post: timelessbeing, mauroh, bitseeker, Marcos, indman, pepe10000, phunky2018

Offline madires

  • Super Contributor
  • ***
  • Posts: 8026
  • Country: de
  • A qualified hobbyist ;)
Re: $20 LCR ESR Transistor checker project
« Reply #4846 on: June 12, 2018, 08:14:52 pm »
We have a simple modification for the TC-1 clone to make it work with the k/m-firmware. The control MCU U4 is replaced by a small circuit with two transistors. The best way seems to be to use thin enamel wire and hot glue. The ATmega's PD1 is the input for the test button and PD2 the output for the power control. Any jelly bean small signal NPN and PNP are fine.
« Last Edit: June 12, 2018, 08:34:39 pm by madires »
 
The following users thanked this post: Marcos, indman, Feliciano

Offline eliocor

  • Supporter
  • ****
  • Posts: 522
  • Country: it
    • rhodiatoce
Re: $20 LCR ESR Transistor checker project
« Reply #4847 on: June 12, 2018, 09:24:30 pm »
Quote
We have a simple modification for the TC-1 clone to make it work with the k/m-firmware. The control MCU U4 is replaced by a small circuit with two transistors. The best way seems to be to use thin enamel wire and hot glue. The ATmega's PD1 is the input for the test button and PD2 the output for the power control. Any jelly bean small signal NPN and PNP are fine.
Thanks for the schematics/modifications!

Any more details regarding
compilation flags/options/...
for the TC-1 firmware?
 

Offline madires

  • Super Contributor
  • ***
  • Posts: 8026
  • Country: de
  • A qualified hobbyist ;)
Re: $20 LCR ESR Transistor checker project
« Reply #4848 on: June 12, 2018, 09:33:19 pm »
The next m-firmware version will include the settings for the TC-1 (in the "Clones" file).
 
The following users thanked this post: eliocor, Marcos, flodo, mebel

Online indman

  • Super Contributor
  • ***
  • Posts: 1066
  • Country: by
Re: $20 LCR ESR Transistor checker project
« Reply #4849 on: June 13, 2018, 04:28:38 pm »
We have a simple modification for the TC-1 clone to make it work with the k/m-firmware. The control MCU U4 is replaced by a small circuit with two transistors. The best way seems to be to use thin enamel wire and hot glue. The ATmega's PD1 is the input for the test button and PD2 the output for the power control. Any jelly bean small signal NPN and PNP are fine.
Yes! :D
It works in simulation! madires thanks!
 
The following users thanked this post: Feliciano


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf