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

jellytot and 12 Guests are viewing this topic.

Offline roli_bark

  • Regular Contributor
  • *
  • Posts: 170
Re: $20 LCR ESR Transistor checker project
« Reply #2550 on: September 04, 2016, 06:57:40 am »
Yes you can Erase and start fresh. 
Erase - Using ISP ?
 

Offline flywheelz

  • Regular Contributor
  • *
  • Posts: 148
  • Country: us
Re: $20 LCR ESR Transistor checker project
« Reply #2551 on: September 04, 2016, 07:12:47 am »
Yes you can Erase and start fresh. 
Erase - Using ISP ?

Yes. Should be no problem erasing unless they disabled ISP then you need HV programmer.
 

Offline roli_bark

  • Regular Contributor
  • *
  • Posts: 170
Re: $20 LCR ESR Transistor checker project
« Reply #2552 on: September 04, 2016, 07:33:04 am »
I am always confused.

- Does "SPIEN=0" checked, mean ENABLE SPI serial programming ?
- Also as I recall, goofing around with the LOCK bits may (among other things) disable SPI programming.

OK anyways, I'll try. Thanks.
« Last Edit: September 04, 2016, 08:35:28 am by roli_bark »
 

Offline stj

  • Super Contributor
  • ***
  • Posts: 2155
  • Country: gb
Re: $20 LCR ESR Transistor checker project
« Reply #2553 on: September 04, 2016, 09:16:07 am »
good and bad news

good news, lock bits cant effect spi.

bad news, some programmer software uses "0" instead of "1" and "1" instead of "0"
(and should be shot for it - several times in the head)

that's why it's best to use fusebyte values in hex rather than individual fuse states.
 

Offline GBowes

  • Contributor
  • Posts: 33
  • Country: us
Re: $20 LCR ESR Transistor checker project
« Reply #2554 on: September 04, 2016, 11:20:38 am »

- Does "SPIEN=0" checked, mean ENABLE SPI serial programming ?


SPIEN=0 does mean enabled.

Although I guess anything is possible, I doubt that any programmers actually ask you to put in a '0' to mean a '1' (unprogrammed). In AVR chips, '0' is always programmed and '1' is always unprogrammed. This is a function of how the memory is made. The natural (unprogrammed) state is '1' hence the all FF's when looking at a blank chip.

I think stj is referring to the fact that some programmers try to make it easier to understand by using a check mark to mark a bit as programmed (i.e. value of bit = 0).
Where this can get confusing is when the chip manufacturer sometimes uses '0' (programmed) to mean enable that function (e.g. SPIEN=0 is SPI enabled) and at other times uses '0' to disable a function (e.g. RSTDISBL=0 is External Reset is Disabled). Note, that the actual function name from the datasheet often includes the function state ('EN', "DISBL', 'ON' etc) and when this is referenced, the choice of programmed or unprogrammed becomes clear.

The key to avoiding misunderstandings is to ALWAYS refer to the chip datasheet.
 

Offline stj

  • Super Contributor
  • ***
  • Posts: 2155
  • Country: gb
Re: $20 LCR ESR Transistor checker project
« Reply #2555 on: September 04, 2016, 12:18:55 pm »
probably a good time to post this link.
http://www.engbedded.com/fusecalc
 :)
 

Offline kodi

  • Contributor
  • Posts: 19
Re: $20 LCR ESR Transistor checker project
« Reply #2556 on: September 04, 2016, 03:02:20 pm »
Just quick question -I built the Banggood kit - namely this one  http://www.banggood.com/DIY-M12864-Graphics-Version-Transistor-Tester-Kit-LCR-ESR-PWM-p-986954.html. So at the first run I calibrated it and it all went ok, got few sample elements and everything was fine. However - today I was making an enclosure for this. And when I tested it it shows that there is 200-350pF capacitance between 1 and 3. I took it out of the enclosure and I am still getting same results. Is it possible I killed the the MCU by touching it or something?
 

Offline stj

  • Super Contributor
  • ***
  • Posts: 2155
  • Country: gb
Re: $20 LCR ESR Transistor checker project
« Reply #2557 on: September 04, 2016, 03:28:25 pm »
did you clean all the flux off?
 

Offline roli_bark

  • Regular Contributor
  • *
  • Posts: 170
Re: $20 LCR ESR Transistor checker project
« Reply #2558 on: September 04, 2016, 03:40:27 pm »
 

Offline roli_bark

  • Regular Contributor
  • *
  • Posts: 170
Re: $20 LCR ESR Transistor checker project
« Reply #2559 on: September 04, 2016, 03:45:01 pm »
Although I guess anything is possible, I doubt that any programmers actually ask you to put in a '0' to mean a '1' (unprogrammed). In AVR chips, '0' is always programmed and '1' is always unprogrammed. This is a function of how the memory is made. The natural (unprogrammed) state is '1' hence the all FF's when looking at a blank chip.
Look here (a snapshot at TL866 Programmer SW) - and see how it is confusing (0xFF == 0x00...)
 

Offline GBowes

  • Contributor
  • Posts: 33
  • Country: us
Re: $20 LCR ESR Transistor checker project
« Reply #2560 on: September 04, 2016, 04:43:26 pm »
Although I guess anything is possible, I doubt that any programmers actually ask you to put in a '0' to mean a '1' (unprogrammed). In AVR chips, '0' is always programmed and '1' is always unprogrammed. This is a function of how the memory is made. The natural (unprogrammed) state is '1' hence the all FF's when looking at a blank chip.
Look here (a snapshot at TL866 Programmer SW) - and see how it is confusing (0xFF == 0x00...)

NO!!!!!!! It is NOT saying 0xFF == 0x00

You left out of the quote from my post the following: "some programmers try to make it easier to understand by using a check mark to mark a bit as programmed (i.e. value of bit = 0). "
I was actually thinking of the TL866 when I wrote that.

Lets look specifically at the Lock Bit entries.

All the check boxes are currently UNCHECKED.
Next to the check box, the label says that the value WILL BE set to '0' (i.e. programmed) IF you check this box
In your image, all lock bit entries are UNCHECKED, meaning that the value of each bit is '1' (i.e. NOT Programmed
Therefore, down below in the config information, the value of all 8 bits of the lock byte are = 1 so the byte is equal to 0xFF.

Remember on the AVR chips a value of '0' in a bit is ALWAYS = 'Programmed' Only by knowing the function of that bit, can you tell whether or not it is enabled.
For example:
To ENABLE the lock bits (you DO NOT want to do this), you would check all those boxes which would set the Lock Fuse Byte to 0x00.
To ENABLE the SPI, you would check the SPIEN box which will set it to '0'
To DISABLE the external reset (you also DO NOT want to do this), you would check the RSTDISBL box which will set it to '0'

Hope this helps. The TL866 is absolutely correct. Our confusion comes from the fact that we tend to think of '1' as 'On and '-' as OFF. Because of the way flash memory is made in the AVR, they start off by making us remember that '1' is NOT Programmed and '0' is programmed. If that hasn't confused us enough, they then define some functions to be on when the chip is unprogrammed and others to be off. This is why it is important to pay attention to the complete function name which gives us a hint whether activating it will enable something or disable it.

[edit]
Note in the ATMega328 there are actually only 6 lock bits. Bit 6 and 7 of that byte are not used. There are also unused bits in the Extended Fuse Byte.
Some programmers may read an absent bit as a '0' but in an AVR it should actually be read as a '1'. This can cause verification errors which can be ignored. Again, you need to be familiar with the Datasheet.


« Last Edit: September 04, 2016, 04:49:42 pm by GBowes »
 

Offline roli_bark

  • Regular Contributor
  • *
  • Posts: 170
Re: $20 LCR ESR Transistor checker project
« Reply #2561 on: September 04, 2016, 05:46:33 pm »
I didn't say that some programmers NOT try to make it easier to understand.
I said it is CONFUSING. At least me.
 

Offline kodi

  • Contributor
  • Posts: 19
Re: $20 LCR ESR Transistor checker project
« Reply #2562 on: September 04, 2016, 06:01:44 pm »
did you clean all the flux off?
Yes - that's was my first thought. Board was cleaned before the first run with isopropyl alcohol.
Ok - just to be sure - I just blew some compressed air on it and it works again  :-//
Thanks for the help!
 

Offline bitseeker

  • Super Contributor
  • ***
  • Posts: 9057
  • Country: us
  • Lots of engineer-tweakable parts inside!
Re: $20 LCR ESR Transistor checker project
« Reply #2563 on: September 05, 2016, 07:36:29 am »
I didn't say that some programmers NOT try to make it easier to understand.
I said it is CONFUSING. At least me.

It was confusing to me at first, too. Seemed totally backwards.
TEA is the way. | TEA Time channel
 

Offline NiklasO

  • Newbie
  • Posts: 9
  • Country: se
Re: $20 LCR ESR Transistor checker project
« Reply #2564 on: September 06, 2016, 08:56:51 pm »
Attaching some pictures from inside of my newly delivered TC-1 (LCR-T6?) with full color screen.

Seems to be working great. The battery was really small so I changed it for a 1750 mAh one. Adds som weight. (I like it).

Other pics I found earlier:
https://yadi.sk/d/yW8xa5NJgUo5z/%D0%A2%D0%A1-1/Photo
« Last Edit: September 11, 2016, 12:01:39 am by NiklasO »
 

Offline belzrebuth

  • Frequent Contributor
  • **
  • Posts: 483
  • Country: gr
Re: $20 LCR ESR Transistor checker project
« Reply #2565 on: September 07, 2016, 11:26:33 am »
I've got this exact kit :
http://www.ebay.com/itm/331873741389?_trksid=p2057872.m2749.l2649&ssPageName=STRK%3AMEBIDX%3AIT

and built it with the instructions i've found here.
But all I get is a blank screen.(no backlight)

When I press the encoder I just get the LCD to light up.
What could be wrong?
« Last Edit: September 07, 2016, 12:02:51 pm by belzrebuth »
 

Offline vinceroger

  • Regular Contributor
  • *
  • Posts: 90
  • Country: gb
Re: $20 LCR ESR Transistor checker project
« Reply #2566 on: September 07, 2016, 12:22:37 pm »
I've got this exact kit :
http://www.ebay.com/itm/331873741389?_trksid=p2057872.m2749.l2649&ssPageName=STRK%3AMEBIDX%3AIT

and built it with the instructions i've found here.
But all I get is a blank screen.(no backlight)

When I press the encoder I just get the LCD to light up.
What could be wrong?

A few of us have built these kits when there shipped some have no data on the atmrga ic so you have to reload the correct hex eep files
« Last Edit: September 07, 2016, 12:54:45 pm by vinceroger »
 

Offline belzrebuth

  • Frequent Contributor
  • **
  • Posts: 483
  • Country: gr
Re: $20 LCR ESR Transistor checker project
« Reply #2567 on: September 07, 2016, 01:24:04 pm »
Doh!
So there is nothing wrong with the hardware?

Thing is I don't have an eeprom programmer at hand..
Do I have to get one of these TL866s  to do that?!


edit:I have an arduino uno board if that helps..
« Last Edit: September 07, 2016, 01:31:14 pm by belzrebuth »
 

Offline vinceroger

  • Regular Contributor
  • *
  • Posts: 90
  • Country: gb
Re: $20 LCR ESR Transistor checker project
« Reply #2568 on: September 07, 2016, 01:41:30 pm »
Doh!
So there is nothing wrong with the hardware?

Thing is I don't have an eeprom programmer at hand..
Do I have to get one of these TL866s  to do that?!


edit:I have an arduino uno board if that helps..

a few people have used arduino and avrdude etc ive not used arduino myself so cant help with programming it
or you could use one of these http://www.ebay.co.uk/itm/like/172308179849?lpid=122&chn=ps&googleloc=9045944&poi=&campaignid=620800750&device=c&adgroupid=27378723426&rlsatarget=pla-181480839426&adtype=pla&crdt=0
and solder some wires from the header too the ic and programe it that way
 

Offline belzrebuth

  • Frequent Contributor
  • **
  • Posts: 483
  • Country: gr
Re: $20 LCR ESR Transistor checker project
« Reply #2569 on: September 07, 2016, 01:57:33 pm »
Thanks for your help but I'm not at all familiar with these things!

I've never used an eeprom programmer and I don't have have one here either so I'm probably going to gave to take it to the seller to send me a preprogrammed atmega (or refund me because I received something that does not work)


I'll buy this little gizmo in the meantime but without a step by step guide I think I'll only make things worse..
 

Offline flywheelz

  • Regular Contributor
  • *
  • Posts: 148
  • Country: us
Re: $20 LCR ESR Transistor checker project
« Reply #2570 on: September 07, 2016, 02:28:08 pm »
I would not get TL866 just for flashing the tester unless you plan to flash many other chips. Plus it's cost quite a bit.

Just like you I have Arduino Uno and have been using it to flash the tester without any issues. You only need to connect 6 wires and load ArduinoISP sketch on Arduino. I have solder pin headers right to the underside to the appropriate pins of Atmega. I have not tried to flash the Atmega on the breadboard which might need an external crystal and few caps, not sure. If you decide to go this route I can help you along.

Recently I ordered a $2 USBasp programmer that will replace the Arduino Uno.

 

Offline belzrebuth

  • Frequent Contributor
  • **
  • Posts: 483
  • Country: gr
Re: $20 LCR ESR Transistor checker project
« Reply #2571 on: September 07, 2016, 03:01:44 pm »
Thanks flywheels;  I'd be very glad if you assist me thru this process!

I only have the UNO though.(and 6 wires:p)

If I don't need to purchase anything else we can do this whenever you can.

I found this page that should get me started on the arduino side of things.
https://www.arduino.cc/en/Tutorial/ArduinoISP




 

Offline vinceroger

  • Regular Contributor
  • *
  • Posts: 90
  • Country: gb
Re: $20 LCR ESR Transistor checker project
« Reply #2572 on: September 07, 2016, 04:02:03 pm »
Thanks flywheels;  I'd be very glad if you assist me thru this process!

I only have the UNO though.(and 6 wires:p)

If I don't need to purchase anything else we can do this whenever you can.

I found this page that should get me started on the arduino side of things.
https://www.arduino.cc/en/Tutorial/ArduinoISP

http://www.instructables.com/id/Burning-the-Bootloader-on-ATMega328-using-Arduino-/
post 552 in this thread may help too as we was helping another member use arduino
http://www.badcaps.net/forum/showthread.php?t=50720&highlight=esr+tester&page=28
« Last Edit: September 07, 2016, 04:11:29 pm by vinceroger »
 

Offline belzrebuth

  • Frequent Contributor
  • **
  • Posts: 483
  • Country: gr
Re: $20 LCR ESR Transistor checker project
« Reply #2573 on: September 07, 2016, 04:37:07 pm »
Thanks a ton vinceroger.!
I'll post back when I've got something.
 

Offline flywheelz

  • Regular Contributor
  • *
  • Posts: 148
  • Country: us
Re: $20 LCR ESR Transistor checker project
« Reply #2574 on: September 07, 2016, 04:51:23 pm »
Thanks flywheels;  I'd be very glad if you assist me thru this process!

I only have the UNO though.(and 6 wires:p)

If I don't need to purchase anything else we can do this whenever you can.

I found this page that should get me started on the arduino side of things.
https://www.arduino.cc/en/Tutorial/ArduinoISP

Here is how to Wire it up, see attachments. 

Then, Start Arduino IDE and upload example ArduinoISP.  Disconnect Arduino from USB.  Connect Tester to Arduino then plug in the USB.

Next I installed latest WinAvr.  It will install avrdude for you or just get it alone.  Then I go to command prompt and type:
Code: [Select]
avrdude -c avrisp -p m328p -P COM3 -b 19200 -e -U flash:w:"TransistorTester.hex":i -U eeprom:w:"TransistorTester.eep":i -U lfuse:w:0xf7:m -U hfuse:w:0xd9:m -U efuse:w:0x04:m
or for your tester might be
Code: [Select]
avrdude -c avrisp -p m328p -P COM3 -b 19200 -e -U flash:w:"TransistorTester.hex":i -U eeprom:w:"TransistorTester.eep":i -U lfuse:w:0xf7:m -U hfuse:w:0xd9:m -U efuse:w:0xfc:m
« Last Edit: September 07, 2016, 07:03:16 pm by flywheelz »
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf