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!
  • (Almost) Controller-Less MySensors switch/light network

    11
    0 Votes
    11 Posts
    3k Views
    N
    Catch it ! Thanks !
  • combining pulse counters

    19
    0 Votes
    19 Posts
    6k Views
    htcaH
    I finally built my set-up with the LDR (were lying in my working room for months...). Conclusion: it works!
  • GPS and GSM

    5
    0 Votes
    5 Posts
    2k Views
    mfalkviddM
    @gohan I use PubNub and MapBox. Example: https://www.pubnub.com/developers/eon/map/flight/ and https://github.com/pubnub/eon-workshop/tree/master/lesson3 Publishing to PubNub can be done directly from Arduino, either through MQTT or REST.
  • Including "MySensors.h" in multiple files

    9
    0 Votes
    9 Posts
    3k Views
    S
    You can also set #pragma once as the fist line of a header file to prevent multiple inclusions.
  • Setup Livolo branded RF433 switches with Arduino

    2
    0 Votes
    2 Posts
    969 Views
    blaceyB
    @Anderson-Chan https://forum.mysensors.org/topic/5719/livolo-eu-switch-mysensors-integration
  • Multi mysensor sketch help

    9
    0 Votes
    9 Posts
    2k Views
    rejoe2R
    @rob The weather station is not tested at all, just a collection of ideas and a lot of parts laying around for a long time already :disappointed: @gohan Thx for clarification wrt. to !sleep()!
  • RFM95 Sleep Mode

    6
    0 Votes
    6 Posts
    3k Views
    L
    @lafleur I have been using the transportinit() and transportpowerdown(), as suggested and it has been working fine if I was just sending data... But when I needed to receive data from the controller, I was never receiving any data from the controller, even if I allowed a RX window of 20 sec or more. On Wake up, If I remove the call to transportinit(), all work fine again... TX and RX work just fine... What going on here?? Why is system working without the need to call transportinit() as you suggested. using a SAMD processor M0 IDE 1.8.1 MySensor 2.1.1 My current code base: https://github.com/trlafleur/Soil_Moisture_Sensor_MS_R1.1-RFM95 /* **************** System Sleep ******************* */ void systemSleep() { debug1(PSTR("\n*** Going to Sleep ***\n")); wait (100); // put led's, radio and flash to sleep // Turn off LED's // Put Flash to sleep // Put Radio and transport to Sleep transportPowerDown(); // Shut down radio and MySensor transport interrupts(); // make sure interrupts are on... LowPower.standby(); // SAMD sleep from LowPower systems // .... we will wake up from sleeping here if triggered from an interrupt interrupts(); // make sure interrupts are on... } /* **************** System Wake-up from Sleep ******************* */ void systemWakeUp() { // re enable LED's if needed // wake up Flash if needed // wake up MySensor transport and Radio from Sleep //transportInit(); // as MySensor had NO sleep or Watch Dog for SAMD, this will // wake us up so that we can send and receive messages while (!isTransportReady()) { // Make sure transport is ready _process(); interrupts(); // make sure interrupts are on... }
  • interperating messages from controller

    6
    0 Votes
    6 Posts
    1k Views
    M
    I would just like to say a huge thank you to the both of you! Absolute legends! I am now sorted. Thanks again lads.
  • node disconnects - workaround?

    6
    0 Votes
    6 Posts
    1k Views
    FotoFieberF
    You can send heartbeats: https://forum.mysensors.org/topic/2267/ping-function/3
  • Load a variable of pimatic from a mysensor node

    1
    0 Votes
    1 Posts
    500 Views
    No one has replied
  • This topic is deleted!

    1
    0 Votes
    1 Posts
    3 Views
    No one has replied
  • Gas meter sensor

    3
    0 Votes
    3 Posts
    2k Views
    N
    My gas meter is with magnet
  • ESP8266 as node

    4
    0 Votes
    4 Posts
    2k Views
    gohanG
    Well, the problem with WiFi is that I don't like the reliability, it can be jammed, but it's much faster for doing ota
  • This topic is deleted!

    1
    0 Votes
    1 Posts
    15 Views
    No one has replied
  • Support for ARDUINO_SAM (e.g. ARDUINO DUE)

    9
    0 Votes
    9 Posts
    3k Views
    R
    What board do I pick in the Arduino IDE when I go to compile my code. It doesn't work if I pick DUE? Thanks.
  • Rs485 hardware serial collision detection library

    4
    1 Votes
    4 Posts
    2k Views
    gohanG
    I guess can bus could be a more standard solution for more robust communication
  • GatewayESP8266MQTTClient with realtime connection params

    8
    1 Votes
    8 Posts
    3k Views
    M
    Is the "bcn_timout,ap_probe_send_start ap_probe_send over, rest wifi status to disassoc" message is a known issue? I cant seem to find anything with this string when searching this forum...
  • 0 Votes
    4 Posts
    2k Views
    mfalkviddM
    @gogopotato it is done by the MySensors library
  • Node not sending updates, probably some problem with my sketch

    7
    0 Votes
    7 Posts
    2k Views
    AWIA
    @pansen something like that. The value overflows and then gets assigned.
  • Saving to EEPROM

    11
    0 Votes
    11 Posts
    2k Views
    AWIA
    @esawyja sorry... Also for the first sentence? Use byte (uint8_t) for all variables you need to store..

12

Online

11.7k

Users

11.2k

Topics

113.1k

Posts