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
G

Gilles BILLARD

@Gilles BILLARD
About
Posts
27
Topics
0
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • 💬 Battery Powered Sensors
    G Gilles BILLARD

    Thanks EVB;

    1. Yes; Last test with a bare pro-mini 3.3v
    2. I did that...
    // Enable and select radio type attached
    #define MY_RADIO_RF24
    #include <MySensors.h>
    uint32_t SLEEP_TIME = 900000;  // sleep time between reads (in seconds * 1000 )
    int oldBatteryPcnt = 0;
    #define FULL_BATTERY 3 // 3V for 2xAA alkaline. Adjust if you use a different battery setup.
    void setup()
    {
    }
    void presentation()
    {
      // Send the sketch version information to the gateway and Controller
      sendSketchInfo("Battery Meter", "1.0");
    }
    void loop()
    {
    //    // get the battery Voltage
    //    long batteryMillivolts = hwCPUVoltage();
    //    int batteryPcnt = batteryMillivolts / FULL_BATTERY / 1000.0 * 100 + 0.5;
    //  
    //    if (oldBatteryPcnt != batteryPcnt) {
    //      sendBatteryLevel(batteryPcnt);
    //      oldBatteryPcnt = batteryPcnt;
    //  }
      sleep(SLEEP_TIME);
    }
    

    Again : 4.2mA (no sleep )
    So sad ! :disappointed_relieved:

    Announcements battery

  • Battery life calculator
    G Gilles BILLARD

    May I suggest you think about self discharging parameter in case of a reloadable battery and a long life time ?

    Hardware

  • 💬 Battery Powered Sensors
    G Gilles BILLARD

    @Yveaux
    YESSSSSS !<
    That was the last problèm to solve.
    Back with my own MySensors routine all is perfect ! (8uA in sleep mode)
    I am very happy now and I thank all those who assisted me.
    You've made my day !
    Gilles

    Announcements battery
  • Login

  • Don't have an account? Register

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