Navigation

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

    Topics created by A3V

    • A3V

      DS18B20 ESP32 nodemanager problem
      NodeManager • temperature ds18b20 esp32 node manager • • A3V  

      2
      0
      Votes
      2
      Posts
      23
      Views

      A3V

      Updated the ESP-IDF from 4.4.0 to latest 5.1.1 and rebuild. Framework updated automatically to framework-arduinoespressif32 @ 3.20004.220825 (2.0.4) Test with 2 sensors on the same pin : Works fine. However there are two no blocking error messages: E (1275) gpio: gpio_isr_handler_remove(480): GPIO isr service is not installed, call gpio_install_isr_service() first Complete startup messages: 163 MCO:BGN:INIT GW,CP=R-NGF---,FQ=240,REL=255,VER=2.3.2 168 MCO:BGN:BFR 169 NM:INIT:VER=1.9-dev 171 NM:INIT:INO=Testcontroller v1.0 174 NM:INIT:LIB VER=2.3.2 CP=R-NGF--- 178 NM:BFR:INIT 1310 GWT:TIN:CONNECTING... 1313 GWT:TIN:IP: 192.168.68.28 1317 MCO:BGN:STP 1335 NM:STP:ID=0 M=0 1340 NM:LOOP:RELAY(1):SET t=2 v=0 1359 NM:MSG:SEND(2) t=42 p=2864B875D0013C99 1392 NM:MSG:SEND(3) t=42 p=28920675D0013CB4 E (1275) gpio: gpio_isr_handler_remove(480): GPIO isr service is not installed, call gpio_install_isr_service() first E (1276) gpio: gpio_isr_handler_remove(480): GPIO isr service is not installed, call gpio_install_isr_service() first 1407 NM:STP:HW V=0 F=240 M=49480 1421 NM:LOOP:RELAY(1):SET t=2 v=0 3424 MCO:REG:NOT NEEDED 3426 MCO:BGN:INIT OK,TSP=NA 3429 NM:MSG:SEND(1) t=2 p=0 3968 NM:LOOP:2864B875D0013C99(2):SET t=0 v=22.75 4537 NM:LOOP:28920675D0013CB4(3):SET t=0 v=22.19 4542 NM:MSG:SEND(2) t=0 p=22.75 4545 NM:MSG:SEND(3) t=0 p=22.19
    • A3V

      hacking a Action Solar-light
      My Project • • A3V  

      3
      2
      Votes
      3
      Posts
      48
      Views

      electrik

      @A3V Great thanks I've also bought one and will add radios and sensors to it. Maybe I'll even make the light controllable from the arduino instead, or don't use the light at all. I paid 8€ for this complete light that gives a solar panel, battery and charging circuit. Buying the components is already more expensive I would say
    • A3V

      Is there a Gateway connection timeout?
      General Discussion • gateway • • A3V  

      2
      0
      Votes
      2
      Posts
      31
      Views

      mfalkvidd

      @A3V such a feature would definitely make sense now that gateways can have local sensors. But no-one has added it unfortunately. A solution could be to use the code at https://github.com/mysensors/MySensors/blob/2e00bf6a10f76d6aaa1999e12313237bc3edabd3/core/MyTransport.cpp#L446 as inspiration and do something similar at https://github.com/mysensors/MySensors/blob/2e00bf6a10f76d6aaa1999e12313237bc3edabd3/core/MyGatewayTransportEthernet.cpp#L175
    • A3V

      Nodemanager: How to control a local output from a local input?
      NodeManager • • A3V  

      2
      0
      Votes
      2
      Posts
      29
      Views

      A3V

      Reply to myself: Looking thought the sources and the forum found out that you can do this using hooks. so enabled hooking #define NODEMANAGER_HOOKING ON and added the reference to the hook to before. void before() { Tsensor.setMeasureTimerMode(TIME_INTERVAL); // set timer Tsensor.setMeasureTimerValue(1); // interval to 1 sec measurement Tsensor.setPostLoopHook(&myfirstHook); ..etc.etc... nodemanager.before(); } And finally the hook void myfirstHook(Sensor* sensor){ float temperature = Tsensor.children.get(1)->getValueFloat() Serial.println(temperature); if (temperature>setpoint) { if (Relay.getStatus()==OFF){ Relay.setStatus(ON); // switch off } } The error that I got initially was caused by using the wrong child: 0 (it starts from 1). I wonder if it is possible to do interval < 1 second?