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!
  • I am in need of some programming help.

    5
    0 Votes
    5 Posts
    209 Views
    skywatchS
    @bc123 Read and understand the posting rules here. I know this is your first post here... but how is that? How did you find your last 'programmer' for mys if not here> Just curious. Post code in code tags (as per the instructions) - i.e. choose the </> in the options above. Then paste 'your' code (if the original code is under any NDS or copyright then you do so at your own risk). Pictures of the wiring, as installed and wiring diagrams. Oh, and a full spec of what you expect and how it is all supposed to work would be a good start. Seasons greetings all the same to you.! ;) I'm off to drink more alcohol than any sane person would.... :) - Apparently it is 'that' time of year.
  • Power ON node

    8
    0 Votes
    8 Posts
    477 Views
    A
    @tbowmo Thank you, supercap idea works fine, my first experience with supercaps.
  • WDT or internal heartbeat

    2
    0 Votes
    2 Posts
    194 Views
    mfalkviddM
    @apl2017 most MySensors nodes are battery-powered and sleep to conserve power, which means they aren't "on". With that said, most examples transmit on regular intervals. The interval is configurable, so you can set it to a short interval if you are not concerned with battery consumption.
  • This topic is deleted!

    1
    0 Votes
    1 Posts
    1 Views
    No one has replied
  • Sleep

    3
    0 Votes
    3 Posts
    276 Views
    J
    Thanks I will try
  • Sending custom messages from a Raspberry Pi Gateway to Arduino node

    3
    0 Votes
    3 Posts
    251 Views
    monteM
    If you compile Mysensors for Raspberry Pi as an ethernet gateway, you will be able to send commands to a socket on an IP of your Raspberry. You can use netcat command, or a python script, as described here: https://forum.mysensors.org/post/88439 This way, you won't need any controller software, if you are not planning anything big.
  • Launch a function instead of control a relay, is it possible ?

    2
    0 Votes
    2 Posts
    193 Views
    alowhumA
    Sounds possible. Just try it, and enjoy learning.
  • Depreciated Code

    3
    0 Votes
    3 Posts
    300 Views
    F
    @mfalkvidd , I see. That makes sense, thanks.
  • Function to wait for software ACK

    1
    1 Votes
    1 Posts
    169 Views
    No one has replied
  • Understanding, c++ & MySensors lib

    1
    0 Votes
    1 Posts
    229 Views
    No one has replied
  • 0 Votes
    3 Posts
    310 Views
    M
    @mfalkvidd Use the W5100 module instead (if you need ethernet) Good idea, thanks! Same code, but only W5100 based: Sketch uses 17190 bytes (...) Global variables use 853 bytes (41%) Using W5500 ( Ethernet2.h ) gives even better: Sketch uses 14712 bytes (...) Global variables use 809 bytes (39%) If you don’t need ethernet, use usb or wifi since those options also use less ram. I need some kind of 25m wire so options are ethernet, RS-485 or PJON
  • MySensors 2.3 and RFM69 new driver. Problems and solutions

    10
    5
    11 Votes
    10 Posts
    4k Views
    R
    @robvk said in MySensors 2.3 and RFM69 new driver. Problems and solutions: #define MY_PASSIVE_NODE Oh no I totally missed this line! This statement disables ACK and other transport-related stuff. Case closed.
  • [SOLVED] Error building ESP32 node: multiple definition of `app_main'

    9
    0 Votes
    9 Posts
    2k Views
    dsieeD
    Just to add for those using Arduino IDE, downloading the latest development version of MySensors fixes the same issue. Just go to https://github.com/mysensors/MySensors and hit "Clone/Download Zip", Download the zip then add to Arduino (Sketch -> Include Library -> Add .Zip Library then select the zip you downloaded). You may need to delete the old library folder from Documents\Arduino\libraries to ensure the new version is used. This will be fixed with MySensors 2.3.2.
  • WS2812B neopixel sketch help

    6
    0 Votes
    6 Posts
    364 Views
    YveauxY
    @grumpazoid If you need inspiration, I wrote a number of sketches used in the MySensors Dollhouse setup, e.g. the Fireplace sketch. They can be found here: https://github.com/Yveaux/Dollhouse_sketches
  • irq pin for nrf24l01

    14
    1 Votes
    14 Posts
    5k Views
    mfalkviddM
    @zen85 unfortunately not. See https://www.mysensors.org/apidocs-beta/group__RF24SettingGrpPub.html#ga6b3dbadceeb1dfca62b2e920d926bd4a for details (MY_RX_MESSAGE_BUFFER_FEATURE section)
  • How can I monitor the humidity of a wall (house)

    17
    0 Votes
    17 Posts
    961 Views
    AffordableTechA
    Hi @pierrot10 and others, Sorry, I was called away unexpectedly... I've had no experience using nails other than testing the gyprock ones in the link I sent. I think your idea of 9 pairs spread across the wall is excellent as the key data you seek is the moisture source and how it progress across the wall. You can just connect the 9 sensors to one of those analog switch modules and the Feather and start logging data. You biggest problem will probably working out the distance between the 2 nails. Once it setup (in summer), you can make sure they all read the same value by a software 'calibration value' for each pair. I'd also suggest putting a newer BMP680 device in the room, perhaps 3" to 6 " away from the wall, just to have a temp, humidity and barometric pressure. I don't know exactly what it my tell you, but one thing I have learned is 'data is like money', there is no such thing as too much! (especially when you only get one shot at it a year). I think your chances of success look good as long as the distance between the two nails give you a sufficient data range. Good luck, and I look forward to reading how it turns out. Paul
  • 0 Votes
    11 Posts
    359 Views
    T
    @electrik Oh yes, that did the trick. Thank you so much
  • Sketch kills batteries in 2-3 days

    8
    0 Votes
    8 Posts
    477 Views
    tbowmoT
    @wahid As an example, I have 4 sensebender micros, which has been deployed since june 2015, I have not changed batteries in them yet, and they still report temperature / humidity (that's more than 4 years battery life!). The batteries are cheap AA alkaline types (2 pieces).. I'm not doing anything special (hardware wise) to power off the radio, or any other peripherals on the board. Only using standard software powerdown where available.
  • MySensors on ATTiny84 and RFM69CW

    4
    0 Votes
    4 Posts
    633 Views
    B
    @nca78 said in MySensors on ATTiny84 and RFM69CW: Hello, you should not use delay() with MySensors but wait(), which will poll the NRF24 regularly to receive incoming messages. You are surely right, that using delay isn't normally a good idea for a MySensors program. In my case I only want to implement a passive node to measure temperature and humidity. So my program don't wait for any incoming messages and delay wouldn't be a problem for this reason. But for the final version delay wouldn't be a good solution for another reason: battery life. But I have now a working sleep function for the ATTiny84 which needs only approximately 6µA during sleep. In the meantime I found the reasons for my problems. My program just uses to much RAM (only 512 Byte on ATTiny84 available), so the stack destroys other variables and the program behaves strange. But I now found a solution for a working passive MySensors Node for temperature and humidity on ATTiny84 with RFM69 radio module and the BME280 as temperature/humidity sensor. I will show my solution here anytime soon, maybe it is of interest for others who try something similar.
  • Raspberry pi Arduino RS485 MQTT gateway

    4
    0 Votes
    4 Posts
    579 Views
    mfalkviddM
    @malaki86 if you don't want to use a MySensors device for mqtt, I don't think you'll find a complete tutorial. But people have connected MySensors devices to nodered, and nodered can speak mqtt I think. A possible strategy could be to create a rs485 raspberry pi gateway https://www.mysensors.org/build/raspberry Add MySensors nodes to the rs485 network Connect the gateway to nodered Connect nodered to mqtt Alternatively, you can make the raspberry pi gateway use mqtt directly.

26

Online

11.7k

Users

11.2k

Topics

113.1k

Posts