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!
  • 0 Votes
    4 Posts
    768 Views
    scalzS
    Hi, when using smartsleep parameter of sleep(), a msg is sent before (and after): I_PRE_SLEEP_NOTIFICATION I_POST_SLEEP_NOTIFICATION https://www.mysensors.org/apidocs/group__MyMessagegrp.html#ggaa6f265dd19e9cad90979fef252e17a87a105639edd79e6f1d0104986aa6370de7 https://github.com/mysensors/MySensors/blob/af3452f91c15b60cc7666b6225fa7342f08a6f52/core/MySensorsCore.cpp#L595 https://github.com/mysensors/MySensors/blob/af3452f91c15b60cc7666b6225fa7342f08a6f52/core/MySensorsCore.cpp#L647
  • Gateway Ack Message

    6
    0 Votes
    6 Posts
    2k Views
    mfalkviddM
    @monte yeah, I will have to go back to that thread again and read it thoroughly if I ever need to implement something that requires reliable messages.
  • Geeetech® Voice Recognition Module

    7
    1 Votes
    7 Posts
    1k Views
    K
    @mister_ik You can use something like this - it works with a lot of languages http://voxcommando.com/home/
  • nRF24L01+ MQTT

    13
    0 Votes
    13 Posts
    4k Views
    Nca78N
    @gohan said in nRF24L01+ MQTT: I don't know much about the 1Mhz, but I read quite some times it can give problems. It can give problems to speed/time accuracy related stuff, like driving neopixels or sensors with bit-banging and need for very precise pulse duration. For sending messages with a NRF24 it has never been a problem for me. It can also be a problem ... with serial. @TimDe is debug set in your MyConfig.h file ? and what baudrate is set for serial ? Can you try to set baudrate to 9600 as 1MHz with internal oscillator you can't go faster than that reliably, maybe your node is trying to write something on serial too fast for what it can handle ? Try to put the 100nf ceramic caps first (between gnd/avcc and gnd/vcc), that will close one possibility. Can you get a debug log on the mqtt gateway to see the content of the MySensors messages it receives from the node ?
  • Help on ideias for code

    3
    1 Votes
    3 Posts
    601 Views
    SoloamS
    That is it! Thank you!
  • Redefinition warning when Compiling for RFM69W-915 Radio

    4
    0 Votes
    4 Posts
    695 Views
    mfalkviddM
    @johnrob exactly. All MySensors defines are designed that way.
  • RFM69HW in MySensors 2.2.0

    2
    0 Votes
    2 Posts
    505 Views
    JohnRobJ
    I had asked the same question but before V2.2.0 See this post: RFM69
  • LCD Node scanner

    3
    3 Votes
    3 Posts
    3k Views
    I
    @johnny-b-good do NOT give up please :smile: This is very interesting, I'll try to study your code. It would be very useful if I could list all RF24 devices registered in the network on the same channel. I assume (as did not read your code yet) you're only listing the nodes transmitting to the scanner. I'll have a look to this by all means! Thank you.
  • Template sketch for flexible use with many different sensor types

    7
    2 Votes
    7 Posts
    2k Views
    wesW
    Have a look at https://github.com/mysensors/NodeManager/ (I think this only became available since the last reply in this thread).
  • Cannot get Sensebender_GW / W5100 to connect to router.

    9
    0 Votes
    9 Posts
    1k Views
    gohanG
    It works the same as a node, just don't use delay and sleep in code but use only wait() at the end of loop if you don't want to flood the controller
  • 0 Votes
    4 Posts
    890 Views
    P
    Have a look at youtube and look for Paul McWhorter. He has 25 excellent newbie Arduine lessons.
  • gateway on hass.io - not getting the sensors

    6
    0 Votes
    6 Posts
    2k Views
    hautomateH
    @giorgio-gilestro said in gateway on hass.io - not getting the sensors: Not sure how to intercept the serial log from the gateway, though. I've used socat for this purpose in the past but I doubt I can do from within a hassio instance. I think you can see that if you SSH to the host. https://home-assistant.io/developers/hassio/debugging/
  • RFID 522 With added relays for Lighting

    5
    0 Votes
    5 Posts
    1k Views
    ranseyerR
    Hi @MGHaff , is it possible that you share the latest Code ? Thanks in advance...
  • Imperial Units

    4
    0 Votes
    4 Posts
    946 Views
    Ryan DickR
    @timo Thank you this worked. The problem was I didn't even have the mysensors bindings installed and had got it working a different way (told you I'm a newbie lol). After getting it properly set up with mysensors binding it is working and much easier to manage.
  • MyS Network Scanner (4 sec.)

    10
    2 Votes
    10 Posts
    3k Views
    berkseoB
    @gohan The encrypted network on radio modules nrf24 .. is recognized, the channel is determined
  • Which optiboot?

    3
    0 Votes
    3 Posts
    709 Views
    gohanG
    I choose the sensbender bootloader from arduino ide
  • Arduino mini pro 3.3 battery optimization code

    23
    0 Votes
    23 Posts
    3k Views
    T
    @korttoma Thank you very much, and sorry....
  • Gateway and Python are fighting over access to the GPIO?

    1
    0 Votes
    1 Posts
    380 Views
    No one has replied
  • Programming needed to enable RFM69 radio with 5100 ethernet code.

    7
    0 Votes
    7 Posts
    1k Views
    korttomaK
    As far as I know all the radio pins have some kind of "default" pin assignment and only in special cases you need to reassign them. Also depending on the processor type or board type you choose in the tool the default pin assignment may differ. I think it in case of RFM69 is handled in the RFM69_old.h (someone with better knowledge please correct me if I am wrong).
  • Getting values from outside my nodes

    9
    0 Votes
    9 Posts
    1k Views
    berkseoB
    @crankycoder I do not know if I understood you correctly ... void request (uint8_t childSensorId, uint8_t variableType, uint8_t destination); Suppose you have a node with ID 100 sends request (1, 24); (= request (1, 24, 0)) This means that the node with ID 100 requests the information with the last value for sensor 1 with the type VAR1 that is on the controller for the node with ID 100. (not at sensor 1 on the gateway (ID 0) Ie at such request of a node with ID 100 requests value as though at itself (that last value which is on the controller). request (1, 24); request (1, 24, 0); It is the same. ps/// I understood :) .. on OpenHub there is no implementation of the MySensors module

12

Online

11.7k

Users

11.2k

Topics

113.0k

Posts