Navigation

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

    warmaniac

    @warmaniac

    2
    Reputation
    49
    Posts
    480
    Profile views
    0
    Followers
    2
    Following
    Joined Last Online
    Location Slovakia

    warmaniac Follow

    Best posts made by warmaniac

    • RE: Low power battery Door/Window sketch nrf24l01

      @sundberg84

      I had barometer BMP180 powered on 2xAA 1,5V , in usage from 1.March 2017 , Start battery power was 85% (not new batteries, before used) and now after 14 days of usage is 84 % , Im very satisfied. Using only without LEDs ,with power regulator on arduino.

      1_1489491784079_baro_2.png 0_1489491784079_baro_1.png

      posted in Development
      warmaniac
      warmaniac
    • RE: SCT-013-030 current monitor sensor

      updated my sketch with new values for SCT-013-00 result is now

      #define MY_DEBUG
      #define MY_RADIO_NRF24
      // EmonLibrary examples openenergymonitor.org, Licence GNU GPL V3  ***/
      #include <SPI.h>
      #include <MySensors.h>
      #include "EmonLib.h"             // Include Emon Library
      EnergyMonitor emon1;             // Create an instance
      
      #define CHILD_ID_CLAMP1 0
      #define PIN_ANALOG_I1 A1 //pince amperemetrique1
      
      unsigned long lastSend_power = millis();
      unsigned long lastSend_c = millis();
      unsigned long SEND_FREQUENCY = 120000; // Minimum time between send (in milliseconds). We don't wnat to spam the gateway.
      unsigned long SEND_FREQUENCY_C = SEND_FREQUENCY / 30;
      int index = 0;
      double Irms1 = 0;
      boolean pcReceived1 = false;
      float nrj1 = 0, old_nrj1;
      
      MyMessage IrmsMsg1(CHILD_ID_CLAMP1, V_WATT);
      MyMessage kWhMsg1(CHILD_ID_CLAMP1, V_KWH);
      MyMessage pcMsg1(CHILD_ID_CLAMP1, V_VAR1);
      
      void before() {
      
      }
      
      
      void presentation()
      {
        sendSketchInfo("Multisensors_Entree", "2.0");  // Send the sketch version information to the gateway and Controller
        present(CHILD_ID_CLAMP1, S_POWER);   // Register this device as power sensor
        request(CHILD_ID_CLAMP1, V_VAR1);
      }
      
      
      void receive(const MyMessage &message)
      {
        if (message.type == V_VAR1)
        {
          nrj1 = old_nrj1 = message.getFloat();
          Serial.print("Received last nrj count from gw:");
          Serial.println(nrj1);
          pcReceived1 = true;
        }
      }
      
      void setup()
      {
        emon1.current(PIN_ANALOG_I1, 111.1);       // Current: input pin, calibration.
        Serial.println("SETUP completed");
      }
      
      void envoi_donnees(double intrms, int id_clamp)
      {
        Serial.print("Envoi des donnees .... clamp="); Serial.println(id_clamp);
        double energie = (intrms * 240.0 * SEND_FREQUENCY / 1000) / 3.6E6;
        switch (id_clamp) //can be modified ...
        {
          case 1:
            {
              send(IrmsMsg1.set(intrms * 240.0, 1));
              nrj1 += energie;
              send(kWhMsg1.set(nrj1, 5));
              send(pcMsg1.set(nrj1, 5));
              old_nrj1 = nrj1;
            }
            break;
        }
      }
      
      void loop() {
        unsigned long now = millis();
        bool sendTime_c = now - lastSend_c > SEND_FREQUENCY_C;
        // Calcul de Irms1 et Irms2
        if (sendTime_c) //calcul Irms moy clamp1/clamp2
        {
          if (index == 0)
          {
            Irms1 = emon1.calcIrms(1480);
          }
          else  
          {
            Irms1 = (index * Irms1 + emon1.calcIrms(1480)) / (index + 1);
          }
          lastSend_c = now;
          index++;
        }
      
      bool sendTime_power = now - lastSend_power > SEND_FREQUENCY;
      
       if (sendTime_power)
      {
        // Envoi ou request Puissance1
        if (pcReceived1) envoi_donnees(Irms1, 1);
        else     {
          request(CHILD_ID_CLAMP1, V_VAR1);
          Serial.println("Request VAR1");
        }
        //on reinitialise les compteurs
        lastSend_power = now;
        index = 0;
        }
      }
      

      0_1490992284051_upload-583cafbf-bd94-4bad-8fd3-8c510f5cfbfc

      posted in Hardware
      warmaniac
      warmaniac

    Latest posts made by warmaniac

    • RE: Lightning report - any idea ?

      @sundberg84

      yes , but this solution needs buying of sensor which costs about 25-30 € , this what I write , take a look on it needs only resistors and wires (plus arduino and radio of course)

      posted in Development
      warmaniac
      warmaniac
    • RE: Lightning report - any idea ?

      @gohan

      Yes this is true but these requires of buying sensors for about 30€ for example AS3935 , I think that one , which I mentioned is cheap because it only needs 2x 10 kOhm and 3,3 mOhm resistors . Only problem which I had is bring that code works with mysensors.

      posted in Development
      warmaniac
      warmaniac
    • Lightning report - any idea ?

      Hi ,

      I found this simple setup for lightning detection

      [https://create.arduino.cc/projecthub/runtimeprojects/a-lightning-detector-for-arduino-9f679c](link url)

      is there some way to implement it with mysensors to see it for example in domoticz ?

      posted in Development
      warmaniac
      warmaniac
    • RE: 💬 Sonoff relay using MySensors ESP8266 wifi or mqtt gateway

      @gohan said in 💬 Sonoff relay using MySensors ESP8266 wifi or mqtt gateway:

      is it reachable via IP or is it totally unresponsive?

      I had same problem too.. When is longer not turned on, Sonoff disconnects from wifi , that ip is not in client list, in my case I only turn sonoff on throught black button on the top and than it is okay about day-two.

      posted in OpenHardware.io
      warmaniac
      warmaniac
    • RE: 💬 Sonoff relay using MySensors ESP8266 wifi or mqtt gateway

      After electricity plugged off , it stops working / not connecting to wifi router, but on manual click it turns on and of , it is problem because I don't use haas config ? I dont know where can I place them, can you help me ? 🙂 thanks

      posted in OpenHardware.io
      warmaniac
      warmaniac
    • RE: LED strip remote without relay?

      @mfalkvidd

      And what about 433 mhz way like RFlink as usb gateway ? Will it drain less ?

      posted in Hardware
      warmaniac
      warmaniac
    • RE: LED strip remote without relay?

      @mfalkvidd

      Thanks for reply and interest, but question is : Do I need use Solid state relay or classic relay or how can I switch light on/off ? Thanks

      posted in Hardware
      warmaniac
      warmaniac
    • LED strip remote without relay?

      Hi ,

      I want to help make led strip remote powered trought 3x AAA batteries , which can I turn on/off remotely without relay (it consumes lot of power). I think when it works on 5V battery(3xAA) it may be powered trought arduino , or any ideas ?

      Led strip here

      http://www.ebay.com/itm/282380579023?_trksid=p2057872.m2749.l2648&var=581508983496&ssPageName=STRK%3AMEBIDX%3AIT

      posted in Hardware
      warmaniac
      warmaniac
    • RE: 💬 Sonoff relay using MySensors ESP8266 wifi or mqtt gateway

      @Efflon

      Tried LAN sketch after adding new hardware in domoticz this error occurs

      2017-04-06 06:28:07.230 MQTT: Connecting to 192.168.2.209:5003
      2017-04-06 06:28:07.335 Error: MQTT: disconnected, restarting (rc=2)
      

      after that Sonoff blik twice. What may be wrong ?

      Edit:

      Understand now , it is added as classic mysensor LAN gateway , now working fine ! I tried to do it complicated way , but it was easy 😄

      2017-04-06 06:30:29.756 MySensors: trying to connect to: 192.168.2.209:5003
      2017-04-06 06:30:30.757 MySensors: connected to: 192.168.2.209:5003
      2017-04-06 06:30:30.758 MySensors: Gateway Ready...
      2017-04-06 06:30:30.762 MySensors: Node: 0, Sketch Name: Sonoff ethernet
      2017-04-06 06:30:30.763 MySensors: Node: 0, Sketch Version: 1.0
      2017-04-06 06:30:30.769 (MQTT) Light/Switch (Light)
      2017-04-06 06:30:31.778 MySensors: Gateway Version: 2.1.1
      2017-04-06 06:30:31.779 MySensors: Gateway Version: 2.1.1
      
      2017-04-06 06:31:11.939 User: Admin initiated a switch command (87/Sonoff-1/On)
      2017-04-06 06:31:11.942 (MQTT) Light/Switch (Sonoff-1)
      2017-04-06 06:31:12.789 (MQTT) Light/Switch (Sonoff-1)
      
      posted in OpenHardware.io
      warmaniac
      warmaniac
    • RE: 💬 Sonoff relay using MySensors ESP8266 wifi or mqtt gateway

      @Efflon said in 💬 Sonoff relay using MySensors ESP8266 wifi or mqtt gateway:

      @warmaniac the sonoff works just like any sensor except its configured as a gateway since that is what is needed for esp8266+mysensors . Mqtt or ethernet/wifi is just a matter of taste and your setup, skip mqtt if you don't have anything else using it.

      I want to use standalone Sonoff (one device) than I must install broker (Mosquito) on my raspberry where is Domoticz running ? And how can I add than that device or how can this setup looks like.

      posted in OpenHardware.io
      warmaniac
      warmaniac