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

Obelix2007 and 9 Guests are viewing this topic.

Offline upsss

  • Regular Contributor
  • *
  • Posts: 163
  • Country: us
Re: $20 LCR ESR Transistor checker project
« Reply #3025 on: December 18, 2016, 06:09:33 pm »
I have compiled the latest available version k (702) with the option:

#CFLAGS + = -DLCD_SPI_OPEN_COL

And everything works perfect, so far nothing has broken and measurements go well.
The rotary encoder can be rotated at any speed without affecting the screen.

In these days I will be attentive to the operation in case something strange happens to report it.

Many thanks to all for the help and greetings

Hi, is this https://www.mikrocontroller.net/svnbrowser/transistortester/Software/trunk/mega328_T3_T4_st7565/ the version that you used which fixed the problem?  If it is not then please provide a link to it.

Thanks
« Last Edit: December 18, 2016, 06:11:10 pm by upsss »
 

Offline pepe10000

  • Regular Contributor
  • *
  • Posts: 87
  • Country: es
Re: $20 LCR ESR Transistor checker project
« Reply #3026 on: December 18, 2016, 07:18:03 pm »
Exactly:

https://www.mikrocontroller.net/svnbrowser/transistortester/Software/trunk/mega328_T3_T4_st7565/

I remind you that I have installed an AMS1117 3.3 for working voltage of LCD, resistors PULL-UP (attached image) and a crystal of 16MHZ.

I include image of another one that is in the process of assembly and improvements (even without putting the rotary encoder).

Good luck and I hope that works for you as well as me.
« Last Edit: January 08, 2019, 09:25:37 am by pepe10000 »
 

Online edavid

  • Super Contributor
  • ***
  • Posts: 3383
  • Country: us
Re: $20 LCR ESR Transistor checker project
« Reply #3027 on: December 18, 2016, 08:30:32 pm »
While checking my to-do list I've stumbled across CLDs/CRDs (current limiting diodes / current regulater diodes). A quick search shows that they are availiable up to about 5mA (high current ones up to 23mA), which can be handled by the transistor tester. Common types seem to be 1N5285 up to 1N5314. If you got some CLDs and like to support this project, I'd appreciate a few samples ;)

They are just JFETs with the gate and source shorted, so you can use your JFET collection to test your code.
 

Offline upsss

  • Regular Contributor
  • *
  • Posts: 163
  • Country: us
Re: $20 LCR ESR Transistor checker project
« Reply #3028 on: December 18, 2016, 09:15:16 pm »
Exactly:

[url]https://www.mikrocontroller.net/svnbrowser/transistortester/Software/trunk/mega328_T3_T4_st7565/[/url]

I remind you that I have installed an AMS1117 3.3 for working voltage of LCD, resistors PULL-UP (attached image) and a crystal of 16MHZ.

I include image of another one that is in the process of assembly and improvements (even without putting the rotary encoder):



Good luck and I hope that works for you as well as me.


Please clarify, your problem with the encoder rotation speed was fixed after you updated the firmware to version 702 or after you added the 3.3v regulator for the display with the external pull ups. 

At the time when I tried to fix this problem, I tried to lower the voltage to the LCD display by adding a third diode in series to the original two diodes (without any external pull up resistors) and that didn't make much of a difference.  My last firmware I used was whatever was the latest version about a month ago and I am not sure if that is the difference.
 

Offline pepe10000

  • Regular Contributor
  • *
  • Posts: 87
  • Country: es
Re: $20 LCR ESR Transistor checker project
« Reply #3029 on: December 18, 2016, 09:31:41 pm »
Exactly:

https://www.mikrocontroller.net/svnbrowser/transistortester/Software/trunk/mega328_T3_T4_st7565/

I remind you that I have installed an AMS1117 3.3 for working voltage of LCD, resistors PULL-UP (attached image) and a crystal of 16MHZ.

I include image of another one that is in the process of assembly and improvements (even without putting the rotary encoder):



Good luck and I hope that works for you as well as me.

Please clarify, your problem with the encoder rotation speed was fixed after you updated the firmware to version 702 or after you added the 3.3v regulator for the display with the external pull ups. 

At the time when I tried to fix this problem, I tried to lower the voltage to the LCD display by adding a third diode in series to the original two diodes (without any external pull up resistors) and that didn't make much of a difference.  My last firmware I used was whatever was the latest version about a month ago and I am not sure if that is the difference.

The speed of rotation of the encoder was fixed when I changed the line:

#CFLAGS + = -DLCD_SPI_OPEN_COL

The regulator of 3.3v and the resistances were already set before, I just mentioned it as additional data in case it was useful.

A greeting.
 

Offline upsss

  • Regular Contributor
  • *
  • Posts: 163
  • Country: us
Re: $20 LCR ESR Transistor checker project
« Reply #3030 on: December 18, 2016, 09:48:21 pm »
Sorry, I don't remember what was the default, you compiled with:

#CFLAGS + = -DLCD_SPI_OPEN_COL
or
CFLAGS + = -DLCD_SPI_OPEN_COL
 

Offline pepe10000

  • Regular Contributor
  • *
  • Posts: 87
  • Country: es
Re: $20 LCR ESR Transistor checker project
« Reply #3031 on: December 18, 2016, 09:56:09 pm »
Sorry, I don't remember what was the default, you compiled with:

#CFLAGS + = -DLCD_SPI_OPEN_COL
or
CFLAGS + = -DLCD_SPI_OPEN_COL

Original:

CFLAGS + = -DLCD_SPI_OPEN_COL

Fixed Encoder:

#CFLAGS + = -DLCD_SPI_OPEN_COL
 

Offline upsss

  • Regular Contributor
  • *
  • Posts: 163
  • Country: us
Re: $20 LCR ESR Transistor checker project
« Reply #3032 on: December 18, 2016, 10:05:34 pm »
What about the pull ups for the encoder?  They should be also pulled up to the 3.3v regulator.
 

Offline pepe10000

  • Regular Contributor
  • *
  • Posts: 87
  • Country: es
Re: $20 LCR ESR Transistor checker project
« Reply #3033 on: December 18, 2016, 10:11:38 pm »
What about the pull ups for the encoder?  They should be also pulled up to the 3.3v regulator.

No, I have the encoder PULL-UP connected to 5v, look at the photos from post #3006 for more information.


« Last Edit: December 18, 2016, 10:16:59 pm by pepe10000 »
 

Offline upsss

  • Regular Contributor
  • *
  • Posts: 163
  • Country: us
Re: $20 LCR ESR Transistor checker project
« Reply #3034 on: December 18, 2016, 11:15:23 pm »
If you have the encoder pulled up to 5v, I think you are defeating the purpose of the 3.3v regulator.  I would just have to verify that these encoders are specified to function at 3.3v.

The entire problem stems from the fact that the processor is powered by 5v driving an LCD that is designed to operate at 3.3v.
« Last Edit: December 18, 2016, 11:24:31 pm by upsss »
 

Offline pepe10000

  • Regular Contributor
  • *
  • Posts: 87
  • Country: es
Re: $20 LCR ESR Transistor checker project
« Reply #3035 on: December 19, 2016, 06:36:44 am »
If you have the encoder pulled up to 5v, I think you are defeating the purpose of the 3.3v regulator.  I would just have to verify that these encoders are specified to function at 3.3v.

The entire problem stems from the fact that the processor is powered by 5v driving an LCD that is designed to operate at 3.3v.

I have connected the encoder to 5v because this explains the manual in section 2.2.5.



The regulator is only installed because in the forum it was advised to set it so that the LCD worked at the voltage specified by the manufacturer.

Certainly all the problems derive from using an LCD that works at 3.3v, I have thought of replacing it with another one but the expense and the fudge that has to be done does not compensate, better buy a new one with all the options available like the GM328 for example.



But as the electronica is my great hobby I prefer to modify the ones that I have to offer me the maximum benefits possible and to maximize them.

A greeting.
 

Offline upsss

  • Regular Contributor
  • *
  • Posts: 163
  • Country: us
Re: $20 LCR ESR Transistor checker project
« Reply #3036 on: December 19, 2016, 08:10:56 am »
Very well Pepe, if Electronics is only a hobby for you then you are doing a great job.  For me Electronics in not only a great hobby but also my profession.

As far as the Karl's original manual, if you interface a processor that is powered with 5v to an LCD that is also powered by 5v then of course you would want to power the encoder with 5v.  I did a quick search and I could not find a detail spec for these encoders so I am not sure if they can function properly at 3.3v which could be a problem.

In our case, to eliminate the problems we were experiencing you would want all outputs from the processor going to the LCD to be open collectors and all pull ups including the encoder and the LCD power from a separate 3.3V regulator as you did.  When I get some more time I will fix it for good.
 

Offline pepe10000

  • Regular Contributor
  • *
  • Posts: 87
  • Country: es
Re: $20 LCR ESR Transistor checker project
« Reply #3037 on: December 19, 2016, 08:40:01 pm »
It has also been my profession for more than 25 years, but now with the crisis I have been unemployed for 6 years, so now it is more a hobby, and having free time I can learn many more things.

When I solve it, I hope you will comment on the results, so it works very well for me at the moment.

I have only noticed a small fault and is that when you turn the encoder super-fast the tester restarts.

But under normal circumstances the encoder is never turned so fast.

A greeting.
 

Offline upsss

  • Regular Contributor
  • *
  • Posts: 163
  • Country: us
Re: $20 LCR ESR Transistor checker project
« Reply #3038 on: December 19, 2016, 10:37:25 pm »
Sorry to hear that you have been unemployed for so long, here the economy is not that good either.  Hopefully with our new president it will improve significantly.   I am an EE with over 30 years of design experience and now finally retired.

It would be interesting to know if you can try powering the encoder with 3.3v instead of 5v and hopefully that will fix your last problem.  Simply move the white wire that goes to the input of your 3.3v regulator to the output of the regulator.  I still didn't find a detail spec of these encoders so I am not sure if they will function at 3.3v but you have nothing to loose.
 

Offline stj

  • Super Contributor
  • ***
  • Posts: 2155
  • Country: gb
Re: $20 LCR ESR Transistor checker project
« Reply #3039 on: December 20, 2016, 06:45:54 am »
the encoder is a physical switch, it will function at any low voltage
 

Offline upsss

  • Regular Contributor
  • *
  • Posts: 163
  • Country: us
Re: $20 LCR ESR Transistor checker project
« Reply #3040 on: December 20, 2016, 07:11:32 pm »
Sorry, that isn't true.   The encoder is a digital switch that produces 2 outputs that are 90 degree out of phase and the phase shift depends on the direction of rotation.  Like any other digital circuitry its Vcc has a certain spec.  As I said,  I could not find a detail spec to figure out if it will function properly at 3.3v.  If it uses TTL logic then it needs 5V, it it uses CMOS logic then 3.3v will be fine.
« Last Edit: December 20, 2016, 07:24:10 pm by upsss »
 

Offline Willem52

  • Regular Contributor
  • *
  • Posts: 73
  • Country: nl
Re: $20 LCR ESR Transistor checker project
« Reply #3041 on: December 20, 2016, 07:24:11 pm »
These rotary encoders are used as digital switches.
But there is no digital logic inside of them. See also:
http://henrysbench.capnfatz.com/henrys-bench/arduino-sensors-and-input/keyes-ky-040-arduino-rotary-encoder-user-manual/#Keyes_Rotary_Encoder_Schematic
 

Offline madires

  • Super Contributor
  • ***
  • Posts: 7769
  • Country: de
  • A qualified hobbyist ;)
Re: $20 LCR ESR Transistor checker project
« Reply #3042 on: December 20, 2016, 07:51:58 pm »
Please see http://www.robotroom.com/Counter5.html for some nice tear-down pictures of a simple rotary encoder ;)
 

Offline upsss

  • Regular Contributor
  • *
  • Posts: 163
  • Country: us
Re: $20 LCR ESR Transistor checker project
« Reply #3043 on: December 20, 2016, 08:52:39 pm »
Well, I stand corrected, you guys are right!  I just had to take one of these apart now, I guess this is NOT what I used to work with.
 

Offline madires

  • Super Contributor
  • ***
  • Posts: 7769
  • Country: de
  • A qualified hobbyist ;)
Re: $20 LCR ESR Transistor checker project
« Reply #3044 on: December 20, 2016, 09:05:08 pm »
At the moment I'm working on an alternative PWM generator especially for a rotary encoder and a display with more than 2 text lines. With a button press you can switch between frequency and ratio, while the rotary encoder changes the value. That way you don't have to select the frequency from a fixed list first. It works similar to the squarewave generator. BTW, would anyone interested in a dedicated servo test providing the proper PWM signal?
 

Offline mauroh

  • Frequent Contributor
  • **
  • Posts: 292
  • Country: it
    • Mauro Pintus
Re: $20 LCR ESR Transistor checker project
« Reply #3045 on: December 21, 2016, 12:17:11 am »
+1 for the servo tester, if present I'll add a separate/external power souce to provide the proper current/voltage to the servo under test.
Mauro

Offline bitseeker

  • Super Contributor
  • ***
  • Posts: 9057
  • Country: us
  • Lots of engineer-tweakable parts inside!
Re: $20 LCR ESR Transistor checker project
« Reply #3046 on: December 21, 2016, 12:21:51 am »
BTW, would anyone interested in a dedicated servo test providing the proper PWM signal?

I don't work with servos, but sounds like a useful tool. Use the rotary encoder to change pulse width and, hence, position.
TEA is the way. | TEA Time channel
 

Online edavid

  • Super Contributor
  • ***
  • Posts: 3383
  • Country: us
Re: $20 LCR ESR Transistor checker project
« Reply #3047 on: December 21, 2016, 05:31:51 am »
BTW, would anyone interested in a dedicated servo test providing the proper PWM signal?

I don't see much need for it, since everyone with servos to test has probably bought one of these: http://www.ebay.com/itm/1pcs-multi-Servo-tester-3CH-ECS-speed-controler-Power-CHANNELS-CCPM-meter-/172214381958
 

Offline Willem52

  • Regular Contributor
  • *
  • Posts: 73
  • Country: nl
Re: $20 LCR ESR Transistor checker project
« Reply #3048 on: December 21, 2016, 10:01:08 am »
 
The following users thanked this post: edavid, bitseeker

Offline all_repair

  • Frequent Contributor
  • **
  • Posts: 716
Re: $20 LCR ESR Transistor checker project
« Reply #3049 on: December 21, 2016, 03:42:14 pm »
At the moment I'm working on an alternative PWM generator especially for a rotary encoder and a display with more than 2 text lines. With a button press you can switch between frequency and ratio, while the rotary encoder changes the value. That way you don't have to select the frequency from a fixed list first. It works similar to the squarewave generator.

For brainstorming sake, it shall be good if there is an emulator for various type of PWM chips out there.  This can be helpful in troubleshoot switch mode power supply.   The supply works in a closed loop.  If the loop is broken, find the area that is broken is non-trivial.  As it is, it may not be possible for this checker.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf