ESR meter upgrades

Collapse
This is a sticky topic.
X
X
 
  • Time
  • Show
Clear All
new posts
  • vinceroger69
    Badcaps Legend
    • Mar 2012
    • 6714
    • uk

    #521
    Re: ESR meter upgrades

    Originally posted by stj
    i dont know where you got the command for USBasp from,

    try this:


    and try these files:
    copied from eevblog stj just in case you havnt saw it
    I will try to program the chip based on what I have already read with an USBASP

    I got a question if anyone knows
    it is really necessary to use a 8 Mhz Crystal for program the chip with the USBASP? The only one I got now is the one on the component tester and I have to desolder that to be able to program the chip, then solder back again again to test and so on.

    Or I can desolder the Crystal and solder a 16 Mhz Crystal in the tester? I do have spare 16 Mhz Crystals.
    But from where I live there is no electronics shops open for the weekend so I will have to wait until next Monday or go through the soldering desodering procedure.

    Thanks
    Belen
    Last edited by vinceroger69; 07-23-2016, 06:58 AM.

    Comment

    • stj
      Great Sage 齊天大聖
      • Dec 2009
      • 30911
      • Albion

      #522
      Re: ESR meter upgrades

      to program an atmel, you must have all the power pins powered - there are more than 2,
      and you must have a clock running - it dont have to be 8MHz, it can be anything within range of the chip.
      so 1-20MHz - is fine.

      that's why it's best to program them in-circuit - all that is already taken care of.

      Comment

      • stj
        Great Sage 齊天大聖
        • Dec 2009
        • 30911
        • Albion

        #523
        Re: ESR meter upgrades

        btw, that tl866cs of yours, i think that can do in circuit programming using a cable from the connector on the end.

        if i remember, the CS has the connector - the non-cs does not, just a blanking plate.

        Comment

        • vinceroger69
          Badcaps Legend
          • Mar 2012
          • 6714
          • uk

          #524
          Re: ESR meter upgrades

          my tl866 just has a blanking plate stj but has loads of adaptors in the box and bag
          as per your post above for the new member i was trying to find a picture of the header and the ic wiring maybe you have one you can upload as im on my phone at the minute.
          Last edited by vinceroger69; 07-23-2016, 08:05 AM.

          Comment

          • stj
            Great Sage 齊天大聖
            • Dec 2009
            • 30911
            • Albion

            #525
            Re: ESR meter upgrades

            you should upgrade your programmer.
            http://blackstufflabs.com/2013/11/18...l866a/?lang=en


            http://www.eevblog.com/forum/blog/ee...rammer-review/

            Comment

            • vinceroger69
              Badcaps Legend
              • Mar 2012
              • 6714
              • uk

              #526
              Re: ESR meter upgrades

              Thanks stj yes i have saw that video already it looks a good tool and thanks for the link i might consider the upgrades at some points i need to collect some more projects too work on as have none at the minute (well one a psp needs a replacement shell fitting but the china one provided looks rubbish quility so been putting this job off)
              Last edited by vinceroger69; 07-23-2016, 07:37 AM.

              Comment

              • bmht
                Member
                • Jul 2016
                • 37
                • Venezuela

                #527
                Re: ESR meter upgrades

                Originally posted by vinceroger69
                I saw your post on eevblog are you programming the chip on the esr pcb? though a fitted header?
                Dear Vince thank you

                I removed the chip from the transistor tester and inserted it into a PCB

                I'm programing the chip using an USBASP and the procedure as described in here

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

                I will retry now with the code provided by sjt and will right away post results
                Again many thanks to you for refering me here and sjt and other members helping me with this issue

                Belen

                Comment

                • bmht
                  Member
                  • Jul 2016
                  • 37
                  • Venezuela

                  #528
                  Re: ESR meter upgrades

                  Dear guys

                  I got somehow a success

                  I was able to upload the firmware and now the display stays lit ans the led too but still nothing shows on the display just blank

                  This was my result o the programming
                  Code:
                  C:\AVR>avrdude -c USBasp -P usb -p m328p -U flash:w:Code.HEX \-U eeprom:w:Data.H
                  EX \-U lfuse:w:0xf7:m \-U hfuse:w:0xd9:m \-U efuse:w:0xfc:m
                  
                  avrdude: AVR device initialized and ready to accept instructions
                  
                  Reading | ################################################## | 100% 0.01s
                  
                  avrdude: Device signature = 0x1e950f
                  avrdude: NOTE: "flash" memory has been specified, an erase cycle will be perform
                  ed
                       To disable this feature, specify the -D option.
                  avrdude: erasing chip
                  avrdude: reading input file "Code.HEX"
                  avrdude: input file Code.HEX auto detected as Intel Hex
                  avrdude: writing flash (29702 bytes):
                  
                  Writing | ################################################## | 100% 18.81s
                  
                  avrdude: 29702 bytes of flash written
                  avrdude: verifying flash memory against Code.HEX:
                  avrdude: load data flash data from input file Code.HEX:
                  avrdude: input file Code.HEX auto detected as Intel Hex
                  avrdude: input file Code.HEX contains 29702 bytes
                  avrdude: reading on-chip flash data:
                  
                  Reading | ################################################## | 100% 11.40s
                  
                  avrdude: verifying ...
                  avrdude: 29702 bytes of flash verified
                  
                  avrdude: safemode: Fuses OK (E:01, H:DF, L:F7)
                  
                  avrdude done. Thank you.
                  and this is how it is now



                  I'm sorry for the clips on the side but those were the cables I soldered to be able to attach and detach the crystal I did not knew I could use a 16 mhz one until today and I had already took that one out.
                  Meanwhile I receive an answer I'm going to solder the crystal back onto the tester.

                  Thank you all again
                  Belen
                  Attached Files
                  Last edited by Per Hansson; 06-16-2022, 02:02 PM. Reason: Added CODE tags, uploaded offsite image

                  Comment

                  • stj
                    Great Sage 齊天大聖
                    • Dec 2009
                    • 30911
                    • Albion

                    #529
                    Re: ESR meter upgrades

                    go do it again - the fuses didnt get programmed.

                    copy & paste from this:
                    Attached Files

                    Comment

                    • bmht
                      Member
                      • Jul 2016
                      • 37
                      • Venezuela

                      #530
                      Re: ESR meter upgrades

                      Dear

                      I reflashed and now the display stays lit for about 4 seconds and then display and led turns off.

                      Keep in mind that my files ransistorTester.hex are from

                      https://www.mikrocontroller.net/svnb...28_st7565_kit/


                      Code:
                      C:\AVR>avrdude -c USBasp -P usb -p m328p -U flash:w:TransistorTester.hex \-U eep
                      rom:w:TransistorTester.eep \-U lfuse:w:0xf7:m \-U hfuse:w:0xd9:m \-U efuse:w:0xf
                      c:m
                      
                      avrdude: AVR device initialized and ready to accept instructions
                      
                      Reading | ################################################## | 100% 0.01s
                      
                      avrdude: Device signature = 0x1e950f
                      avrdude: NOTE: "flash" memory has been specified, an erase cycle will be perform
                      ed
                           To disable this feature, specify the -D option.
                      avrdude: erasing chip
                      avrdude: reading input file "TransistorTester.hex"
                      avrdude: input file TransistorTester.hex auto detected as Intel Hex
                      avrdude: writing flash (29952 bytes):
                      
                      Writing | ################################################## | 100% 19.04s
                      
                      avrdude: 29952 bytes of flash written
                      avrdude: verifying flash memory against TransistorTester.hex:
                      avrdude: load data flash data from input file TransistorTester.hex:
                      avrdude: input file TransistorTester.hex auto detected as Intel Hex
                      avrdude: input file TransistorTester.hex contains 29952 bytes
                      avrdude: reading on-chip flash data:
                      
                      Reading | ################################################## | 100% 10.39s
                      
                      avrdude: verifying ...
                      avrdude: 29952 bytes of flash verified
                      
                      avrdude: safemode: Fuses OK (E:01, H:DF, L:F7)
                      
                      avrdude done. Thank you.
                      Last edited by Per Hansson; 07-23-2016, 12:49 PM. Reason: Added CODE tags

                      Comment

                      • stj
                        Great Sage 齊天大聖
                        • Dec 2009
                        • 30911
                        • Albion

                        #531
                        Re: ESR meter upgrades

                        it's not programming your H & E fuses.

                        Comment

                        • stj
                          Great Sage 齊天大聖
                          • Dec 2009
                          • 30911
                          • Albion

                          #532
                          Re: ESR meter upgrades

                          try just typing these individually:

                          avrdude -c USBasp -P usb -p m328p -U lfuse:w:0xf7:m

                          avrdude -c USBasp -P usb -p m328p -U hfuse:w:0xd9:m

                          avrdude -c USBasp -P usb -p m328p -U efuse:w:0xfc:m

                          Comment

                          • bmht
                            Member
                            • Jul 2016
                            • 37
                            • Venezuela

                            #533
                            Re: ESR meter upgrades

                            Would you advice for me to use a blank chip?
                            Maybe the chip is broken
                            How do I verify if it's programming the fuses or not?

                            Thanks again
                            Belen

                            Comment

                            • bmht
                              Member
                              • Jul 2016
                              • 37
                              • Venezuela

                              #534
                              Re: ESR meter upgrades

                              Code:
                              C:\AVR>avrdude -c USBasp -P usb -p m328p -U lfuse:w:0xf7:m
                              
                              avrdude: AVR device initialized and ready to accept instructions
                              
                              Reading | ################################################## | 100% 0.01s
                              
                              avrdude: Device signature = 0x1e950f
                              avrdude: reading input file "0xf7"
                              avrdude: writing lfuse (1 bytes):
                              
                              Writing | ################################################## | 100% 0.01s
                              
                              avrdude: 1 bytes of lfuse written
                              avrdude: verifying lfuse memory against 0xf7:
                              avrdude: load data lfuse data from input file 0xf7:
                              avrdude: input file 0xf7 contains 1 bytes
                              avrdude: reading on-chip lfuse data:
                              
                              Reading | ################################################## | 100% 0.00s
                              
                              avrdude: verifying ...
                              avrdude: 1 bytes of lfuse verified
                              
                              avrdude: safemode: Fuses OK (E:01, H:DF, L:F7)
                              
                              avrdude done. Thank you.

                              Code:
                              C:\AVR>avrdude -c USBasp -P usb -p m328p -U hfuse:w:0xd9:m
                              
                              avrdude: AVR device initialized and ready to accept instructions
                              
                              Reading | ################################################## | 100% 0.01s
                              
                              avrdude: Device signature = 0x1e950f
                              avrdude: reading input file "0xd9"
                              avrdude: writing hfuse (1 bytes):
                              
                              Writing | ################################################## | 100% 0.01s
                              
                              avrdude: 1 bytes of hfuse written
                              avrdude: verifying hfuse memory against 0xd9:
                              avrdude: load data hfuse data from input file 0xd9:
                              avrdude: input file 0xd9 contains 1 bytes
                              avrdude: reading on-chip hfuse data:
                              
                              Reading | ################################################## | 100% 0.00s
                              
                              avrdude: verifying ...
                              avrdude: 1 bytes of hfuse verified
                              
                              avrdude: safemode: Fuses OK (E:01, H:D9, L:F7)
                              
                              avrdude done. Thank you.

                              Code:
                              C:\AVR>avrdude -c USBasp -P usb -p m328p -U efuse:w:0xfc:m
                              
                              avrdude: AVR device initialized and ready to accept instructions
                              
                              Reading | ################################################## | 100% 0.01s
                              
                              avrdude: Device signature = 0x1e950f
                              avrdude: reading input file "0xfc"
                              avrdude: writing efuse (1 bytes):
                              
                              Writing |                          | 0% 0.00s ***faile
                              d;
                              Writing | ################################################## | 100% 0.04s
                              
                              avrdude: 1 bytes of efuse written
                              avrdude: verifying efuse memory against 0xfc:
                              avrdude: load data efuse data from input file 0xfc:
                              avrdude: input file 0xfc contains 1 bytes
                              avrdude: reading on-chip efuse data:
                              
                              Reading | ################################################## | 100% 0.00s
                              
                              avrdude: verifying ...
                              avrdude: verification error, first mismatch at byte 0x0000
                                   0x04 != 0xfc
                              avrdude: verification error; content mismatch
                              
                              avrdude: safemode: efuse changed! Was fc, and is now 4
                              Would you like this fuse to be changed back? [y/n] y
                              And it does nothing else...

                              APPARENTLY last fuse can not be written

                              I'm going to use a blank ship and I will report back
                              Thanks again
                              Last edited by Per Hansson; 07-23-2016, 12:51 PM. Reason: Added CODE tags

                              Comment

                              • bmht
                                Member
                                • Jul 2016
                                • 37
                                • Venezuela

                                #535
                                Re: ESR meter upgrades

                                This is crazy
                                I have changed for a blank chip and now it says
                                Code:
                                C:\AVR>avrdude -c USBasp -P usb -p m328p -U flash:w:TransistorTester.hex \-U eep
                                rom:w:TransistorTester.eep \-U lfuse:w:0xf7:m \-U hfuse:w:0xd9:m \-U efuse:w:0xf
                                c:m
                                
                                avrdude: error: programm enable: target doesn't answer. 1
                                avrdude: initialization failed, rc=-1
                                     Double check connections and try again, or use -F to override
                                     this check.
                                
                                
                                avrdude done. Thank you.
                                I'm going to use an Arduino as ISP programmer and report back
                                Last edited by Per Hansson; 07-23-2016, 12:51 PM. Reason: Added CODE tags

                                Comment

                                • bmht
                                  Member
                                  • Jul 2016
                                  • 37
                                  • Venezuela

                                  #536
                                  Re: ESR meter upgrades

                                  I'm getting a bit frustrated in here...
                                  With arduino as ISP programmer both the chip that came with the tester and a new black chip I get this

                                  Code:
                                  C:\Program Files (x86)\Arduino\hardware\tools\avr\bin>avrdude -C ../etc/avrdude.
                                  conf -c avrisp -P COM3 -b 19200 -p m8 -U flash:w:TransistorTester.hex \-U eeprom
                                  :w:TransistorTester.eep \-U lfuse:w:0xf7:m \-U hfuse:w:0xd9:m \-U efuse:w:0xfc:m
                                  
                                  
                                  avrdude: AVR device initialized and ready to accept instructions
                                  
                                  Reading | ################################################## | 100% 0.04s
                                  
                                  avrdude: Device signature = 0x000000 (retrying)
                                  
                                  Reading | ################################################## | 100% 0.03s
                                  
                                  avrdude: Device signature = 0x000000 (retrying)
                                  
                                  Reading | ################################################## | 100% 0.04s
                                  
                                  avrdude: Device signature = 0x000000
                                  avrdude: Yikes! Invalid device signature.
                                       Double check connections and try again, or use -F to override
                                       this check.
                                  
                                  
                                  avrdude done. Thank you.
                                  Last edited by Per Hansson; 07-23-2016, 12:52 PM. Reason: Added CODE tags

                                  Comment

                                  • vinceroger69
                                    Badcaps Legend
                                    • Mar 2012
                                    • 6714
                                    • uk

                                    #537
                                    Re: ESR meter upgrades

                                    Originally posted by bmht
                                    I'm getting a bit frustrated in here...
                                    With arduino as ISP programmer both the chip that came with the tester and a new black chip I get this

                                    C:\Program Files (x86)\Arduino\hardware\tools\avr\bin>avrdude -C ../etc/avrdude.
                                    conf -c avrisp -P COM3 -b 19200 -p m8 -U flash:w:TransistorTester.hex \-U eeprom
                                    :w:TransistorTester.eep \-U lfuse:w:0xf7:m \-U hfuse:w:0xd9:m \-U efuse:w:0xfc:m


                                    avrdude: AVR device initialized and ready to accept instructions

                                    Reading | ################################################## | 100% 0.04s

                                    avrdude: Device signature = 0x000000 (retrying)

                                    Reading | ################################################## | 100% 0.03s

                                    avrdude: Device signature = 0x000000 (retrying)

                                    Reading | ################################################## | 100% 0.04s

                                    avrdude: Device signature = 0x000000
                                    avrdude: Yikes! Invalid device signature.
                                    Double check connections and try again, or use -F to override
                                    this check.


                                    avrdude done. Thank you.
                                    sorry but i have not used avrdude etc yet for my ic i used a tl866 programmer the only other way that may work is adding the header and soldering wires direct to the ic socket etc, stj has some pictures regarding this as im also going to try programming this way myself in the future using avrdude etc but im reading up on the programming side of things at the minute.
                                    just a thought with your crystal are you using 22pf capacitors as well? when your programming the ic
                                    Last edited by vinceroger69; 07-23-2016, 10:37 AM.

                                    Comment

                                    • stj
                                      Great Sage 齊天大聖
                                      • Dec 2009
                                      • 30911
                                      • Albion

                                      #538
                                      Re: ESR meter upgrades

                                      this is exactly the type of bullshit that happens when people try to program chips off-board instead of in-circuit.

                                      btw:
                                      C:\AVR>avrdude -c USBasp -P usb -p m328p -U efuse:w:0xfc:m

                                      avrdude: AVR device initialized and ready to accept instructions

                                      Reading | ################################################## | 100% 0.01s

                                      avrdude: Device signature = 0x1e950f
                                      avrdude: reading input file "0xfc"
                                      avrdude: writing efuse (1 bytes):

                                      Writing | | 0% 0.00s ***faile
                                      d;
                                      Writing | ################################################## | 100% 0.04s

                                      avrdude: 1 bytes of efuse written
                                      avrdude: verifying efuse memory against 0xfc:
                                      avrdude: load data efuse data from input file 0xfc:
                                      avrdude: input file 0xfc contains 1 bytes
                                      avrdude: reading on-chip efuse data:

                                      Reading | ################################################## | 100% 0.00s

                                      avrdude: verifying ...
                                      avrdude: verification error, first mismatch at byte 0x0000
                                      0x04 != 0xfc
                                      avrdude: verification error; content mismatch

                                      avrdude: safemode: efuse changed! Was fc, and is now 4
                                      Would you like this fuse to be changed back? [y/n] y
                                      is a newer chip, 04 instead of FC is fine.

                                      so with that chip, do:
                                      avrdude -c USBasp -P usb -p m328p -U efuse:w:0x04:m

                                      Comment

                                      • bmht
                                        Member
                                        • Jul 2016
                                        • 37
                                        • Venezuela

                                        #539
                                        Re: ESR meter upgrades

                                        I rebooted the computer and connected the arduino to another USB port and now I'm getting this using Arduino ISP as programmer.

                                        Code:
                                        C:\Program Files (x86)\Arduino\hardware\tools\avr\bin>avrdude -C ../etc/avrdude.
                                        conf -c avrisp -P COM3 -b 19200 -B8 -p m8 -U flash:w:TransistorTester.hex \-U ee
                                        prom:w:TransistorTester.eep \-U lfuse:w:0xf7:m \-U hfuse:w:0xd9:m \-U efuse:w:0x
                                        fc:m
                                        
                                        avrdude: AVR device initialized and ready to accept instructions
                                        
                                        Reading | ################################################## | 100% 0.04s
                                        
                                        avrdude: Device signature = 0x1e950f
                                        avrdude: Expected signature for ATmega8 is 1E 93 07
                                             Double check chip, or use -F to override this check.
                                        
                                        avrdude done. Thank you.
                                        Last edited by Per Hansson; 07-23-2016, 12:53 PM. Reason: Added CODE tags

                                        Comment

                                        • bmht
                                          Member
                                          • Jul 2016
                                          • 37
                                          • Venezuela

                                          #540
                                          Re: ESR meter upgrades

                                          Originally posted by stj
                                          this is exactly the type of bullshit that happens when people try to program chips off-board instead of in-circuit.
                                          Dear sjt I really appreciate all your help and I'm sorry if I seem stupid or dumb in here.
                                          I'm trying to learn in here and I got no clue of AVR programming besides arduino. I'm learning and reading as much as I can to be able to fix this issue.

                                          To be able to program the chip in circuit I believe I would either have to solder some wires to the chip or have an ICSP header on the circuit right? which I do not have in this circuit.

                                          Thanks again for all your help
                                          Belen
                                          Last edited by Per Hansson; 07-23-2016, 12:44 PM. Reason: fixed quote

                                          Comment

                                          Related Topics

                                          Collapse

                                          • chth96
                                            Is it possible to test small ceramic disc capacitor with analogue meter?
                                            by chth96
                                            I read EBOOK of Testing Electronic Component and found that

                                            "In order to test the small blue resin coated ceramic disk capacitor which has 104 50v specification,it is possible to test this small ceramic capacitor by making use of analogue meter.
                                            Set to times 10Kohm that has 12v output from the probe to check disorder of ceramic capacitor.
                                            It is not uncommon that testing result of digital capacitance meter is okay,But It show shorted reading when you check it with analogue meter."

                                            Is it really possible to test small ceramic disc capacitor with analogue...
                                            03-09-2024, 10:03 PM
                                          • sam_sam_sam
                                            Modification of a Fluke multi meter that uses three AA batteries to use a 14500 lithium ion battery
                                            by sam_sam_sam
                                            I have had with regular AA batteries that leak this meter is expensive new I already replaced the battery battery clips once and the same thing happened again and I am tried of so it is getting modified to accommodate lithium ion batteries that are the same size excluding the positive terminal and removing the battery clips I will have enough room for the BMS protection board

                                            I going to put 3 lithium ion battery in parallel with the BMS protection board and a way to charge the battery externally and heat shrink the battery pack and use a JST connector so I easily remove the battery...
                                            12-31-2023, 06:04 AM
                                          • jorpec
                                            Changing the scale of an analog meter
                                            by jorpec
                                            Hi

                                            I want to change the scale of an analog meter, to monitor the charge of an li-ion single cell, so the needle at the end would point 4.2 volts and the 0 on the meter would point 2.5 volts or so, i tried to add diodes or a zener in series with the meter but the changes of the ambient temperature also changes the voltage value on the meter
                                            I wonder how i can accomplish this so the meter would be precise at any temperature ?

                                            Thnaks
                                            01-23-2023, 10:37 AM
                                          • sam_sam_sam
                                            How an incandescent light and a ESR meter ** friend**have a machine blowing fuses
                                            by sam_sam_sam
                                            About a month ago we had a transformer jumper wire that burned in two different places between two transformers caused over $200 thousand dollars worth of damage to VFD drives at least 10 of them and a memory card and quite a few power supply as well

                                            Now we have most of the equipment that got damaged back up and running except a feeder that has issues and we are waiting for some parts for

                                            Now we also have another piece of equipment that was blowing fuses on the 110 volt controller switch circuit with the “E” stops and one switching power (24 volt) supply and a transformer...
                                            12-14-2023, 07:45 PM
                                          • irepair559
                                            ps4 1215 model Changed port and encoder still no video?
                                            by irepair559
                                            hi guys so i have this ps4 fat 1215 i believe ( the one with the ps4 pro/slim newer encoder ic ) so i replaced hdmi and 2 blown filters and still no pic so i replaced encoder and still no pic. i made sure port is solid even checked with a breakout hdmi and tested ground and data lines.. Filters are all good , though 2 of the newer ones are larger then the original ones i dont know if that matters ?
                                            Made sure under the scope encoder pins all look solid went over with fine tip and solder again. Idk but this thing is stressing me out..
                                            ps4 seems to boot fine blue light then solid...
                                            01-01-2023, 12:41 AM
                                          • Loading...
                                          • No more items.
                                          Working...