Navigation

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

    Gilles BILLARD

    @Gilles BILLARD

    3
    Reputation
    27
    Posts
    337
    Profile views
    0
    Followers
    0
    Following
    Joined Last Online

    Gilles BILLARD Follow

    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

    Latest posts made by Gilles BILLARD

    • RE: Battery-powered irrigation controller

      Hi,
      I have already done all the same plus a flow control to check whether the valve is open or not and... it works perfectly.
      ++

      posted in My Project
      Gilles BILLARD
      Gilles BILLARD
    • RE: Battery-powered irrigation controller

      @chamroeun-ou said in Battery-powered irrigation controller:

      @user2684 I am also planning to build latching valve controller. But my valve is 2" to 4" and Its coil specifications are as follow:
      V: 6-20Volt DC (optimal is above 9volt)
      Capacitance Required: 4700uF
      Coil inductance: 90mH
      Pulse duration: 20 to 200mili seconds.

      Do you think h-bridge will work or do you have a better suggestion for this? My goal is also to run the controller on battery and place in farm so it must be waterproof.

      HI,
      I'm doing quite the same project at the moment; I ordered H bridge and also some flow detectors to check if the bistable valve is really in the desired position ( open not to see a desert, closed not to flood everything)
      Powered by 1 solar panel + 9v batteries + load controler + step down converters for Arduino and radio.

      posted in My Project
      Gilles BILLARD
      Gilles BILLARD
    • RE: What kind of sensor to choose?

      In my mind: The longest the wave the better the result through the rain;
      So: 1st US;
      2nd radar;
      3rd IR
      (may be I'm wrong )

      posted in General Discussion
      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 said in 💬 Battery Powered Sensors:

      .... All was ok, so what did you change (and why)

      A the very beginning, hesitating with the procedure, I've probably burnt the Minicore bootloader in the programming ProMini without noticing it... That's the only explanation I see.

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

      Finally, I found it….
      A big thank you to all those who helped;
      Here's my report in case it could be usefull to others (so, they will not waste as much time as I did)
      All began with my FTDI refusing to work with the MiniCore library, returning this classic error code: "avrdude: error: could not find USB device with vid-0x16c0 pid-0x5dc vendor'www.fischl.de' product'USBasp' when I wanted to reprogram a ProMini.
      So I opted for programming via another ProMini (Arduino as ISP)
      The first ProMini was able to receive the MiniCore bootloader and then my sketch without any problem, but the followings did’nt....No error message was reported; I spent 9 days trying hundreds of times changing only one thing at a time... unsuccessfully.
      But this morning I tried again using version 2.0.0 of Arduino’s IDE, and here I received an error message; "Impossible to recognize the Arduino as ISP" !!!!
      Eureka.... I had the idea to inject the MiniCore BootLoader + the “Arduino ISP” sketch in the 2nd via the IDE Arduino 1.8.13 and then use this very 2nd one to program others; At that moment, everything became normal; The tests were ok and went to "sleep" so I loaded my sketch and everything is good now.
      So: If you try to use Arduino as ISP with MiniCore Both Arduinos sould have been burnt with MiniCore BootLoader
      Thank you again.

      PS: Could the admin delete all my useless posts ?

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

      Please, have a look at the time stamps:
      Tests vs sleep time
      More or less 10 seconds if sleep time >= 10 000 ms
      Only a little more than 3 sec if sleep time = 2 000 ms
      Could it help ?

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

      @skywatch said in 💬 Battery Powered Sensors:

      @Gilles-BILLARD I understnad your frustration - I have been there myself.

      I suggest s simple node to test with, something like the door/window sensor with just one switch.

      I did that right away and the result is....
      All's OKay without sleep(xxx):

      2021-04-10 17:38:22.898 Status: MySensors: Node: 52, Sketch Name: Temperature Sensor Sleep
      2021-04-10 17:38:22.899 Status: MySensors: Node: 52, Sketch Version: GB.3.0
      2021-04-10 17:40:25.515 (GiBi-Home) Light/Switch (Security Sensor)
      2021-04-10 17:40:31.277 (GiBi-Home) Light/Switch (Security Sensor)
      

      Présentation then 2 minutes until I change the input twice

      But with sleep() included...

      2021-04-10 17:34:12.251 Status: MySensors: Node: 51, Sketch Name: Temperature Sensor Sleep
      2021-04-10 17:34:12.251 Status: MySensors: Node: 51, Sketch Version: GB.3.0
      2021-04-10 17:34:22.491 (GiBi-Home) Light/Switch (Security Sensor)
      2021-04-10 17:34:22.486 Status: MySensors: Node: 51, Sketch Name: Temperature Sensor Sleep
      2021-04-10 17:34:22.486 Status: MySensors: Node: 51, Sketch Version: GB.3.0
      2021-04-10 17:34:32.561 (GiBi-Home) Light/Switch (Security Sensor)
      2021-04-10 17:34:32.556 Status: MySensors: Node: 51, Sketch Name: Temperature Sensor Sleep
      2021-04-10 17:34:32.556 Status: MySensors: Node: 51, Sketch Version: GB.3.0
      2021-04-10 17:34:42.631 (GiBi-Home) Light/Switch (Security Sensor)
      2021-04-10 17:34:42.626 Status: MySensors: Node: 51, Sketch Name: Temperature Sensor Sleep
      2021-04-10 17:34:42.626 Status: MySensors: Node: 51, Sketch Version: GB.3.0
      2021-04-10 17:34:52.701 (GiBi-Home) Light/Switch (Security Sensor)
      2021-04-10 17:34:52.696 Status: MySensors: Node: 51, Sketch Name: Temperature Sensor Sleep
      2021-04-10 17:34:52.696 Status: MySensors: Node: 51, Sketch Version: GB.3.0
      2021-04-10 17:35:02.772 (GiBi-Home) Light/Switch (Security Sensor)
      2021-04-10 17:35:02.767 Status: MySensors: Node: 51, Sketch Name: Temperature Sensor Sleep
      2021-04-10 17:35:02.767 Status: MySensors: Node: 51, Sketch Version: GB.3.0
      2021-04-10 17:35:12.842 (GiBi-Home) Light/Switch (Security Sensor)
      2021-04-10 17:35:12.837 Status: MySensors: Node: 51, Sketch Name: Temperature Sensor Sleep
      2021-04-10 17:35:12.837 Status: MySensors: Node: 51, Sketch Version: GB.3.0
      2021-04-10 17:35:22.913 (GiBi-Home) Light/Switch (Security Sensor)
      2021-04-10 17:35:22.908 Status: MySensors: Node: 51, Sketch Name: Temperature Sensor Sleep
      2021-04-10 17:35:22.908 Status: MySensors: Node: 51, Sketch Version: GB.3.0
      2021-04-10 17:35:32.984 (GiBi-Home) Light/Switch (Security Sensor)
      2021-04-10 17:35:32.979 Status: MySensors: Node: 51, Sketch Name: Temperature Sensor Sleep
      2021-04-10 17:35:32.980 Status: MySensors: Node: 51, Sketch Version: GB.3.0
      2021-04-10 17:35:43.055 (GiBi-Home) Light/Switch (Security Sensor)
      

      The same kind of reboot up to présentation()

      So sad !
      NOTA: The sketch is the one provided as an example in BinarySwitchSensor.ino sketch
      I've just added sleep( 10000) a the very end.

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

      @skywatch said in 💬 Battery Powered Sensors:

      ...........have you checked the baud rate the pro mini or uno you are using as a programmer - maybe it is 115200 and that is optimistic for a 3.3V board.

      The programmer is loaded with standard Arduino ISP sketch (19200 default baud rate)

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

      @skywatch
      1 board
      Radio : https://www.amazon.fr/NRF24L01-antenne-module-emetteur-recepteur-sans/dp/B01FLVTY3G/ref=sr_1_21?dchild=1&hvadid=80470576921758&hvbmt=be&hvdev=c&hvqmt=e&keywords=nrf2401&qid=1618066959&sr=8-21

      posted in Announcements
      Gilles BILLARD
      Gilles BILLARD