Navigation

    • Register
    • Login
    • OpenHardware.io
    • Categories
    • Recent
    • Tags
    • Popular
    1. Home
    2. Gilles BILLARD
    3. Best
    • Profile
    • Following
    • Followers
    • Topics
    • Posts
    • Best
    • Groups

    Best posts made by Gilles BILLARD

    • RE: 💬 Battery Powered Sensors

      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 ! 😥

      posted in Announcements
      Gilles BILLARD
      Gilles BILLARD
    • RE: Battery life calculator

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

      posted in Hardware
      Gilles BILLARD
      Gilles BILLARD
    • RE: 💬 Battery Powered Sensors

      @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

      posted in Announcements
      Gilles BILLARD
      Gilles BILLARD