Announcement

Collapse
No announcement yet.

ESR meter upgrades

Collapse
This is a sticky topic.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Re: ESR meter upgrades

    Originally posted by stj View Post
    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


      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


        Re: ESR meter upgrades

        put in the code from the zip i posted.

        Comment


          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


            Re: ESR meter upgrades

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

            Comment


              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


                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


                  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


                    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


                      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


                        Re: ESR meter upgrades

                        you could.

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

                        Comment


                          Re: ESR meter upgrades

                          Originally posted by bmht View Post
                          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


                            Re: ESR meter upgrades

                            Originally posted by stj View Post
                            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


                              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


                                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


                                  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


                                    Re: ESR meter upgrades

                                    Originally posted by stj View Post
                                    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


                                      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


                                        Re: ESR meter upgrades

                                        Originally posted by stj View Post
                                        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


                                          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

                                          Working...
                                          X