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. Battery Sensor v 1.0 PCB

Battery Sensor v 1.0 PCB

Scheduled Pinned Locked Moved My Project
56 Posts 9 Posters 37.8k Views 3 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.
  • clippermiamiC Offline
    clippermiamiC Offline
    clippermiami
    Hero Member
    wrote on last edited by clippermiami
    #1

    Previously I reported that I was working on developing a PCB for battery operated sensors to meet the following criteria:

    • Powered by CR123 3v Lithium Battery
    • 0.8v > 3.3v converter/regulator for max battery life
    • Support for 2@ Digital, 2@ Analog, 1@ L2C interface
    • Screw terminal blocks for sensor attachment

    The v1.0 PCB came back from OSHPark yesterday and I've installed all the parts and loaded a known working Temp/Humidity/Light sketch with the addition of the battery level reporting as described on My Sensors.

    I'm pleased to report that it installed and operated the first time and my VeraLite located and included it without a problem. I do have a problem with the battery voltage information and suspect I swapped the 1M Ohm and 470K Ohm resistors the voltage divider.

    It's a very spacious board ... for my first attempt at Eagle and PCB design and creation I chose not to try to conserve real estate but rather give myself plenty of room to work. I also have a minor component placement problem with the space allocated for the voltage divider resistors.

    I'm considering a version 2.0 board to correct the few errors and to include some other functions to make the board more general purpose battery or external power:

    • 2.1mm barrel connector and 7805 regulator for external power
    • 1v > 5v converter to allow 5v sensors on the battery version
    • 5 pin screw terminal blocks to support both 3.3 and 5 v sensors on any version

    I will make the current v 1.0 version available on OSHPark if anyone is interested.

    I have attached some photos of the board, components and the assembly. Everything is in sockets for this test but in production I'd probably solder the subassemblies directly to the board20140711_101852.jpg 20140711_101639.jpg 20140711_101629.jpg 20140711_101603.jpg 20140711_101515.jpg 20140711_101501.jpg 20140711_101449.jpg 20140711_101424.jpg 20140711_101407.jpg 20140711_114308.jpgScreenHunter_127 Jul. 11 12.39.jpg

    YveauxY axillentA BSoftB 3 Replies Last reply
    1
    • clippermiamiC clippermiami

      Previously I reported that I was working on developing a PCB for battery operated sensors to meet the following criteria:

      • Powered by CR123 3v Lithium Battery
      • 0.8v > 3.3v converter/regulator for max battery life
      • Support for 2@ Digital, 2@ Analog, 1@ L2C interface
      • Screw terminal blocks for sensor attachment

      The v1.0 PCB came back from OSHPark yesterday and I've installed all the parts and loaded a known working Temp/Humidity/Light sketch with the addition of the battery level reporting as described on My Sensors.

      I'm pleased to report that it installed and operated the first time and my VeraLite located and included it without a problem. I do have a problem with the battery voltage information and suspect I swapped the 1M Ohm and 470K Ohm resistors the voltage divider.

      It's a very spacious board ... for my first attempt at Eagle and PCB design and creation I chose not to try to conserve real estate but rather give myself plenty of room to work. I also have a minor component placement problem with the space allocated for the voltage divider resistors.

      I'm considering a version 2.0 board to correct the few errors and to include some other functions to make the board more general purpose battery or external power:

      • 2.1mm barrel connector and 7805 regulator for external power
      • 1v > 5v converter to allow 5v sensors on the battery version
      • 5 pin screw terminal blocks to support both 3.3 and 5 v sensors on any version

      I will make the current v 1.0 version available on OSHPark if anyone is interested.

      I have attached some photos of the board, components and the assembly. Everything is in sockets for this test but in production I'd probably solder the subassemblies directly to the board20140711_101852.jpg 20140711_101639.jpg 20140711_101629.jpg 20140711_101603.jpg 20140711_101515.jpg 20140711_101501.jpg 20140711_101449.jpg 20140711_101424.jpg 20140711_101407.jpg 20140711_114308.jpgScreenHunter_127 Jul. 11 12.39.jpg

      YveauxY Offline
      YveauxY Offline
      Yveaux
      Mod
      wrote on last edited by Yveaux
      #2

      @clippermiami Ah, there are the images ;-)
      Very nice and spacious indeed!
      Why did you decice to bring the 3V from the bttery to 3.3V? Do you need a stable supply for sensors?

      http://yveaux.blogspot.nl

      clippermiamiC 1 Reply Last reply
      0
      • YveauxY Yveaux

        @clippermiami Ah, there are the images ;-)
        Very nice and spacious indeed!
        Why did you decice to bring the 3V from the bttery to 3.3V? Do you need a stable supply for sensors?

        clippermiamiC Offline
        clippermiamiC Offline
        clippermiami
        Hero Member
        wrote on last edited by clippermiami
        #3

        @Yveaux Well, it just seemed to make sense. The CR123 is a 3V battery and the Arduino is 3.3V for a starter. And the upconverter/regulator allows 3.3v out from a battery input as low as 0.8v so I thought that would help extract as much juice a possible from the battery.

        John

        YveauxY 1 Reply Last reply
        0
        • clippermiamiC clippermiami

          @Yveaux Well, it just seemed to make sense. The CR123 is a 3V battery and the Arduino is 3.3V for a starter. And the upconverter/regulator allows 3.3v out from a battery input as low as 0.8v so I thought that would help extract as much juice a possible from the battery.

          John

          YveauxY Offline
          YveauxY Offline
          Yveaux
          Mod
          wrote on last edited by Yveaux
          #4

          @clippermiami There's another discussion going on here about regulating to 3v3 from batteries. The Arduino & RF24 will still run fine if voltage drops, and it saves you the loss of the regulator.
          Anyway, just start it up and see how long the battery will last!

          http://yveaux.blogspot.nl

          1 Reply Last reply
          0
          • clippermiamiC clippermiami

            Previously I reported that I was working on developing a PCB for battery operated sensors to meet the following criteria:

            • Powered by CR123 3v Lithium Battery
            • 0.8v > 3.3v converter/regulator for max battery life
            • Support for 2@ Digital, 2@ Analog, 1@ L2C interface
            • Screw terminal blocks for sensor attachment

            The v1.0 PCB came back from OSHPark yesterday and I've installed all the parts and loaded a known working Temp/Humidity/Light sketch with the addition of the battery level reporting as described on My Sensors.

            I'm pleased to report that it installed and operated the first time and my VeraLite located and included it without a problem. I do have a problem with the battery voltage information and suspect I swapped the 1M Ohm and 470K Ohm resistors the voltage divider.

            It's a very spacious board ... for my first attempt at Eagle and PCB design and creation I chose not to try to conserve real estate but rather give myself plenty of room to work. I also have a minor component placement problem with the space allocated for the voltage divider resistors.

            I'm considering a version 2.0 board to correct the few errors and to include some other functions to make the board more general purpose battery or external power:

            • 2.1mm barrel connector and 7805 regulator for external power
            • 1v > 5v converter to allow 5v sensors on the battery version
            • 5 pin screw terminal blocks to support both 3.3 and 5 v sensors on any version

            I will make the current v 1.0 version available on OSHPark if anyone is interested.

            I have attached some photos of the board, components and the assembly. Everything is in sockets for this test but in production I'd probably solder the subassemblies directly to the board20140711_101852.jpg 20140711_101639.jpg 20140711_101629.jpg 20140711_101603.jpg 20140711_101515.jpg 20140711_101501.jpg 20140711_101449.jpg 20140711_101424.jpg 20140711_101407.jpg 20140711_114308.jpgScreenHunter_127 Jul. 11 12.39.jpg

            axillentA Offline
            axillentA Offline
            axillent
            Mod
            wrote on last edited by
            #5

            @clippermiami nice work!
            which IC is used for step-up?

            sense and drive

            clippermiamiC 1 Reply Last reply
            0
            • axillentA axillent

              @clippermiami nice work!
              which IC is used for step-up?

              clippermiamiC Offline
              clippermiamiC Offline
              clippermiami
              Hero Member
              wrote on last edited by
              #6

              @axillent I used the module listed on the Store (http://www.ebay.com/itm/231083181020) so I don't know the details.

              1 Reply Last reply
              0
              • clippermiamiC Offline
                clippermiamiC Offline
                clippermiami
                Hero Member
                wrote on last edited by
                #7

                If anyone is interested the board is shared on OSHPark under my UserName "ClipperMiami" as

                "https://oshpark.com/shared_projects/PtJRVGUP"

                1 Reply Last reply
                0
                • clippermiamiC clippermiami

                  Previously I reported that I was working on developing a PCB for battery operated sensors to meet the following criteria:

                  • Powered by CR123 3v Lithium Battery
                  • 0.8v > 3.3v converter/regulator for max battery life
                  • Support for 2@ Digital, 2@ Analog, 1@ L2C interface
                  • Screw terminal blocks for sensor attachment

                  The v1.0 PCB came back from OSHPark yesterday and I've installed all the parts and loaded a known working Temp/Humidity/Light sketch with the addition of the battery level reporting as described on My Sensors.

                  I'm pleased to report that it installed and operated the first time and my VeraLite located and included it without a problem. I do have a problem with the battery voltage information and suspect I swapped the 1M Ohm and 470K Ohm resistors the voltage divider.

                  It's a very spacious board ... for my first attempt at Eagle and PCB design and creation I chose not to try to conserve real estate but rather give myself plenty of room to work. I also have a minor component placement problem with the space allocated for the voltage divider resistors.

                  I'm considering a version 2.0 board to correct the few errors and to include some other functions to make the board more general purpose battery or external power:

                  • 2.1mm barrel connector and 7805 regulator for external power
                  • 1v > 5v converter to allow 5v sensors on the battery version
                  • 5 pin screw terminal blocks to support both 3.3 and 5 v sensors on any version

                  I will make the current v 1.0 version available on OSHPark if anyone is interested.

                  I have attached some photos of the board, components and the assembly. Everything is in sockets for this test but in production I'd probably solder the subassemblies directly to the board20140711_101852.jpg 20140711_101639.jpg 20140711_101629.jpg 20140711_101603.jpg 20140711_101515.jpg 20140711_101501.jpg 20140711_101449.jpg 20140711_101424.jpg 20140711_101407.jpg 20140711_114308.jpgScreenHunter_127 Jul. 11 12.39.jpg

                  BSoftB Offline
                  BSoftB Offline
                  BSoft
                  wrote on last edited by
                  #8

                  Nice work!!! I would avoid the step-up module... for a low discharge scenario CR123 give us almost all juice with their voltage up to 1.9V (nRF24L01 limit).

                  clippermiamiC 1 Reply Last reply
                  0
                  • BSoftB BSoft

                    Nice work!!! I would avoid the step-up module... for a low discharge scenario CR123 give us almost all juice with their voltage up to 1.9V (nRF24L01 limit).

                    clippermiamiC Offline
                    clippermiamiC Offline
                    clippermiami
                    Hero Member
                    wrote on last edited by
                    #9

                    @BSoft Interesting point. That would simplify things a bit :)

                    YveauxY 1 Reply Last reply
                    0
                    • clippermiamiC clippermiami

                      @BSoft Interesting point. That would simplify things a bit :)

                      YveauxY Offline
                      YveauxY Offline
                      Yveaux
                      Mod
                      wrote on last edited by Yveaux
                      #10

                      @clippermiami said:

                      @BSoft Interesting point. That would simplify things a bit :)

                      Exactly my point ;-)

                      And as a bonus it would probably run longer on a single battery!

                      http://yveaux.blogspot.nl

                      1 Reply Last reply
                      0
                      • BSoftB Offline
                        BSoftB Offline
                        BSoft
                        wrote on last edited by BSoft
                        #11

                        You will have to disable BOD fuses if you want to work below 2.4V.

                        Please also take in account that using atmega328p below 2.4V will decrease operational frequency (below 8MHz).

                        More details at this post: link text

                        I still prefer to avoid any type of regulators.

                        1 Reply Last reply
                        0
                        • A Offline
                          A Offline
                          a-lurker
                          wrote on last edited by
                          #12

                          With a 4 MHz crystal it can run to near 1V8. See page 310 of the data sheet.

                          The radio could run directly off the battery and the CPU and sensors off the inverter. That may be a good compromise as the radio draws the most amount of power?

                          axillentA 1 Reply Last reply
                          0
                          • A a-lurker

                            With a 4 MHz crystal it can run to near 1V8. See page 310 of the data sheet.

                            The radio could run directly off the battery and the CPU and sensors off the inverter. That may be a good compromise as the radio draws the most amount of power?

                            axillentA Offline
                            axillentA Offline
                            axillent
                            Mod
                            wrote on last edited by
                            #13

                            @a-lurker

                            @a-lurker said:

                            With a 4 MHz crystal it can run to near 1V8. See page 310 of the data sheet.

                            crystal also need some power to operate
                            running without crystal can help
                            with mysensors battery board we decided to not use crystal
                            MCU will run from internal RC 8MHz with CLDIV8 enabled
                            etc. basic frequency 1MHz with ability to speed up to 8MHz on the fly

                            The radio could run directly off the battery and the CPU and sensors off the inverter. That may be a good compromise as the radio draws the most amount of power?

                            radio draws about 12mA at time of receive/transmit
                            but while you thinking about battery life it is important to think not about current draw, but about power consumed
                            the power is a function of current multiplied by time

                            in this logic for example DS18B20 is very power consuming, because it needs a few mA for 750ms
                            radio consumed 12mA but for shorter time
                            MCU consumes less but for much longer time, and you need to understand it's average current consumption through the circle between sleep and active modes

                            sense and drive

                            A 1 Reply Last reply
                            0
                            • axillentA axillent

                              @a-lurker

                              @a-lurker said:

                              With a 4 MHz crystal it can run to near 1V8. See page 310 of the data sheet.

                              crystal also need some power to operate
                              running without crystal can help
                              with mysensors battery board we decided to not use crystal
                              MCU will run from internal RC 8MHz with CLDIV8 enabled
                              etc. basic frequency 1MHz with ability to speed up to 8MHz on the fly

                              The radio could run directly off the battery and the CPU and sensors off the inverter. That may be a good compromise as the radio draws the most amount of power?

                              radio draws about 12mA at time of receive/transmit
                              but while you thinking about battery life it is important to think not about current draw, but about power consumed
                              the power is a function of current multiplied by time

                              in this logic for example DS18B20 is very power consuming, because it needs a few mA for 750ms
                              radio consumed 12mA but for shorter time
                              MCU consumes less but for much longer time, and you need to understand it's average current consumption through the circle between sleep and active modes

                              A Offline
                              A Offline
                              a-lurker
                              wrote on last edited by
                              #14

                              @axillent I'm in agreement.

                              BSoftB 1 Reply Last reply
                              0
                              • clippermiamiC Offline
                                clippermiamiC Offline
                                clippermiami
                                Hero Member
                                wrote on last edited by
                                #15

                                I've found what may be the first problem with this unit. I have a combination temp/humidity/light sensor running on it, a known good sketch that works on other hardware. I added battery measurement support to it and it appears to work fine.

                                This morning I noticed it had not updated Vera since 11:20 last night. This is the second time I've seen this so far but each time I start working on debugging it seems to start working. The common element is that it was sitting on a window sill in the kitchen so I could get easy access to measure the battery voltage and when I debug its on a counter in the family room. The difference is the kitchen is about 15 feet further away from the gateway! The path is no more obstructed in either room, there is essentially one wall between the gateway and the sensor remote.

                                I have a scramble-wired 5v version running for test and it reports everywhere in the house. The PCB version fails in the bedroom, again about 20 feet further from the gateway than the family room. I've changed radios so it doesn't appear to be just a weak radio.

                                I have a good solid 3.3V on the radio Vcc so it isn't a voltage drop problem. I'm wondering if there is a problem with the radio sitting over the PCB ground plane. I have one of the Seeed Studio DevDuino v 2.0 units an the radio also sits over the ground plane on that device. I haven't gotten around to programming it yet so I can't compare the performance.

                                I'm also trying a radio with the external SMA antenna and found that, as one might expect, it works at considerable distance, in this case over 100 feet down the street, through the concrete block external house walls.

                                I removed the radio from the PCB socket and put it on a cable about 8 inches long to get away from the ground plane and that does NOT appear to have made any difference. However, if I hold the unit up over my head at arms length the gateway does get the update.

                                Can anyone comment on your experience with the basic NRF24L01 radio modules in terms of range from the gateway, obstructions in the path, etc. Any opinion on the likelihood of a ground plane problem?

                                Also FYI, I've been monitoring the battery voltage externally and in the past 36 hours the battery voltage has dropped 0.04v. This is without making any changes to reduce drain such as cutting the LEDs, using the Low Power Library, etc. I expect that running the LP library and making the other changes, the CR123 should have excellent battery life.

                                BSoftB 1 Reply Last reply
                                0
                                • A a-lurker

                                  @axillent I'm in agreement.

                                  BSoftB Offline
                                  BSoftB Offline
                                  BSoft
                                  wrote on last edited by
                                  #16

                                  @a-lurker said:

                                  @axillent I'm in agreement.

                                  Me too, excellent clarification! :)

                                  1 Reply Last reply
                                  0
                                  • clippermiamiC clippermiami

                                    I've found what may be the first problem with this unit. I have a combination temp/humidity/light sensor running on it, a known good sketch that works on other hardware. I added battery measurement support to it and it appears to work fine.

                                    This morning I noticed it had not updated Vera since 11:20 last night. This is the second time I've seen this so far but each time I start working on debugging it seems to start working. The common element is that it was sitting on a window sill in the kitchen so I could get easy access to measure the battery voltage and when I debug its on a counter in the family room. The difference is the kitchen is about 15 feet further away from the gateway! The path is no more obstructed in either room, there is essentially one wall between the gateway and the sensor remote.

                                    I have a scramble-wired 5v version running for test and it reports everywhere in the house. The PCB version fails in the bedroom, again about 20 feet further from the gateway than the family room. I've changed radios so it doesn't appear to be just a weak radio.

                                    I have a good solid 3.3V on the radio Vcc so it isn't a voltage drop problem. I'm wondering if there is a problem with the radio sitting over the PCB ground plane. I have one of the Seeed Studio DevDuino v 2.0 units an the radio also sits over the ground plane on that device. I haven't gotten around to programming it yet so I can't compare the performance.

                                    I'm also trying a radio with the external SMA antenna and found that, as one might expect, it works at considerable distance, in this case over 100 feet down the street, through the concrete block external house walls.

                                    I removed the radio from the PCB socket and put it on a cable about 8 inches long to get away from the ground plane and that does NOT appear to have made any difference. However, if I hold the unit up over my head at arms length the gateway does get the update.

                                    Can anyone comment on your experience with the basic NRF24L01 radio modules in terms of range from the gateway, obstructions in the path, etc. Any opinion on the likelihood of a ground plane problem?

                                    Also FYI, I've been monitoring the battery voltage externally and in the past 36 hours the battery voltage has dropped 0.04v. This is without making any changes to reduce drain such as cutting the LEDs, using the Low Power Library, etc. I expect that running the LP library and making the other changes, the CR123 should have excellent battery life.

                                    BSoftB Offline
                                    BSoftB Offline
                                    BSoft
                                    wrote on last edited by BSoft
                                    #17

                                    @clippermiami said:

                                    I have a good solid 3.3V on the radio Vcc so it isn't a voltage drop problem. I'm wondering if there is a problem with the radio sitting over the PCB ground plane. I have one of the Seeed Studio DevDuino v 2.0 units an the radio also sits over the ground plane on that device. I haven't gotten around to programming it yet so I can't compare the performance.

                                    I think problem could be on the step-up regulator. It as been reported some regulators behave badly on nrf24 peak/burst operation.
                                    On those moments instant current needs are above normal and the VCCout from the regulator oscillates terribly.

                                    As a test, please use the capacitor workaround and check if problem still occurs.

                                    clippermiamiC 2 Replies Last reply
                                    0
                                    • BSoftB BSoft

                                      @clippermiami said:

                                      I have a good solid 3.3V on the radio Vcc so it isn't a voltage drop problem. I'm wondering if there is a problem with the radio sitting over the PCB ground plane. I have one of the Seeed Studio DevDuino v 2.0 units an the radio also sits over the ground plane on that device. I haven't gotten around to programming it yet so I can't compare the performance.

                                      I think problem could be on the step-up regulator. It as been reported some regulators behave badly on nrf24 peak/burst operation.
                                      On those moments instant current needs are above normal and the VCCout from the regulator oscillates terribly.

                                      As a test, please use the capacitor workaround and check if problem still occurs.

                                      clippermiamiC Offline
                                      clippermiamiC Offline
                                      clippermiami
                                      Hero Member
                                      wrote on last edited by
                                      #18

                                      @BSoft Thanks. I'll try jumping around the up-regulator and see if that helps

                                      BSoftB 1 Reply Last reply
                                      0
                                      • clippermiamiC clippermiami

                                        @BSoft Thanks. I'll try jumping around the up-regulator and see if that helps

                                        BSoftB Offline
                                        BSoftB Offline
                                        BSoft
                                        wrote on last edited by
                                        #19

                                        @clippermiami
                                        You can still use the step-up, connect the capacitor in parallel between VCCout (regulator) and ground.

                                        Or better, connect the capacitor between VCC-GND on the NRF24 (the closest you get to nRF24 is better).

                                        If you still get transmission problems and if possible, bypass the step-up and keep the capacitor on and check again.

                                        clippermiamiC 1 Reply Last reply
                                        0
                                        • BSoftB BSoft

                                          @clippermiami said:

                                          I have a good solid 3.3V on the radio Vcc so it isn't a voltage drop problem. I'm wondering if there is a problem with the radio sitting over the PCB ground plane. I have one of the Seeed Studio DevDuino v 2.0 units an the radio also sits over the ground plane on that device. I haven't gotten around to programming it yet so I can't compare the performance.

                                          I think problem could be on the step-up regulator. It as been reported some regulators behave badly on nrf24 peak/burst operation.
                                          On those moments instant current needs are above normal and the VCCout from the regulator oscillates terribly.

                                          As a test, please use the capacitor workaround and check if problem still occurs.

                                          clippermiamiC Offline
                                          clippermiamiC Offline
                                          clippermiami
                                          Hero Member
                                          wrote on last edited by
                                          #20

                                          @BSoft I jumpered around the up-regulator and it didn't make any difference, I still cannot get updates from the kitchen, about 30 feet and one wall from the gateway. So far the only thing that has made a difference is the NRF with the SMA antenna.

                                          1 Reply Last reply
                                          0
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          8

                                          Online

                                          11.7k

                                          Users

                                          11.2k

                                          Topics

                                          113.0k

                                          Posts


                                          Copyright 2019 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