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!
  • Battery percentage incorrectly send to gateway.

    6
    0 Votes
    6 Posts
    3k Views
    P
    Ok... resistors are switched place , problem solved ;-) make a big difference offcource. send: 1-1-0-0 s=255,c=3,t=6,pt=1,l=1,sg=0,st=ok:0 read: 0-0-1 s=255,c=3,t=6,pt=0,l=1,sg=0:M sensor started, id=1, parent=0, distance=1 send: 1-1-0-0 s=255,c=3,t=11,pt=0,l=13,sg=0,st=ok:Battery Meter send: 1-1-0-0 s=255,c=3,t=12,pt=0,l=3,sg=0,st=ok:1.0 934 Battery Voltage: 3.14 V Battery percent: 93 % send: 1-1-0-0 s=255,c=3,t=0,pt=1,l=1,sg=0,st=ok:93
  • RPI + nrf24l01 direct + mosquitto

    1
    0 Votes
    1 Posts
    838 Views
    No one has replied
  • DHT22 lib working on 1Mhz?

    15
    0 Votes
    15 Posts
    7k Views
    T
    Have a look at the sensebender sketch http://www.mysensors.org/hardware/micro#example-sketch if ((measureCount == 5) && highfreq) { clock_prescale_set(clock_div_8); // Switch to 1Mhz for the reminder of the sketch, save power. highfreq = false; } The clock frequency is scaled down by software.
  • ESP8266 as gateway

    5
    1 Votes
    5 Posts
    3k Views
    E
    A great resource to have when working with the ESP8266: http://neilkolban.com/tech/esp8266/
  • Low Power shutdown mode?

    13
    0 Votes
    13 Posts
    5k Views
    B
    SO an update, I connected a 10Mohm Resistor and my current draw is only 3.1-3.2uA when the switch is engaged and 2.7-2.8uA when the switch is removed. I think that is really livable numbers. So far not getting any false positives which is great. :)
  • Relay with actuator standalone functionality with no Gateway

    3
    0 Votes
    3 Posts
    2k Views
    DrJeffD
    @BulldogLowell Thanks I will give it a try!
  • This topic is deleted!

    2
    0 Votes
    2 Posts
    60 Views
  • Customizable Sonar Sensor

    4
    0 Votes
    4 Posts
    2k Views
    B
    ok thank you :)
  • API 1.5 backward compatibility?

    4
    0 Votes
    4 Posts
    2k Views
    T
    Ok, I figured it out. My issue was related to the change with respect to the message callback which has been introduced with 1.5. I had the callback method registered in the call to the begin method of the gateway node but also called it directly in the loop function as well. So this one has been fixed. Sorry, bothering you.
  • Errors compiling MQTTGateway

    3
    0 Votes
    3 Posts
    2k Views
    T
    Thanks a lot! Works now!
  • First node: nothing work

    16
    0 Votes
    16 Posts
    5k Views
    K
    Here are the specifications from the NRF24 without antenna http://www.nordicsemi.com/eng/Products/2.4GHz-RF/nRF24L01#Specification
  • Heartbeat signal

    11
    0 Votes
    11 Posts
    7k Views
    SparkmanS
    @hek Thanks!
  • Usage of Child IDs

    8
    0 Votes
    8 Posts
    4k Views
    JohnJ
    @joshmosh When a node presents it's sensors it sends out child id's. So the controller knows which child id's exist. When values are send to the controller this is in combination with the sensor child id. So the controller knows which value belongs to which child id's exist. If you then look at it pure from controller perspective it just sees multiple sensors. You can even put all your values within the same child id as long as the V_* types are unique used with that child id (do not use two V_TEMP values with the same child id).
  • error in communication

    1
    0 Votes
    1 Posts
    730 Views
    No one has replied
  • Protocol between node and controller: built-in reliability ?

    1
    0 Votes
    1 Posts
    779 Views
    No one has replied
  • RGB control

    2
    0 Votes
    2 Posts
    2k Views
    ChaoticC
    I made a night light for my son and just used V_VARs I used the fastLED library And this code to decode from 255,255,255 that I was sending from the controller https://codebender.cc/sketch:90239 Last time it came up http://forum.mysensors.org/topic/1148/need-help-with-turning-a-led-on-off-with-openhab-and-mqtt/4
  • how to get the controller to call on the phone in case of emergency?

    2
    0 Votes
    2 Posts
    1k Views
    H
    Check http://www.openhab.org/ifttt.html https://ifttt.com/android_phone
  • Has anyone upgraded from ManiacBug's RF24 library to TMRH2O?

    4
    0 Votes
    4 Posts
    3k Views
    hekH
    Last update was in september. https://github.com/mysensors/Arduino/commit/2fd948fc6667460961194040bef635d25b4dfd8b
  • Can I do all this without a controller?

    5
    0 Votes
    5 Posts
    2k Views
    hekH
    You don't need a controller. But it will be hard to squeeze in much more into the gateway (running on an ATMega328) and it won't be able to do any SSL encryption (which I imagine most people would want). So one of the best options is to run a light "controller" (on something that has a lilttle bit more horse power) which just forwards your sensor network data to the web service of preference. I imagine you would need to do some kind of re-mapping before posting the data as well.
  • Request data from another sensor?

    8
    0 Votes
    8 Posts
    4k Views
    DaLiD
    That totally makes sense. I have come to the conclusion that I will probably let my Vera push the info to the LCD node.

16

Online

11.7k

Users

11.2k

Topics

113.0k

Posts