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!
  • Total Noob to mysensors Looking at feasibility of a project

    15
    0 Votes
    15 Posts
    3k Views
    Danton BarnesD
    @mfalkvidd Very cool. I'm not looking at more than that so the setup I have in mind should work. Thanks for the help! I'll probably bug you guys more in April-May when i get back home.
  • Inserting custom data into payload bytes

    12
    0 Votes
    12 Posts
    2k Views
    mfalkviddM
    @eporocrail very nice, great work! Thanks for reporting back. You might know this already, but it is possible to run the Wemos at 160MHz instead of default 80MHz. Not sure if you need it or if it helps, but it might be good to know. Just select the higher frequency in the Tools menu in Arduino IDE.
  • Implementing controller for Serial Gateway

    1
    0 Votes
    1 Posts
    567 Views
    No one has replied
  • MQTT gateway on Raspi

    2
    0 Votes
    2 Posts
    659 Views
    eporocrailE
    I installed the MySensors gateway on Rasp3. I attached two clients, one on Nano and one on Mega. Both clients are incorporated into the radio network correctly. I have a simple "door" sketch on the clients. By closing a contact a simple message is transmitted. Using the gateway in debug mode before install shows that these messages arrive at the gateway correctly. After install I do not know how to see if messages are still arriving at the gateway. I assume this will be OK. Configuring MQTT gateway with IP-Address 172,0,0,1 and debug. Testing with two separate terminal sessions shows that mosquito is working OK. In Terminal window 1 type: mosquitto_sub -t -v rocnet/rs. In Terminal window 2 type: mosquitto_pub -d -t rocnet/rs -m "Hello from Terminal window 2!" The message pops up in the first terminal. Now closing the contact on a client should provoke the gateway to publish a message in topic rocnet/rs. No message pops up on the subscription terminal. I do not see where the Logfile of the gateway resides. So I am stuck debugging. Some body any idea how to proceed?
  • Arduino Mega to control sensors

    3
    0 Votes
    3 Posts
    693 Views
    eporocrailE
    Thanks for the reply. With me it ONLY WORKS if CE is connected to pin D2 of the Arduino Mega. Several other pins did not work. Took quite some time to figure this out.
  • This topic is deleted!

    1
    0 Votes
    1 Posts
    49 Views
    No one has replied
  • MQ 135 will not send data

    4
    0 Votes
    4 Posts
    1k Views
    F
    What controller to you use? Yes, that is the row. But I don't have 2.0 myself so I don't know how to use that row when sending data to controller
  • Is it possible to use Arduino or ESP8266 Module as Controller ?

    3
    0 Votes
    3 Posts
    998 Views
    AttiqA
    @hek But Gateway can not satisfy the internal commands like get time etc. am i right?
  • DoubleWaterMeterPulseSensor on 1 Node v2.0

    3
    0 Votes
    3 Posts
    1k Views
    T
    @mfalkvidd Thank you for reply! I'm trying this before, when I change it to define PULSE_FACTOR 1000 I get this red line in the code; attachInterrupt(digitalPinToInterrupt(HW_DIGITAL_INPUT_SENSOR), onPulse, FALLING); attachInterrupt(digitalPinToInterrupt(CW_DIGITAL_INPUT_SENSOR), onPulse, FALLING); C:\Users\Барков\Desktop\_2WaterMeterPulseSensor\_2WaterMeterPulseSensor.ino: In function 'void setup()': _2WaterMeterPulseSensor:105: error: 'onPulse' was not declared in this scope exit status 1 'onPulse' was not declared in this scope ```
  • virtual reset

    1
    0 Votes
    1 Posts
    548 Views
    No one has replied
  • Node signal strength reporting to controller

    1
    0 Votes
    1 Posts
    782 Views
    No one has replied
  • Node to node communnication in v2.0 between repeater nodes

    10
    0 Votes
    10 Posts
    3k Views
    mfalkviddM
    @Jeff the cleareeprom sketch only clears addresses up to (excluding) the local config, so the area where custom config is stored is not affected.
  • 1.5.4 and 2.0 on the same computer

    4
    0 Votes
    4 Posts
    1k Views
    B
    @gloob thanks for the hint. I've done this today. Renamed the Mysensor files (added an 'X' at the end of every .h and .cpp files) and dependencies insides these files and everything compiles again under 1.5.4, so next thing is to install 2.0. BR, Boozz
  • 2 or more DHT22 - Sensors on one Arduino pro mini

    8
    0 Votes
    8 Posts
    3k Views
    turborickT
    @korttoma I'll try and add to Vera tomorrow
  • ESP8266 as WiFi gateway that posts to Thingspeak

    6
    1 Votes
    6 Posts
    3k Views
    LendogL
    I've created a new branch at https://github.com/Lendog/Mysensors-ESP8266-Wifi-gateway-post-to-thingspeak/tree/My-sensors-library-2.0 I feel a bit slack not properly testing it yet and putting it online, but it compiles fine just haven't loaded it on or tested with sensors. Might need to look into updating a sensor or 2 to run on the new libary
  • [solved] Gateway and node communication failing

    3
    0 Votes
    3 Posts
    1k Views
    A
    @scalz Sorry for my delay to answer you. Well, I have made many tests and found out that there were some issues with my radios, so I put the capacitor today and it worked! :) Thanks for trying to help me.
  • Lots of errors when trying to compile example sketch

    3
    1 Votes
    3 Posts
    826 Views
    mfalkviddM
    The easiest way to install the MySensors library is to use the Board Manager. See https://www.mysensors.org/about/arduino#installing-the-sensor-libraries for instructions. You'll need to delete the folder that was added manually first though.
  • Run a script when virtual button is pushed

    6
    0 Votes
    6 Posts
    2k Views
    W
    @BartE How do you record an IR in Domoticz? Can you explain in detail please? I tried several things bit can't get it working.
  • Gateway to hands out node ID's

    11
    0 Votes
    11 Posts
    3k Views
    hekH
    You can see at how incoming PING requests sends a message back to the requesting node. So... something like this: (void)transportRouteMessage(build(_msgTmp, sender, NODE_SENSOR_ID, C_INTERNAL, I_ID_RESPONSE).set(currentID));
  • A nEw aPProach to connection failures - FOREVER!!

    1
    0 Votes
    1 Posts
    523 Views
    No one has replied

12

Online

11.7k

Users

11.2k

Topics

113.1k

Posts