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!
  • Why text-based communication???

    8
    0 Votes
    8 Posts
    2k Views
    4
    Hi, I've read it again... now I think I get it better. Your explanation for point 2 logic makes sense. Thanks for explaining that. Regards, Alex
  • Flopp's atmega328p-pu PCB

    5
    0 Votes
    5 Posts
    1k Views
    jamzmJ
    @gohan Thank you, sir.
  • 2 Votes
    2 Posts
    947 Views
    gohanG
    @berkseo good job. Also @user2684 is working on ways to do some configuration changes on the nodes without flashing them
  • Does this work on non-arduino boards?

    4
    0 Votes
    4 Posts
    877 Views
    ?
    @mfalkvidd Sorry, I am new to this forum and intended to ask this question in a different thread (New library to read Arduino VCC supply level without resistors... ). A new topic was created instead. Paai
  • receiving numbers bigger than unsigned long

    6
    0 Votes
    6 Posts
    1k Views
    YveauxY
    @Anduril said in receiving numbers bigger than unsigned long: uint64_t value; send(Mymessage.set(&value, sizeof(value) );
  • 0 Votes
    13 Posts
    3k Views
    gohanG
    yes, it requires the ip of the device running the ethernet gateway
  • Node with DS18B20+Relay dies, also with watchdog

    6
    0 Votes
    6 Posts
    2k Views
    YveauxY
    @sineverba See here (bit old, but most is still valid): https://forum.mysensors.org/topic/1004/watchdog-on-ethernet-gateway MySensors does globally define a watchdog interrupt handler (for sleeping nodes, but always present). Keep that in mind if you want to do something with the interrupt handler.
  • GatewayESP8266 compile error: request for member 'read' in 'source'

    5
    0 Votes
    5 Posts
    1k Views
    YveauxY
    @fkunzler MySensors development, Arduino IDE 1.8.1, ESP8266 2.3.0
  • How to implement whatchdog for Arduino Serial Gateway

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

    1
    0 Votes
    1 Posts
    25 Views
    No one has replied
  • Arudino Mega hangs when serial GW is down

    6
    0 Votes
    6 Posts
    1k Views
    archiijsA
    @Boots33 said in Arudino Mega hangs when serial GW is down: de should still attempt to connect even after it has moved on. I have similar experience, only restart allows connecting the node to the gateway. I have not done any testing, but I found it out after my wife unplugged gateway couple of times as it is still powered by AC USB charger in power strip.
  • OTA Programming over wire ? :-) (RS-485)

    3
    1 Votes
    3 Posts
    2k Views
    mickM
    Did you ever get this feature working on the RS485 transport @Redguy ? I'm also building a rs485 mysensors network and would love to know how you went.
  • C Definition in sketch to configure library

    6
    0 Votes
    6 Posts
    1k Views
    Robinek70R
    full test files File in path Arduino/Test/ //test.ino #define MY_RADIO_NRF24 #define MY_USE_ADC_FILTER #include <RPlib.h> void setup() { } void loop() { Serial.println(getAdc()); } Files in path Arduino/libraries/RPlib/ //RPlib.h #ifndef MY_ADC_PIN #define MY_ADC_PIN A0 #endif #define DT_FILTER 10 int getAdc(); //RPlib.cpp #include <RPlib.h> #include <Arduino.h> static int prevValue; int getAdc() { int value = analogRead(MY_ADC_PIN); #ifdef MY_USE_ADC_FILTER #error FILTER prevValue = (prevValue *DT_FILTER + value) / (DT_FILTER + 1); #else #error NO FILTER prevValue = value; #endif return prevValue; } I always got #error NO FILTER
  • HTTP request from gateway to controller

    8
    0 Votes
    8 Posts
    2k Views
    gohanG
    I hope you know some javascript, as it will be very handy with node-red
  • Mysensors si7021 sketch

    11
    0 Votes
    11 Posts
    2k Views
    Nca78N
    Hello, you are missing the sensor.begin() to initialize the sensor. Return value will tell you if initialization succeeded or not. if (!sensor.begin()) { #ifdef MY_DEBUG Serial.println("FAILED TO INIT SENSOR !!!!"); #endif ... }
  • Problems building a Raspberry Pi ethernet gateway

    3
    0 Votes
    3 Posts
    964 Views
    A
    Thanks so much for that, I did wonder. My nodes include a old SenseBender node and I don't have an easy means to update this, so looks like I'll go for the older version.
  • [SOLVED] MY_NODE_ID is ignored

    3
    0 Votes
    3 Posts
    2k Views
    K
    Ok, thanks.
  • NRF24L01 does not work on scene controller

    2
    0 Votes
    2 Posts
    690 Views
    J
    @Jean-Pierre-Rojas-Vanegas I already found a solition. By default, the MyConfig.h library sets CE, CS, to pins 9, 10, respectively. I simply have to manually set CE and CS on pins 17 and 18. When I connect the gateway, it assigns me an ID and shows me the image on the display.
  • 0 Votes
    1 Posts
    899 Views
    No one has replied
  • ESP8266 gateway using RFM95 LoRa

    5
    0 Votes
    5 Posts
    6k Views
    MiKaM
    @Uhrheber said in ESP8266 gateway using RFM95 LoRa: I already ordered this: https://github.com/hallard/WeMos-Lora And its working with mysensors and Domoticz ! ;)

27

Online

11.7k

Users

11.2k

Topics

113.0k

Posts