Skip to content

Development

Discuss Arduino programming, library tips, share example sketches and post your general programming questions.
1.5k Topics 13.5k Posts

Subcategories


  • 56 578
    56 Topics
    578 Posts
    HJ_SKH
    Hi2All! Surprising is here. After about 24hours I refresh HA and suddenly my motion sensor was integrated. There is also second entity > battery : 0 , have to look deeper into that for understanding. Need to change little in the sketch, because don't want every short time 'no movement' so only when there is motion and maybe once a hour indication sensor is alive. Meantime I found 3 other good threats: https://forum.mysensors.org/topic/11200/finally-progress-evidence-based-radio-testing-method-and-capacitors https://forum.mysensors.org/topic/1664/which-are-the-best-nrf24l01-modules/27 https://forum.mysensors.org/topic/9550/build-a-reliable-power-supply-chain Very usefull for me also finally progress because of lacking time in the past. Great jobs are done here! Thanks for this all of you guys or girls!
  • RS485 FOTW! (Firmware over the wire)

    dualoptiboot rs485 fotw otw
    1
    2
    5 Votes
    1 Posts
    911 Views
    No one has replied
  • Trying to bitbang i2c oled screen, using SSD1306Ascii library

    12
    0 Votes
    12 Posts
    2k Views
    alowhumA
    For anyone finding this: I got that 'smart' LCD screen that can be controlled with serial commands. It's awesome! The screen now displays a bar graph for all 6 moisture sensors (irrigation controller).
  • ESP8266 gateway + WebServer = Awesome!

    33
    7 Votes
    33 Posts
    12k Views
    mfalkviddM
    @pihome I have a sketch at https://github.com/mfalkvidd/Arduino-Datormagazin-Pomodoro/blob/datormagazin/Arduino-Datormagazin-Pomodoro.ino but I think it is easier to just follow the instructions in the wifimanager readme.
  • API, Documentation and examples

    11
    0 Votes
    11 Posts
    3k Views
    mfalkviddM
    @alowhum MySensors allows customization, which unfortunately makes it very hard to describe the order. An attempt has been made in https://github.com/mysensors/MySensors/issues/927 but we have not found a clear way to document it.
  • Multirelay for Home Assistant

    1
    0 Votes
    1 Posts
    600 Views
    No one has replied
  • Temperature + Humidity with OLED

    3
    1
    1 Votes
    3 Posts
    2k Views
    T
    @mfalkvidd hmm, that’s a nice suggestion... I don’t have motion sensors where they are but maybe I can integrate it on the actual node... Will give it some thought. Thanks! :D
  • sleep mode not working as expected...

    sleep time pulsecount interrupts
    4
    0 Votes
    4 Posts
    1k Views
    mfalkviddM
    @rmh yes millis is frozen during sleep. On the atmega328 (which pro mini is based on), sleep uses the watchdog to keep time. No interrupt is involved.
  • Read own node-ID

    3
    0 Votes
    3 Posts
    631 Views
    AndurilA
    thanks a lot
  • remote control design idea

    4
    0 Votes
    4 Posts
    933 Views
    K
    Why sleep? Switch it completely off. Use button with two pairs of contacts. One pair on each button connect battery + pole with processor power pin. Second pairs to different inputs pins. You push button, processor will start execute program, immediately read inputs status, then send command and when you release button, it will be switched off. If you need longer processing time and do not want hold button all this time, then processor can hold power itself by logical output with connected transistor. When work will be done, then switch itself off. Your car remote key works the same way.
  • [Help] - Improvement for Multisensor sketch

    5
    0 Votes
    5 Posts
    1k Views
    rejoe2R
    @ruric For usage of interrupts see the Pulse-Meter (Water/Engergy) examples in Mysensors. As your sensor is not sleeping and has no longer blocking phases, usage of interrupt functionality for door or motion is not necessary. Combined Temp/Humidity: BME280 or SI7021, Temp alone: DS18B20.
  • 1 LED strip node and 2 dimmer nodes

    3
    0 Votes
    3 Posts
    753 Views
    vladimirV
    @tsjoender Thanks for the advice! I'll try to implement the second option.
  • Using the F macro in the presentation function

    6
    0 Votes
    6 Posts
    1k Views
    mfalkviddM
    @alowhum yes that is correct
  • RGB LED strip (share your code)

    1
    0 Votes
    1 Posts
    962 Views
    No one has replied
  • mqtt gateway qos

    1
    1 Votes
    1 Posts
    526 Views
    No one has replied
  • Multirelay sketch-help with modification

    1
    0 Votes
    1 Posts
    568 Views
    No one has replied
  • GUVA-S12SD UV sensor sketch made, hope to get response and help others

    2
    0 Votes
    2 Posts
    695 Views
    berkseoB
    @tonbor And where is the sketch? :) It's a simple analog sensor. Examples: http://arduinolearning.com/code/arduino-guva-s12sd-uv-sensor.php or: https://github.com/ma2shita/GUVA-S12SD
  • 0 Votes
    6 Posts
    1k Views
    N
    After a long troubleshooting (and thanks to the DEBUG activation) I think I have found at least one problem: the DHCP lease renewal was interfering with correct ESP8266 operation. Every time the router renewed the lease the board was unable to report/reconnect correctly to the MQTT Broker. I have also discovered that in some occasions even though the connection between Gateway and Broker was re-established correctly, the Controller was not acknowledging data received from Broker. In that case a simple “reboot” of the controller was sufficient to establish a new connection. (with Domoticz it was a simple matter of disabling and then enabling the MySensors Hardware). With a DHCP Lease Time set to “Infinity” this specific problem has disappeared, but I still feel the project is quite unstable: I will continue working on it with “debug mode” and hopefully I will write an update on my findings. Thank you once again for the precious support!
  • Having an issue with message signing.

    1
    1 Votes
    1 Posts
    691 Views
    No one has replied
  • Change the password after the Pi Gateway is already compiled?

    4
    0 Votes
    4 Posts
    570 Views
    gohanG
    You could distribute not compiled and use a script that changes the password and then compiles the gateway
  • Make node look for new/better parent without restarting

    8
    0 Votes
    8 Posts
    2k Views
    H
    Sorry I haven't gotten back to you, been a busy week. The MY_TRANSPORT_MAX_TX_FAILURES seems to do the job perfectly, I adjusted it down to 1 for the node, and resend the message a couple of times if it fails. Thank you for your support :) Also thanks to berkseo, your code also works for me, but I do prefer the built in way now that I know of it. Less code for me to write and maintain :)

10

Online

11.7k

Users

11.2k

Topics

113.0k

Posts