Skip to content
  • MySensors
  • OpenHardware.io
  • Categories
  • Recent
  • Tags
  • Popular
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo
  1. Home
  2. My Project
  3. Double Micro (nano) Ampere meter

Double Micro (nano) Ampere meter

Scheduled Pinned Locked Moved My Project
54 Posts 9 Posters 15.4k Views 11 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • NeverDieN Offline
    NeverDieN Offline
    NeverDie
    Hero Member
    wrote on last edited by NeverDie
    #28

    Thanks. I'll do that then.

    Regardless, I must be doing something wrong, because I'm feeding it 9.9mv (see photo)
    0_1495654275424_hx711_problem1.jpg
    across A+ and A- from a voltage divider powered by 2xAA batteries, but it's showing zero current. Shouldn't it be showing 9900ua instead?

    [I alsoi tried sending it 99uv instead, but it still reads zero]

    NeverDieN 1 Reply Last reply
    0
    • NeverDieN NeverDie

      Thanks. I'll do that then.

      Regardless, I must be doing something wrong, because I'm feeding it 9.9mv (see photo)
      0_1495654275424_hx711_problem1.jpg
      across A+ and A- from a voltage divider powered by 2xAA batteries, but it's showing zero current. Shouldn't it be showing 9900ua instead?

      [I alsoi tried sending it 99uv instead, but it still reads zero]

      NeverDieN Offline
      NeverDieN Offline
      NeverDie
      Hero Member
      wrote on last edited by NeverDie
      #29

      So, here it is with the button and with 99uv applied.
      0_1495656046787_hx711_problem2.jpg
      Button mechanics works fine, but it keeps registering zero as the uA. Isn't it 1uv=1ua? So, shouldn't it be reading 99ua? Or am I (quite probably) misunderstanding something?

      The HX711 I'm using is a clone of the Sparkfun one.

      1 Reply Last reply
      0
      • NeverDieN Offline
        NeverDieN Offline
        NeverDie
        Hero Member
        wrote on last edited by
        #30

        I added in the 0.1uF cap across A+ and A-, but that made no difference.

        What's odd is that if I run the sparkfun scale code, it does in fact detect voltage (and converts it to pounds). Hmm.. Sounds like maybe it's not reading the right datapins. I'll check that next.

        1 Reply Last reply
        0
        • NeverDieN Offline
          NeverDieN Offline
          NeverDie
          Hero Member
          wrote on last edited by NeverDie
          #31

          Yup. That was my error. I had initially wired it using the sparkfun directions for the initial test. Sparkfun wired the DAT and CLK pins to different arduino pins. When I made the change to AWI's selections, it now works. :)

          1 Reply Last reply
          2
          • NeverDieN Offline
            NeverDieN Offline
            NeverDie
            Hero Member
            wrote on last edited by NeverDie
            #32

            By the way, there was a similar project posted on the eevblog by a guy named quantumvolt:
            https://www.eevblog.com/forum/projects/ppmgeek!-5-5-digit-dvm-volt-ref-cal-(for-arduino-or-any-uc-w-spi)/
            One of the things that they eventually noticed and talked about was that quite a bit of noise came in over the usb. Not sure if that applies only to usb's connected to computers for power, or whether it may apply to other sources as well. Anyhow, just thought I'd mention it in case anyone here is using that and wants to drop their noise level.

            Also, although I'm no expert, I would guess this project might (?) benefit from a PCB implementation, because, in general, it seems like the shorter the connections, the lower the noise. Of course, please just take that as constructive feedback. No criticism intended. I think it may also be why Dave Jones chose to power his uCurrent from a button cell directly attached to his PCB: he wanted the power lines to be as short as possible.

            Thanks again for posting the project!

            1 Reply Last reply
            0
            • gohanG Offline
              gohanG Offline
              gohan
              Mod
              wrote on last edited by
              #33

              @AWI do you think that logging reading to SD card could be a useful addition? (in case you want to monitor something for a longer time)

              NeverDieN 1 Reply Last reply
              0
              • gohanG gohan

                @AWI do you think that logging reading to SD card could be a useful addition? (in case you want to monitor something for a longer time)

                NeverDieN Offline
                NeverDieN Offline
                NeverDie
                Hero Member
                wrote on last edited by NeverDie
                #34

                @gohan said in Double Micro (nano) Ampere meter:

                @AWI do you think that logging reading to SD card could be a useful addition? (in case you want to monitor something for a longer time)

                Yeah, but then you'd probably also want an RTC to go with it. There are already shields for both of those, though, so it's probably better to keep the project simple. Since I'm interested in solar charging current, I'll probably monitor wirelessly and do my logging that way. It's more fun to see stuff graphed in real time. :)

                1 Reply Last reply
                0
                • NeverDieN Offline
                  NeverDieN Offline
                  NeverDie
                  Hero Member
                  wrote on last edited by NeverDie
                  #35

                  The refresh rate is really slow: a lot slower than 100ms described in
                  https://www.openhardware.io/view/380/Micro-nano-ampere-meter-double
                  where in the introduction it says, "~100ms update rate to be able to 'see' power fluctuations (like radio communication)". What do I need to change to get that?

                  It matters less, but response to button pushes is also very slow. Has anyone devised a fix for that?

                  Rather than re-invent the wheel, I thought I'd ask first.

                  I did try increasing the sample rate by solder bridging the "RATE" solder pads on the back:
                  alt text
                  I'm not sure, but that may have helped speed things up a bit. It's still very slow updating though: nearly 7 seconds between screen updates.

                  Anyhow, current consumption during normal operation is something < 1.5mA, according to the datasheet. So, for my purposes (admittedly a bit different than the OP's), I need to get it powered up, take a reading, and then power down again as quickly as possible. The datasheet says the powerdown drain for the HX711 is <1ua.

                  AWIA 1 Reply Last reply
                  0
                  • Nca78N Offline
                    Nca78N Offline
                    Nca78
                    Hardware Contributor
                    wrote on last edited by
                    #36

                    I have the same problem, I don't have a jumper on my HX711 board so I soldered directly the pin of the IC with a small wire.
                    It has clearly improved things, but it's still slow so I will try to reduce number of samples and if it's not enough switch to TTP223 touch buttons in toggle mode, one to reset, one to change screen, so I will never miss a press.

                    NeverDieN 1 Reply Last reply
                    1
                    • NeverDieN NeverDie

                      The refresh rate is really slow: a lot slower than 100ms described in
                      https://www.openhardware.io/view/380/Micro-nano-ampere-meter-double
                      where in the introduction it says, "~100ms update rate to be able to 'see' power fluctuations (like radio communication)". What do I need to change to get that?

                      It matters less, but response to button pushes is also very slow. Has anyone devised a fix for that?

                      Rather than re-invent the wheel, I thought I'd ask first.

                      I did try increasing the sample rate by solder bridging the "RATE" solder pads on the back:
                      alt text
                      I'm not sure, but that may have helped speed things up a bit. It's still very slow updating though: nearly 7 seconds between screen updates.

                      Anyhow, current consumption during normal operation is something < 1.5mA, according to the datasheet. So, for my purposes (admittedly a bit different than the OP's), I need to get it powered up, take a reading, and then power down again as quickly as possible. The datasheet says the powerdown drain for the HX711 is <1ua.

                      AWIA Offline
                      AWIA Offline
                      AWI
                      Hero Member
                      wrote on last edited by
                      #37

                      @NeverDie @Nca78 a lot going on here :grinning: Nice to see that my afternoon project sparked creativity.
                      I started this to be a datalogger for remote monitoring of MySensors node power consumption. During the run changed my mind and it turned out to be this which fits my needs. But all options are still open..
                      The converter has a max sample rate of 80Hz which was default on the board I used. I balanced accuracy and readability by applying sample averaging. This averages out much of the noise from USB source etc.
                      The sparkfun boards are probably designed a little different and don't have the shield which helps to keep out noise.
                      To increase speed you can change the amount of averaging (number of readings per sample)
                      To get a better response for the button the way is to go for non blocking (averaging) readings of the Adc. The library is very basic so that would be the best place to start.

                      1 Reply Last reply
                      0
                      • NeverDieN Offline
                        NeverDieN Offline
                        NeverDie
                        Hero Member
                        wrote on last edited by NeverDie
                        #38

                        Seems like adding a larger cap on the ADC input would be an alternate way to average the readings, and require fewer ADC cycles. I'll give that a try.

                        I have the HX711 with the metal can on order, but only China had it, so it will take a while to get here. If anyone gets desperate, I suppose they could make their own metal enclosure and connect it to the "yellow" pin, which is there for that purpose. Unfortunately, noise will still leak in over the wiring, so I don't have high hopes it will make much difference.

                        1 Reply Last reply
                        0
                        • gohanG Offline
                          gohanG Offline
                          gohan
                          Mod
                          wrote on last edited by
                          #39

                          I got mine hx711 with shield, I only need to buy a 2-3 hours extension for the daily 24 hours as it seems they are not enough lately 😌

                          1 Reply Last reply
                          1
                          • NeverDieN Offline
                            NeverDieN Offline
                            NeverDie
                            Hero Member
                            wrote on last edited by
                            #40

                            I've concluded that the ADS1220 is, for now, a better fit for my needs. If I have it sample at 20SPS and throw out the first sample, then all subsequent samples are within less than 1ua of the final number. That's from a sloppy dupont wiring on a breadboard, so more proper and shorter connections on a PCB might be even better. Regardless, for my immediate purposes, repeat-ability at <1ua is good enough. The current consumption is less, and I get my answer much faster than with the HX711.

                            Just to be clear, I'm not here to rain on the HX711's parade. I'm mentioning the above only in case anyone else has needs similar to mine. I may revisit the HX711 later, after I receive the metal can version from China. Meanwhile, I look forward to following whatever progress people make with it.

                            1 Reply Last reply
                            1
                            • NeverDieN Offline
                              NeverDieN Offline
                              NeverDie
                              Hero Member
                              wrote on last edited by
                              #41

                              I received the red HX711 board with the metal can. What does the J1 solder jumper on the back do?
                              0_1497564378048_hx711_bacik.jpg
                              Also, any mods I should make before attaching the metal lid (to, for example, speed up the sample rate?)
                              0_1497564428726_hx711_front.jpg

                              NeverDieN 1 Reply Last reply
                              0
                              • NeverDieN Offline
                                NeverDieN Offline
                                NeverDie
                                Hero Member
                                wrote on last edited by
                                #42

                                I threw together this wireless node for measuring and reporting sub-milliamp currents using an ADS1220. I hope to do the same now with the HX711. Since it's auxillary to the circuit being tested, the extra measurement time of the HX711 won't matter so much.
                                0_1497564913054_sub1ma.jpg

                                1 Reply Last reply
                                0
                                • NeverDieN NeverDie

                                  I received the red HX711 board with the metal can. What does the J1 solder jumper on the back do?
                                  0_1497564378048_hx711_bacik.jpg
                                  Also, any mods I should make before attaching the metal lid (to, for example, speed up the sample rate?)
                                  0_1497564428726_hx711_front.jpg

                                  NeverDieN Offline
                                  NeverDieN Offline
                                  NeverDie
                                  Hero Member
                                  wrote on last edited by NeverDie
                                  #43

                                  The reference PCB in the HX711 datasheet (https://cdn.sparkfun.com/datasheets/Sensors/ForceFlex/hx711_english.pdf) does not show a J1. Whatever it is, AWI did not solder bridge his J1, at least not in the photographed version he posted.

                                  1 Reply Last reply
                                  0
                                  • korttomaK Offline
                                    korttomaK Offline
                                    korttoma
                                    Hero Member
                                    wrote on last edited by
                                    #44

                                    Hi guyes!

                                    Finished my device yesterday but to my surprise the display is blank all the time when running the "Double Micro Ampere meter" sketch. I tested the display with the "Hello World!" example from the Lib and it seems to work. What might I be doing wrong?
                                    0_1497588160666_20170616_073644.jpg

                                    • Tomas
                                    NeverDieN 1 Reply Last reply
                                    1
                                    • korttomaK Offline
                                      korttomaK Offline
                                      korttoma
                                      Hero Member
                                      wrote on last edited by
                                      #45

                                      Seems like it cannot communicate with the HX711 so it gets stuck at "scale.begin"
                                      Need to look in to that. I'm using A3 and A6 for the dout and sck this should work right? Or do I have to use A0 and A1?

                                      • Tomas
                                      1 Reply Last reply
                                      0
                                      • korttomaK Offline
                                        korttomaK Offline
                                        korttoma
                                        Hero Member
                                        wrote on last edited by
                                        #46

                                        Seems I can't use A6 since A6 and A7 are "Analog Exclusively Pins". Darn, need to disassemble and correct...

                                        • Tomas
                                        1 Reply Last reply
                                        1
                                        • Nca78N Offline
                                          Nca78N Offline
                                          Nca78
                                          Hardware Contributor
                                          wrote on last edited by
                                          #47

                                          Looking great !

                                          @NeverDie check the pinout of the IC on the datasheet and check if the jumper is connected to RATE pin on one side.

                                          korttomaK NeverDieN 2 Replies Last reply
                                          1
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          31

                                          Online

                                          11.7k

                                          Users

                                          11.2k

                                          Topics

                                          113.1k

                                          Posts


                                          Copyright 2025 TBD   |   Forum Guidelines   |   Privacy Policy   |   Terms of Service
                                          • Login

                                          • Don't have an account? Register

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • MySensors
                                          • OpenHardware.io
                                          • Categories
                                          • Recent
                                          • Tags
                                          • Popular