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!
  • ESP8266 + NRF24L01+ repeater node

    1
    0 Votes
    1 Posts
    2k Views
    No one has replied
  • Reading message from principal sketch.

    4
    0 Votes
    4 Posts
    1k Views
    hekH
    Ok, the use the development branch. And something like: MyMessage msg(1,V_TEMP); int temp; void presentation() { present(1,S_TEMP); } void loop() { temp = READ_TEMP_FROM_SOME_SOURCE; if (temp>25) send(msg.set(temp)); wait(10000); }
  • 0 Votes
    4 Posts
    2k Views
    sundberg84S
    No clue :(
  • Combining Adafruit FONA library with MySensors

    9
    0 Votes
    9 Posts
    3k Views
    GertSandersG
    That simplifies my issue. I was trying (and now succeeded) to handle 160 char SMS messages (with DEBUG off), but the payload of S_INFO is the limiting factor. So now I can use a 30 char buffer AND keep DEBUG on, which is better for development. I will try to set up to git on dropbox, it is indeed transparent for my PC, not so sure about the Mac. And I still need to do the writeup for connecting the NRF24 directly to the Raspberry as a gateway :-)
  • ESP8266+ARduino as Gateway

    2
    0 Votes
    2 Posts
    1k Views
    YveauxY
    @gopal_N Apart from the question why you would choose such a setup, it can be done by programming the Arduino as serial gateway and using the ESP8266 as serial-to-WiFi bridge.
  • wirte your own protocol / MySensor.h

    2
    0 Votes
    2 Posts
    1k Views
    hekH
    Hmm. that should't be included at all for MQTT gateways. Thanks for spotting. Or maybe I misunderstand what you're trying to do.. Please open a chat.
  • Greenhouse controller

    7
    0 Votes
    7 Posts
    2k Views
    A
    @Oitzu Well, What I want to do is; Make gateway my controller ( intend to use arduino yun), the reason for that is none of the controllers fit my need, which is I want to automate hydroponic greenhouse and it is something like this ; https://www.youtube.com/watch?v=-IfvbrZJ4sY I want to ask again " How do I pull data to use in my controller code in gateway instead of forwarding to Raspberry PI. Can you help me with a simple code showing how it can be done?".
  • Gateway and Sensors are not connecting

    3
    0 Votes
    3 Posts
    1k Views
    J
    Ok thank you very much! You were right. Today my Caps came and now it's working perfect! :heart_eyes:
  • 0 Votes
    3 Posts
    2k Views
    hekH
    Ok ;) Looked at the code earlier but couldn't find anything wrong.
  • 0 Votes
    5 Posts
    2k Views
    P
    Been trying to combine servo and light sensor, but running into a few kinks with the sketch. Any chance you could post your finished work? Thanks in advance. -Patrick
  • ESP8266

    4
    0 Votes
    4 Posts
    2k Views
    YveauxY
    @Lars65 aha! Great to hear you're enthusiastic about the site and MySensors development! I totally share your enthusiasm :-)
  • gw.powerUp(); deprecated?

    2
    0 Votes
    2 Posts
    1k Views
    hekH
    That worked previously because the MySensors class inherited RF24. In 1.5 you can initialise a radio driver which has a sleep method that calls powerDown() (in the RF24 case). The radio automatically wakes up when sending a new message.
  • Domoticz 4 x relay

    6
    0 Votes
    6 Posts
    5k Views
    R
    @TheoL Thank you very much, really helped me, now the program code work :smile:
  • Power Meter Pulse Sensor : Help with example script?

    2
    0 Votes
    2 Posts
    1k Views
    epierreE
    some posts from Domoticz: https://www.domoticz.com/forum/viewtopic.php?f=42&t=7282 V_VAR1 https://www.domoticz.com/forum/viewtopic.php?f=42&t=8229 http://www.domoticz.com/forum/viewtopic.php?f=21&t=5027&start=60 V_TEXT http://domoticz.com/forum/viewtopic.php?t=6517&p=52663
  • [NOOB] Nodes communication when gateway is down

    1
    0 Votes
    1 Posts
    801 Views
    No one has replied
  • SerialGateway can't send to nodes via rules or Serial Monitor

    18
    0 Votes
    18 Posts
    4k Views
    J
    @jgporteous said: 101;4;1;0;3;0 Added ACK to one of my senors, node sending values correctly, but ACK failing. I've bumped up the CAP on the gateway to 330uF and no change :( I also dropped bandwidth to 250Kbps and power to low, no change either.
  • gw.sleep and debounce?

    4
    0 Votes
    4 Posts
    3k Views
    AWIA
    @TheoL a simple capacitor to ground is sufficient in most cases. If you use the Arduino internal pull-up a you only need a capacitor of around 300 nF to 1 uF.( the "100" value in the schematic) [image: 1443440763506-upload-53d39f96-249f-4900-b3b0-8cf81b7e09cc]
  • implementing multiple sensors

    83
    1 Votes
    83 Posts
    87k Views
    John ConnollyJ
    I think my biggest challenge is understanding when to combine the additional sensor in the main loop or when to put it in another. The whole idea of interrupts is baffling to me too.
  • Generic Temperature/repeater node

    9
    0 Votes
    9 Posts
    5k Views
    B
    It drives me crazy! The oldest part of the house pre-dates 1650 and was built to last. I have 4 wifi points hard-wired in as wifi will only reach the next room. On the plus side, it's cool in summer and warm in winter ;)
  • Software initiated reboot of Mega does not work

    1
    0 Votes
    1 Posts
    696 Views
    No one has replied

22

Online

11.7k

Users

11.2k

Topics

113.0k

Posts