Battery powering



  • Happy Friday guys! Fighting with another node and hoping someone may have some thoughts. I have followed the battery powered guide.

    My little sensor does not want to run on 3v. Anyone have any luck running 2.0 on a 3v battery?


  • Mod

    @Jason-Brunk running MySensors 2 on battery shouldn't be a problem. What happens on the sensors? What does the debug output say?



  • I am wondering if maybe the capacitor on my radio is too big while running off the coin cell.

    Here is what i am getting currently

    Starting sensor (RNNNA-, 2.0.0)
    TSM:INIT
    TSM:RADIO:OK
    TSP:ASSIGNID:OK (ID=1)
    TSM:FPAR
    Starting sensor (RNNNA-, 2.0.0)
    TSM:INIT
    TSM:RADIO:OK
    TSP:ASSIGNID:OK (ID=1)
    TSM:FPAR
    Starting sensor (RNNNA-, 2.0.0)
    TSM:INIT
    TSM:RADIO:OK
    TSP:ASSIGNID:OK (ID=1)
    TSM:FPAR
    Starting sensor (RNNNA-, 2.0.0)
    TSM:INIT
    TSM:RADIO:OK
    TSP:ASSIGNID:OK (ID=1)
    TSM:FPAR
    Starting sensor (RNNNA-, 2.0.0)
    TSM:INIT
    TSM:RADIO:OK
    TSP:ASSIGNID:OK (ID=1)
    TSM:FPAR
    Starting sensor (RNNNA-, 2.0.0)
    TSM:INIT
    TSM:RADIO:OK
    TSP:ASSIGNID:OK (ID=1)
    TSM:FPAR
    
    

  • Mod

    @Jason-Brunk what arduino ide are you using? 1.6.10 seems to have issues in combination with MySensors.



  • @Jason-Brunk
    I don't use 2.0, yet, but I have a lot 1.5.1 running on battery without problem.

    Try to run your node with power from e.g. FTDI or other source, then you can see if it works and also if it sleeps.

    What I notice for some of my nodes is that it needs a new battery to work, when my CR2032 battery comes down to ~2,5 volt it stop working maybe because of the mA is to low from battery to power up NRF or ATmega.



  • @Yveaux I am using 1.6.9



  • @flopp Just put a fresh battery in. Checked it before hand, 3.07v

    Starting sensor (RNNNA-, 2.0.0)
    TSM:INIT
    TSM:RADIO:OK
    TSP:ASSIGNID:OK (ID=1)
    TSM:FPAR
    Starting sensor (RNNNA-, 2.0.0)
    TSM:INIT
    TSM:RADIO:OK
    TSP:ASSIGNID:OK (ID=1)
    TSM:FPAR
    Starting sensor (RNNNA-, 2.0.0)
    TSM:INIT
    TSM:RADIO:OK
    TSP:ASSIGNID:OK (ID=1)
    TSM:FPAR
    Starting sensor (RNNNA-, 2.0.0)
    TSM:INIT
    TSM:RADIO:OK
    TSP:ASSIGNID:OK (ID=1)
    TSM:FPAR
    Starting sensor (RNNNA-, 2.0.0)
    TSM:INIT
    TSM:RADIO:OK
    TSP:ASSIGNID:OK (ID=1)
    TSM:FPAR
    

    What capacitor size are you using on the radio? any use to put a cap on the main power/gnd between the battery and the rest of the circuit?



  • @Jason-Brunk
    I am using 4,7 uF SMD mounted on the NRF.



  • @Jason-Brunk
    You can try with a cap on main pwr/gnd.

    Maybe you can measure the voltage on main pwr/gnd and see what happens when it starts?



  • @flopp i changed batteries and made sure i don't go below 2.6v and still the furthest i get is

    TSP▒Starting sensor (RNNNA-, 2.0.0)
    TSM:INIT
    TSM:RADIO:OK
    TSP▒Starting sensor (RNNNA-, 2.0.0)
    TSM:INIT
    TSM:RADIO:OK
    
    

    Looks like it is locking up as soon as the radio is initialized.



  • @Jason-Brunk
    Do you have an other NRF, if you have try with that



  • yeah, this one works if i give it a 3.3v power source. But i can try my other one.


  • Mod

    @Jason-Brunk Do you know/did you change the brown-out level of your atmega? See BODLEVEL at e.g. http://cryoarchive.net/tutorials/avr-tutorials/avr-fuses-explained/
    What Arduino hardware are we talking about?



  • This post is deleted!


  • Im using a 3.3v pro mini.

    From what I gathered BOD level only affected the power down. Would it affect the power up and radio initialization?



  • @Jason-Brunk said:

    yeah, this one works if i give it a 3.3v power source. But i can try my other one.

    Do you mean NRF?
    NRF should work down to 1,9 volt



  • @flopp That is correct, everything registers ok and debug shows the connections when i give it 3.3v from my usb power supply



  • @Jason-Brunk said:

    @flopp That is correct, everything registers ok and debug shows the connections when i give it 3.3v from my usb power supply

    Then it can be bad battery.

    Measure battery, should be about 3.1.

    Connect something to the battery, like an LED, battery shall now show maybe 2.9, not lower. If it shows lower I guess the battery is almost empty.


  • Mod

    @Jason-Brunk said:

    Im using a 3.3v pro mini.

    How are you pwering it? Through RAW or VCC? Did you remove/disable the regulator?



  • @Yveaux VCC. Yeah i pulled the regulator off


  • Mod

    @Jason-Brunk Does it run stable without the nRF? E.g. disconnect nRF and simply print something to serial.



  • tried to do the BOD fuse update. bricked a pro mini. grabbed another one. it took the updated boot loader.

    if i disconnect the radio it just loops

    TSM:PDT
    TSM:INIT
    !TSM:RADIO:FAIL
    !TSM:FAILURE
    TSM:PDT
    TSM:INIT
    !TSM:RADIO:FAIL
    !TSM:FAILURE
    TSM:PDT
    TSM:INIT
    !TSM:RADIO:FAIL
    !TSM:FAILURE
    TSM:PDT
    

    as you would expect.

    If i hook the radio up i get this.

    Starting sensor (RNNNA-, 2.0.0)
    TSM:INIT
    TSM:RADIO:OK
    TSP:Á
    

    I do still need to remove the regulator and led on this one. Not sure if that's the issue. I have also tried a brand new cr2032 battery



  • So here is my latest. I modified the arduino pro mini. Changed the BOD fuse value and reburned the bootloader. I wired it all back up. Got it to register. I got 6 button presses where it sent the data. Now I am right back where it was.

    Starting sensor (RNNNA-, 2.0.0)
    TSM:INIT
    TSM:RADIO:OK
    TSP:ASSIGNID:OK (ID=1)
    TSM:FPAR
    Starting sensor (RNNNA-, 2.0.0)
    TSM:INIT
    TSM:RADIO:OK
    TSP:ASSIGNID:OK (ID=1)
    TSM:FPAR
    TSP:MSG:SEND 1-1-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
    Starting sensor (RNNNA-, 2.0.0)
    TSM:INIT
    TSM:RADIO:OK
    TSP:ASSIGNID:Starting sensor (RNNNA-, 2.0.0)
    TSM:INIT
    TSM:RADIO:OK
    TSP:ASS▒Starting sensor (RNNNA-, 2.0.0)
    TSM:INIT
    TSM:RADIO:OK
    

    I am just not having much luck getting this to work via battery. I have a 100u capacitor on the radio.

    If anyone has any thoughts I am all ears. I kind of at a loss now. I am using the 2.0.0 release.



  • More testing update:

    I tried 2 AA batteries. Which would be the same voltage, just more mah. 0 Issues. Using the battery monitor with the AA batteries it shows the voltage at about 2.84v

    When I hook a brand new cr2032 up though, I press the button and it shows voltage is already down to 2.48v. I have the BOD disabled (I believe) per the instructions to modify the boards.txt and reburn the bootloader.

    The batteries I have are energizer cr2032. I would think they are ok, but they could all be junk. I have tried 4 so far.


  • Hardware Contributor

    @Jason-Brunk I would try to put in a delay of the radio startup in the sketch. Maybe there's to much or fast simultaneous power consuption initially with respect to the coincell.



  • Another quick update, seems to be making progress.

    I decided to try to flash a 1mhz boot loader onto my pro mini. Then reuploaded my switch sketch. So far it's looking good. Button presses are registering as expected. 2 things I have seen.

    1. i think i need to read up some more on changing clock speed. My sleep command should wake up and report battery level once an hour. This did not happen at all through the night.
    2. now that I am running at 1mhz when i tried to connect via serial for debugging using the default baudrate it was junk. I forced the baud rate to nice and slow, and it looked like that was going to do it. but no go.

  • Hardware Contributor

    Hello I gave you some tips for button cell on your other thread.
    In addition: if you are using interrupts only then your power consumption should be extremely low, I don't think it's necessary to wake up regularly to send battery level.
    If you don't do it then then you have even lower consumption because the watchdog timer is turned off, my CR2032 door/windows nodes using the sleep method from MySensors draws less than 2uA, there can be no visible change in battery level except if you leave your node in a closet for one year 😉


 

316
Online

8.0k
Users

8.8k
Topics

94.3k
Posts