Announcement

Collapse

Forum Rules *ALL NEW MEMBERS, PLEASE READ!! UPDATED!!*

First and foremost, Welcome to the Badcaps Capacitor Search Engine & Forums!

New members that have activated their accounts have limited access to certain features of the site until established. Members with zero posts have no access to the private messaging system. Also, members with zero posts may not edit certain profile attributes, such as signatures. New members also may not create new threads. However, new members with zero posts have full access to all technical information contained on this forum, and that also includes attachments (images and files that other members have uploaded), and new members that have activated their accounts are free to post replies to existing threads. If you wish to create a new thread, the fix is simple! All you need is ONE post to be able to have full unrestricted access, and that can be simply posting an introduction of yourself or say hello in THIS THREAD. This may seem a little strange, but it helps keep spam and abuse curved. Please note, that it may take up to one hour from your first post for the limits to be removed. If you make a post and don't immediately see the restrictions gone, be patient. The promotion system updates every hour.

Please complete your profile after making your first post, with your name, locale, and other info. It's nice to know members on a first name basis, and know where they're from. Makes for a much friendlier environment!

Posting rules for this forum will be STRICTLY enforced by myself as the owner/administrator, and my moderator crew.

Badcaps.net IS A BUSINESS!!! If you are a servicer, service center, or vendor of any kind in the computer/capacitor industry, you are NOT permitted to advertise, link, promote, or plug your business on this forum in ANY way! NO EXCEPTIONS!! This includes asking for "donations" in exchange for BIOS passwords or tech advice for anything! If I see you doing that, your post will be edited or deleted, and you warned. If it happens again, you will be banned. The only exceptions are the references to the companies quoted in the FAQ which the administration have added for the convenience of those around the world who have difficulty to source caps for their repair.

This also includes using this forum's private message system to solicit business. Members, if you receive a PM from anyone offering repair services or components, please alert me immediately! Myself or any of my moderators, will never private message a user soliciting business, for Badcaps.net, or any other servicer/vendor. If you PM me about repairing your device, I will reply and take care of you, however, I will not message you first.

------------------------------------

Posting rules:

This forum was created to be a technical support forum primarily for the do-it-yourselfers who choose to repair their own boards. Any and all technical questions are welcome!

1) Please use the SEARCH feature!! Your question may have been answered in another thread! Please search first and see if it has!

2) When posting a technical question, be as detailed as possible in your thread. The more information we have about your specific problem, the better we can answer your question.

3) Please use COMPLETE sentences, punctuation, and grammar! Nobody is perfect, hence, a spelling error on occasion is no biggie. However, posts/threads that are unreadable will be deleted. This includes any and all forms of 'ebonics', leet, chatroom jargon, and 'text message' shorthand and slang. This forum is not a chatroom/text message, please use full words and complete sentences.

4) Keep discussion on topic!! DO NOT HIJACK THREADS! It's easy to do (I've done it myself a few times...) Lets try to keep it down to a minimal!! If you have something really off topic, that's what the lounge is for!

5) Keep things civil! There will be no tolerance for flaming, bashing, hateful remarks, racial remarks, adult material of ANY kind, and so on.

6) THE LOUNGE RULES! The lounge is a place for off topic chit-chat! If you post something that might be considered questionable or something you don't want kids to see, or something you can't view at work/school, etc, please label that thread *NWS* or NOT WORK SAFE in the thread title as a warning. The Lounge is NOT moderated, anything is welcome... Feel free to post rants, jokes, cars, hot women (remember the NWS warning in the title), or just about anything within reason. It's an open forum! Please refrain from participating in political topics if you have thin skin, they can get heated sometimes!! Remember that we have members here from all over the world, with many different views and cultures. Political debates can turn really ugly, and really fast, and if they degrade to personal attacks and useless banter/bashing, moderator action will ensue. I want this forum to be a safe haven for technical discussions from all walks of life, so lets keep off topic discussions civil and friendly.

7) Spamming and spammers will NOT be tolerated or accepted in any way, shape, or form! Spam bots are instantly and permanently banned, and their threads deleted! The mod crew is really quick to zap spammers, we typically pop them before they even get to post. This also includes regular members as well. be courteous and not post spam. This includes links to off-site information that's not relevant to the thread at hand. Do not plug other websites, forums, or businesses in your signatures. You may do so in a thread if the off-site link you're posting is relevant to the topic, but otherwise, don't do it. If you see a thread which clearly a spam bot posting that we have not removed yet, DO NOT click any links in it!! Simply click the 'report bad post' button, and it'll be taken care of, usually within minutes.

8) Account removals & closures: Since no personal information is given in the creation of your Badcaps.net Forum account, requests to remove and/or delete accounts will be declined. Any requests for removal of threads & posts you created will also be declined. The reason is the missing posts can/will leave threads incomplete and fragmented. For the threads to be of help to others later on, information can't and won't be missing. However, if you inadvertently posted personal identifiable information in a post (such as an email address, real name, or phone number), please contact a staff member. In those cases, the post may be edited or removed, at the staff members discretion.

That's about it for the rules, the setup here is pretty loose. However, if you're caught violating any of the rules above, here's what will happen:

First offense: Warning by me or a moderator
Second offense: Banning for 1 day
Third offense: Banning for 3 days
Fourth offense: Banned permanently.

If you do something really dumb, or are just a troll, I will skip the warning and the temporary banning, and ban you permanently!

The rules are pretty cut and dry... However, if you have any questions about this policy, feel free to contact me.
See more
See less

ESR meter upgrades

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

    Re: ESR meter upgrades

    If you want to try Markus (Madires) firmware on the GM328R it is attached here in 8, 16 & 20Mhz versions.
    (I have only tested 16Mhz).
    But please note the caveats I encountered:
    http://www.eevblog.com/forum/testgea...53/#msg1266553
    Attached Files
    "The one who says it cannot be done should never interrupt the one who is doing it."

    Comment


      Re: ESR meter upgrades

      Don't you need to use the older tool chain? The most recent one creates over sized files, which was the problem I had.

      Comment


        Re: ESR meter upgrades

        I am using the older toolchain, avr-gcc v4.8.2 is the same that stj uses. (I think he is on Windows though).
        My files are identical in size to stj's.
        The issue is that the newer code simply take up a bit more space.
        "The one who says it cannot be done should never interrupt the one who is doing it."

        Comment


          Re: ESR meter upgrades

          Originally posted by Per Hansson View Post
          If you want to try Markus (Madires) firmware on the GM328R it is attached here in 8, 16 & 20Mhz versions.
          (I have only tested 16Mhz).
          But please note the caveats I encountered:
          http://www.eevblog.com/forum/testgea...53/#msg1266553
          Thanks i was reading that thread too and did see your posts im suprised no one on there cant sort the issue your having out with the markus firmware hopefully stj will be able too sort his firmware out so its smaller etc

          Comment


            Re: ESR meter upgrades

            i'm not on windows.
            i was using the windows toolchain on wine though.

            Comment


              Re: ESR meter upgrades

              The compiler might have an optimization flag turned off.
              That can reduce the output file size.
              Does anyone have the compiler command line to look at.

              Comment


                Re: ESR meter upgrades

                I have compiled the latest SVN version of Karl-Heinz firmware now.
                As base I have used stj's Makefile from here.
                I have only changed the type of font used in the Makefile.
                Instead of "DFONT_7X12" I am using "DFONT_8X8"
                This allows the firmware to compile:
                Code:
                16 MHz operation configured.
                AVR Memory Usage
                ----------------
                Device: atmega328p
                
                Program:   32352 bytes (98.7% Full)
                (.text + .data + .bootloader)
                
                Data:        206 bytes (10.1% Full)
                (.data + .bss + .noinit)
                
                EEPROM:      914 bytes (89.3% Full)
                (.eeprom)
                Here is a screenshot of how it looks:

                IMO it is much better with this font because the previous ones that stj used
                Which were both bold and not bold resulted in much less info on the screen as seen here:
                https://www.badcaps.net/forum/showpo...&postcount=446

                EDIT: redwire, I have attached the compiler output as a zipfile.
                Attached Files
                Last edited by Per Hansson; 07-29-2017, 07:57 AM. Reason: Added 8Mhz build
                "The one who says it cannot be done should never interrupt the one who is doing it."

                Comment


                  Re: ESR meter upgrades

                  That font certainly looks nice and readable.

                  Comment


                    Re: ESR meter upgrades

                    i had a discusion with vince about that, nice fonts vs more info on screen.

                    btw, you shouldnt use old makefiles.
                    you should copy the settings in them to the new makefile.
                    because the new makefile can contain extra options or critical changes.
                    Last edited by stj; 07-28-2017, 03:38 PM.

                    Comment


                      Re: ESR meter upgrades

                      Originally posted by stj View Post
                      i had a discusion with vince about that, nice fonts vs more info on screen.
                      Well you had with me too.
                      That's why I put in the links I did in my post above.
                      But actually both "DFONT_7X12" that you have used in the latest makefiles.
                      And "DFONT_8x15" that I wrote that I liked.
                      They resulted in 3 scrolling lines of text when testing that Mosfet:
                      Originally posted by Per Hansson View Post
                      I understand what you say, but for example in this post I showed the bold font testing an, as you put it:
                      "fet or a transistor with reverse-diode in it and see how much text it has to display!"
                      Well the small font is the same, it also has to scroll through three pages to show all the info so it does not seem better to me?
                      Originally posted by stj View Post
                      btw, you shouldnt use old makefiles.
                      you should copy the settings in them to the new makefile.
                      because the new makefile can contain extra options or critical changes.
                      I know, but I compared the Makefiles.
                      The only addition in the new Makefile is the description of a new option for the UART
                      And then the complete removal of this section:
                      Code:
                      # Enable contrast menu option
                      CFLAGS += -DWITH_CONTRAST
                      But the option was still there after compiling the firmware so probably it was just made mandatory.
                      Last edited by Per Hansson; 07-28-2017, 03:59 PM.
                      "The one who says it cannot be done should never interrupt the one who is doing it."

                      Comment


                        Re: ESR meter upgrades

                        oops,

                        i removed that and hard coded the contrast-value to save memory.
                        be a bastard if the menu option is hard coded in the driver now.

                        Comment


                          Re: ESR meter upgrades

                          I updated the ZIP above in post #767 with the 8Mhz build now as well.
                          I also updated the makefile, I did a before and after check and the 16Mhz output file was identical to that I built yesterday.

                          A question for stj, the value BAT_OUT is 150 by default.
                          On my tester after the 9v battery sits a A673
                          You have changed it to 3, what does that signify?

                          Code:
                          # The BAT_OUT option enables Battery Voltage Output on LCD (if BAT_CHECK is selected).
                          # If your 9V supply has a diode installed, use the BAT_OUT=600 form to specify the
                          # threshold voltage of your diode to adjust the output value.
                          # This threshold level is added to LCD-output and does not affect the voltage checking levels.
                          CFLAGS += -DBAT_OUT=3
                          And here is from the PDF:
                          BAT OUT enables Battery Voltage Output on LCD (if BAT CHECK is selected). If your 9V
                          supply has a diode installed, use the BAT OUT=600 form to specify the threshold voltage (mV)
                          of your diode to adjust the output value. Also the voltage loss of transistor T3 can be respected
                          with this option. threshold level does not affect the voltage checking levels (BAT POOR).
                          Example 1: CFLAGS += -DBAT OUT=300
                          Example 2: CFLAGS += -DBAT OUT
                          P.S: I have changed my TL431 with a LM4040 and the VCC displayed at poweron is: 5.03v
                          "The one who says it cannot be done should never interrupt the one who is doing it."

                          Comment


                            Re: ESR meter upgrades

                            Posted this on eevblog, reposting here.
                            Here is how to setup a build environment on CentOS7 or RHEL7 (Red Hat Enterprise Linux)
                            In the optional repository EPEL we have already avr for our purposes.
                            The version provided is avr-gcc 4.9.2 which unfortunately produces files that are a little bigger than the previous release.
                            So if you are not on the limit size wise this version will work fine, but if not read on.

                            So since an older version is not available for CentOS7 on EPEL we have to try to find one.
                            Looking around we can see that for Fedora 19 avr-gcc 4.8.2 was released.
                            This is perfect because Fedora 19 is the same baseline system as RHEL7.
                            So login as a standard user on your Centos7 or RHEL7 machine and lets rebuild this source RPM:

                            Code:
                            wget http://archive.fedoraproject.org/pub/archive/fedora/linux/updates/19/SRPMS/avr-gcc-4.8.2-2.fc19.src.rpm
                            wget http://archive.fedoraproject.org/pub/archive/fedora/linux/releases/19/Everything/source/SRPMS/a/avr-libc-1.8.0-4.fc19.src.rpm
                            
                            rpmbuild --rebuild avr-gcc-4.8.2-2.fc19.src.rpm
                            rpmbuild --rebuild avr-libc-1.8.0-4.fc19.src.rpm
                            
                            su root -c "rpm -ivh /home/per/rpmbuild/RPMS/x86_64/avr-gcc-4.8.2-2.el7.centos.x86_64.rpm /home/per/rpmbuild/RPMS/noarch/avr-libc-1.8.0-4.el7.centos.noarch.rpm"
                            Replace /home/per with your user used for building.
                            Happy building
                            "The one who says it cannot be done should never interrupt the one who is doing it."

                            Comment


                              Re: ESR meter upgrades

                              the bat-out value is to counteract voltdrop through diodes & stuff.

                              Comment


                                Re: ESR meter upgrades

                                Originally posted by Per Hansson View Post
                                I have compiled the latest SVN version of Karl-Heinz firmware now.
                                As base I have used stj's Makefile from here.
                                I have only changed the type of font used in the Makefile.
                                Instead of "DFONT_7X12" I am using "DFONT_8X8"
                                This allows the firmware to compile:
                                Code:
                                16 MHz operation configured.
                                AVR Memory Usage
                                ----------------
                                Device: atmega328p
                                
                                Program:   32352 bytes (98.7% Full)
                                (.text + .data + .bootloader)
                                
                                Data:        206 bytes (10.1% Full)
                                (.data + .bss + .noinit)
                                
                                EEPROM:      914 bytes (89.3% Full)
                                (.eeprom)
                                Here is a screenshot of how it looks:

                                IMO it is much better with this font because the previous ones that stj used
                                Which were both bold and not bold resulted in much less info on the screen as seen here:
                                https://www.badcaps.net/forum/showpo...&postcount=446

                                EDIT: redwire, I have attached the compiler output as a zipfile.
                                thanks i will update both of my testers next week is there any diffrence in calibrating the unit? as ive read somewhere about measuring a capacitor 3 times does this apply too this firmware version many thanks

                                Comment


                                  Re: ESR meter upgrades

                                  Originally posted by vinceroger69 View Post
                                  is there any diffrence in calibrating the unit? as ive read somewhere about measuring a capacitor 3 times does this apply too this firmware version many thanks
                                  That only applies to Markus (Madires) firmware that I posted earlier.
                                  Originally posted by stj View Post
                                  the bat-out value is to counteract voltdrop through diodes & stuff.
                                  How/where to measure this?
                                  The manual does not go into any detail on the subject.
                                  And does it matter at all when the 2.5v precision regulator is installed?
                                  Last edited by Per Hansson; 07-29-2017, 11:41 AM.
                                  "The one who says it cannot be done should never interrupt the one who is doing it."

                                  Comment


                                    Re: ESR meter upgrades

                                    it's for battery status at power-up.
                                    the original large value was because the original hardware had a 1n4007 inline with the power - big voltdrop of upto 1,4v on those!

                                    Comment


                                      Re: ESR meter upgrades

                                      The on/off switch transistor and reverse-polarity protection have some voltage drop.
                                      Because the battery voltage-monitoring is upstream of these, I think BAT_OUT is a correction factor (in mV). Measure voltage drop from BAT+ to the battery sense resistor (10k) and use this number.

                                      Some testers have mosfets or transistors or a diode on input power, so each has different voltage losses.

                                      Comment


                                        Re: ESR meter upgrades

                                        Thanks for the explanation, now even I get it!
                                        I used a bench PSU to power it and measured the voltage at the sense resistor.
                                        The drop is ca 45mV according to two meters.
                                        I put in 50mW for BAT_OUT
                                        "The one who says it cannot be done should never interrupt the one who is doing it."

                                        Comment


                                          Re: ESR meter upgrades

                                          test it, put a meter across the battery and compare it to the value displayed at power-on
                                          that's how i finetune'd it for the gm328 hardware.

                                          Comment

                                          Working...
                                          X