ESR meter upgrades

Collapse
This is a sticky topic.
X
X
 
  • Time
  • Show
Clear All
new posts
  • bmht
    Member
    • Jul 2016
    • 37
    • Venezuela

    #561
    Re: ESR meter upgrades

    Originally posted by stj
    avrdude -C ../etc/avrdude.conf -c avrisp -P COM3 -b 19200 -p m328p -U efuse:w:0x04:m
    Code:
    C:\Program Files (x86)\Arduino\hardware\tools\avr\bin>avrdude -C ../etc/avrdude.
    conf -c avrisp -P COM3 -b 19200 -p m328p -U efuse:w:0x04:m
    
    avrdude: AVR device initialized and ready to accept instructions
    
    Reading | ################################################## | 100% 0.04s
    
    avrdude: Device signature = 0x1e950f
    avrdude: reading input file "0x04"
    avrdude: writing efuse (1 bytes):
    
    Writing | ################################################## | 100% 0.01s
    
    avrdude: 1 bytes of efuse written
    avrdude: verifying efuse memory against 0x04:
    avrdude: load data efuse data from input file 0x04:
    avrdude: input file 0x04 contains 1 bytes
    avrdude: reading on-chip efuse data:
    
    Reading | ################################################## | 100% 0.01s
    
    avrdude: verifying ...
    avrdude: 1 bytes of efuse verified
    
    avrdude: safemode: Fuses OK (H:04, E:D9, L:F7)
    
    avrdude done. Thank you.
    does it means is ok now?

    On the other hand I did not knew what OSC1 meant so I did a search downloaded the datasheet and it was pin 9 of the chip.

    Now beside my whole setup I also do that? or since apparently the fuses are now ok I do not?
    I'm kind of burned out by now lol

    Thanks again

    Update After that I inserted the reprogrammed chip into the tester and still it stays on for about 3 to 4 seconds then it turns off

    Thanks again
    Belen
    Last edited by bmht; 07-23-2016, 03:36 PM. Reason: Just tested and posting results

    Comment

    • vinceroger69
      Badcaps Legend
      • Mar 2012
      • 6714
      • uk

      #562
      Re: ESR meter upgrades

      im sure stj will advise you dont add those extra parts yet as you maynot need them
      Last edited by vinceroger69; 07-23-2016, 03:49 PM.

      Comment

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

        #563
        Re: ESR meter upgrades

        put in the code from the zip i posted.

        Comment

        • bmht
          Member
          • Jul 2016
          • 37
          • Venezuela

          #564
          Re: ESR meter upgrades

          Dear sjt

          Your code only has the Hex file not an epp file still I programmed
          Code:
          C:\Program Files (x86)\Arduino\hardware\tools\avr\bin>avrdude -C ../etc/avrdude.
          conf -c avrisp -P COM6 -b 19200 -p m328p -U flash:w:Code.hex \-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.03s
          
          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% 32.84s
          
          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% 20.32s
          
          avrdude: verifying ...
          avrdude: 29702 bytes of flash verified
          
          avrdude: safemode: Fuses OK (H:04, E:D9, L:F7)
          
          avrdude done. Thank you.
          Now the LCD stays lit and nothing else happens

          Thanks again
          Belen

          Comment

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

            #565
            Re: ESR meter upgrades

            the zip has Code.HEX and Data.HEX
            Data is the eeprom file

            Comment

            • bmht
              Member
              • Jul 2016
              • 37
              • Venezuela

              #566
              Re: ESR meter upgrades

              Again Thank you

              I reprogrammed
              Code:
              C:\Program Files (x86)\Arduino\hardware\tools\avr\bin>avrdude -C ../etc/avrdude.
              conf -c avrisp -P COM6 -b 19200 -p m328p -U flash:w:Code.hex -U flash:w:Data.hex
               \-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.03s
              
              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% 32.84s
              
              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% 20.32s
              
              avrdude: verifying ...
              avrdude: 29702 bytes of flash verified
              avrdude: reading input file "Data.hex"
              avrdude: input file Data.hex auto detected as Intel Hex
              avrdude: writing flash (806 bytes):
              
              Writing | ################################################## | 100% 1.01s
              
              avrdude: 806 bytes of flash written
              avrdude: verifying flash memory against Data.hex:
              avrdude: load data flash data from input file Data.hex:
              avrdude: input file Data.hex auto detected as Intel Hex
              avrdude: input file Data.hex contains 806 bytes
              avrdude: reading on-chip flash data:
              
              Reading | ################################################## | 100% 0.66s
              
              avrdude: verifying ...
              avrdude: verification error, first mismatch at byte 0x0000
                   0x10 != 0x52
              avrdude: verification error; content mismatch
              
              avrdude: safemode: Fuses OK (H:04, E:D9, L:F7)
              
              avrdude done. Thank you.

              Got some errors
              Now back to square one the LCD lights up as long as I got the button pressed. Else it stays off

              another thing do you happen to know a cheap hv programmer that I can buy to reset the fuses of my usbasp? I know it would make more sense to buy another usbasp but I figured out if I brick more chips I got 10 attinys in here , I rather have the option available that wait for more chips and all. Besides I'm learning wich I love.
              Thanks for your feedback

              Belen
              Last edited by bmht; 07-23-2016, 06:58 PM.

              Comment

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

                #567
                Re: ESR meter upgrades

                your making this up as you go instead of understanding the instructions

                avrdude -C ../etc/avrdude.
                conf -c avrisp -P COM6 -b 19200 -p m328p -U flash:w:Code.hex -U flash:wata.hex \-U lfuse:w:0xf7:m \-U hfuse:w:0xd9:m \-U efuse:w:0xfc:m

                -U flash = flash memory
                your flashing both files to the same place.

                you need -U eeprom:wata.hex
                to write the data to the eeprom

                Comment

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

                  #568
                  Re: ESR meter upgrades

                  avrdude -C ../etc/avrdude.conf -c avrisp -P COM6 -b 19200 -p m328p -U flash:w:Code.hex -U eeprom:wata.hex \-U lfuse:w:0xf7:m \-U hfuse:w:0xd9:m \-U efuse:w:0x04:m

                  copy & paste that

                  Comment

                  • bmht
                    Member
                    • Jul 2016
                    • 37
                    • Venezuela

                    #569
                    Re: ESR meter upgrades

                    Really
                    Thank you for standing up with me and being VERY patient

                    Code:
                    C:\Program Files (x86)\Arduino\hardware\tools\avr\bin>avrdude -C ../etc/avrdude.
                    conf -c avrisp -P COM6 -b 19200 -p m328p -U flash:w:Code.hex -U eeprom:w:Data.he
                    x \-U lfuse:w:0xf7:m \-U hfuse:w:0xd9:m \-U efuse:w:0x04:m
                    
                    avrdude: AVR device initialized and ready to accept instructions
                    
                    Reading | ################################################## | 100% 0.03s
                    
                    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% 32.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% 20.32s
                    
                    avrdude: verifying ...
                    avrdude: 29702 bytes of flash verified
                    avrdude: reading input file "Data.hex"
                    avrdude: input file Data.hex auto detected as Intel Hex
                    avrdude: writing eeprom (1024 bytes):
                    
                    Writing | ################################################## | 100% 49.61s
                    
                    avrdude: 1024 bytes of eeprom written
                    avrdude: verifying eeprom memory against Data.hex:
                    avrdude: load data eeprom data from input file Data.hex:
                    avrdude: input file Data.hex auto detected as Intel Hex
                    avrdude: input file Data.hex contains 1024 bytes
                    avrdude: reading on-chip eeprom data:
                    
                    Reading | ################################################## | 100% 3.58s
                    
                    avrdude: verifying ...
                    avrdude: 1024 bytes of eeprom verified
                    
                    avrdude: safemode: Fuses OK (H:04, E:D9, L:F7)
                    
                    avrdude done. Thank you.
                    OMG!!!!!!!!



                    I had almost gave up!
                    I owe you big time!!!

                    Thanks Thanks Thanks!!!

                    Now I nee to go through the calibration process

                    As I said to Vince I do know a lot about photography so if by any chance you happen to have any question regarding that you got yourself a slave hehehe

                    Thanks again!!!! Really I do not have words for you that kept up with me.

                    Belen
                    Attached Files
                    Last edited by Per Hansson; 06-16-2022, 02:04 PM.

                    Comment

                    • bmht
                      Member
                      • Jul 2016
                      • 37
                      • Venezuela

                      #570
                      Re: ESR meter upgrades

                      hummm it doesn't go through the calibration procedure weird!!

                      Now my next question would I be able to upgrade it with the Markus Frejek software or some variation?


                      Thnaks again

                      Belen

                      Comment

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

                        #571
                        Re: ESR meter upgrades

                        you could.

                        but first you need to learn how to calibrate it.
                        go read this.
                        Attached Files

                        Comment

                        • vinceroger69
                          Badcaps Legend
                          • Mar 2012
                          • 6714
                          • uk

                          #572
                          Re: ESR meter upgrades

                          Originally posted by bmht
                          hummm it doesn't go through the calibration procedure weird!!

                          Now my next question would I be able to upgrade it with the Markus Frejek software or some variation?


                          Thnaks again

                          Belen
                          Im glad you have made progress with your meter what issues are you having when your trying to calibrate it?

                          Comment

                          • vinceroger69
                            Badcaps Legend
                            • Mar 2012
                            • 6714
                            • uk

                            #573
                            Re: ESR meter upgrades

                            Originally posted by stj
                            avrdude -C ../etc/avrdude.conf -c avrisp -P COM6 -b 19200 -p m328p -U flash:w:Code.hex -U eeprom:wata.hex \-U lfuse:w:0xf7:m \-U hfuse:w:0xd9:m \-U efuse:w:0x04:m

                            copy & paste that
                            stj i hope im not going to have these issues when i try to programe my spare meter as im new to programing is winavr any easier to use? as im sure i have that on a laptop i got given.
                            Last edited by vinceroger69; 07-24-2016, 02:58 AM.

                            Comment

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

                              #574
                              Re: ESR meter upgrades

                              all issues are caused by people not listening.

                              firstly, if people hooked a header to the bottom of the chip socket and programmed the chip on the tester we wouldnt be going through questions about crystals and 18-22pf caps.

                              second, if people just used a £1 USBasp and actually copy & pasted the commands i post then it would work first time.

                              we have over 3 pages now of threads because of these 2 things being ignored.
                              BTW, programming wires from chip to programmer shouldnt really be more than 10cm if you want to avoid errors.

                              building the code is another issue.

                              you need a slightly older version of GCC because the latest one builds larger files.
                              i just downloaded the latest arduino package and extracted the compiler & build-tools from it.

                              then install winavr and overwrite the gcc & tools with the arduino ones.
                              Last edited by stj; 07-24-2016, 04:28 AM.

                              Comment

                              • vinceroger69
                                Badcaps Legend
                                • Mar 2012
                                • 6714
                                • uk

                                #575
                                Re: ESR meter upgrades

                                I do agree with the header idea as the esr tester pcb has all the capacitors etc already fitted that what made me mention them in the first place i guess not everyone will have header in there parts box or readily available so have to order one but yes i will fit one to both of my testers.

                                regarding the calabration issues bmht might be having i had this issue where it took ages to calibrate etc and was one fuse setting wrong as youself and per had advised once i reset it was all fine and tester works great.

                                This thread may need cleaning up as you say for people just wanting to find your latest upgrades pictures etc theres a few pages too go through as there are now a few diffrent testers too.

                                Regarding the programming now we are seeing there are a lot of the kits being sold with blank ics theres going to be a lot of people unsure how to programme them, it would be great if someone had the time too upload a video/guide with step by step instructions on how to use avrdude/USBASP and add the hex files etc check the fuses and programme the ic solely to programme these esr testers as a lot of newbies like myself have probably never done programming, i have been looking for a good video guide with step by step instructions but have not found a good one.
                                Last edited by vinceroger69; 07-24-2016, 05:08 AM.

                                Comment

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

                                  #576
                                  Re: ESR meter upgrades

                                  it would be good if chinese went back to surface-mount mcu's because when they do that they put the space on the board for a header.

                                  also, i'm sure a 16MHz crystal costs the same as an 8MHz one.

                                  maybe they should bundle the tester & a USBasp together.

                                  Comment

                                  • vinceroger69
                                    Badcaps Legend
                                    • Mar 2012
                                    • 6714
                                    • uk

                                    #577
                                    Re: ESR meter upgrades

                                    Originally posted by stj
                                    it would be good if chinese went back to surface-mount mcu's because when they do that they put the space on the board for a header.

                                    also, i'm sure a 16MHz crystal costs the same as an 8MHz one.

                                    maybe they should bundle the tester & a USBasp together.
                                    yes i agree with what you have said my old tester has the smd ic and also the holes for the header (just waiting for the angled header and the ic too come) so that tester should be fine then as my upgraded spare.

                                    Regarding my latest 2016 tester im struggling where to mount the header i was thinking about gluing it too the back of the board so its easy to run wires to the ic legs to solder etc then use some brass standoffs as legs for the tester so it sits level.

                                    Comment

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

                                      #578
                                      Re: ESR meter upgrades

                                      across the back of the board, one row of pins on each side of the pcb
                                      glue it after you do the wires and remove the flux - no point putting glue over flux.

                                      Comment

                                      • vinceroger69
                                        Badcaps Legend
                                        • Mar 2012
                                        • 6714
                                        • uk

                                        #579
                                        Re: ESR meter upgrades

                                        Originally posted by stj
                                        across the back of the board, one row of pins on each side of the pcb
                                        glue it after you do the wires and remove the flux - no point putting glue over flux.
                                        yes thats a good idea a project for later on this week.

                                        Comment

                                        • bmht
                                          Member
                                          • Jul 2016
                                          • 37
                                          • Venezuela

                                          #580
                                          Re: ESR meter upgrades

                                          Dear Vince and sjt

                                          Again thank you so much for your time and effort

                                          I'm sorry it took me this much to put the tester into operation. At the beginning I had not one but 2 USBasp's but since I was having an issue with the timing I read that I should upgrade the firmware which I did with both of them and now I do not know why they are not recognized anymore That is why I had to switch to arduino as ISP. I think I messed those both up. again it has to do with the fuses again although I burned them as indicated in this page

                                          http://blog.lincomatic.com/?p=1480


                                          Now When I try to read it's configuration I got this problem so they are useless to me now

                                          Code:
                                          C:\Program Files (x86)\Arduino\hardware\tools\avr\bin>avrdude -C ../etc/avrdude.
                                          conf -c avrisp -P COM3 -b 19200 -p m8 -v
                                          
                                          avrdude: Version 6.0.1, compiled on Apr 15 2015 at 19:59:58
                                               Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
                                               Copyright (c) 2007-2009 Joerg Wunsch
                                          
                                               System wide configuration file is "../etc/avrdude.conf"
                                          
                                               Using Port          : COM3
                                               Using Programmer       : avrisp
                                               Overriding Baud Rate     : 19200
                                               AVR Part           : ATmega8
                                               Chip Erase delay       : 10000 us
                                               PAGEL             : PD7
                                               BS2              : PC2
                                               RESET disposition       : dedicated
                                               RETRY pulse          : SCK
                                               serial program mode      : yes
                                               parallel program mode     : yes
                                               Timeout            : 200
                                               StabDelay           : 100
                                               CmdexeDelay          : 25
                                               SyncLoops           : 32
                                               ByteDelay           : 0
                                               PollIndex           : 3
                                               PollValue           : 0x53
                                               Memory Detail         :
                                          
                                                           Block Poll        Page
                                             Polled
                                                Memory Type Mode Delay Size Indx Paged Size  Size #Pages MinW Max
                                          W  ReadBack
                                                ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ---
                                          -- ---------
                                                eeprom     4  20  128  0 no    512  4   0 9000 90
                                          00 0xff 0xff
                                                flash     33  10  64  0 yes   8192  64  128 4500 45
                                          00 0xff 0x00
                                                lfuse     0   0   0  0 no     1  0   0 2000 20
                                          00 0x00 0x00
                                                hfuse     0   0   0  0 no     1  0   0 2000 20
                                          00 0x00 0x00
                                                lock      0   0   0  0 no     1  0   0 2000 20
                                          00 0x00 0x00
                                                calibration  0   0   0  0 no     4  0   0   0
                                           0 0x00 0x00
                                                signature   0   0   0  0 no     3  0   0   0
                                           0 0x00 0x00
                                          
                                               Programmer Type : STK500
                                               Description   : Atmel AVR ISP
                                               Hardware Version: 2
                                               Firmware Version: 1.18
                                               Topcard     : Unknown
                                               Vtarget     : 0.0 V
                                               Varef      : 0.0 V
                                               Oscillator   : Off
                                               SCK period   : 0.1 us
                                          
                                          avrdude: AVR device initialized and ready to accept instructions
                                          
                                          Reading | ################################################## | 100% 0.03s
                                          
                                          avrdude: Device signature = 0x00ff00
                                          avrdude: Expected signature for ATmega8 is 1E 93 07
                                               Double check chip, or use -F to override this check.
                                          
                                          avrdude done. Thank you.
                                          Second it was the first time I has to use AVRdude, and yes I realize I do have a LOT to learn. And again I appreciate your time and effort and somehow read the manual so now I know the many mistakes I did.

                                          Since I did a lot of them I might be able to do the video to help others.

                                          Besides in the first place I shouldn't be doing all that if the chip would have come programmed as it should be.

                                          Anyway let me know if you are interested although I know about photography I do not know nothing on video editing.

                                          Thanks again
                                          Belen

                                          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...