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!
  • Display Sketch Info for Relay

    2
    0 Votes
    2 Posts
    941 Views
    hekH
    On UI5 this information is shown. Something must be wrong with the Repeater device files in the UI7 branch.
  • resend if st=fail

    9
    0 Votes
    9 Posts
    6k Views
    n3roN
    Jeah now its working :) #include <MySensor.h> #include <SPI.h> #define SENSOR_INFO "Test sensor" #define NODE_ID 200 #define CHILD_ID 1 #define OPEN 1 #define CLOSE 0 MySensor gw; MyMessage msg(CHILD_ID, V_TRIPPED); int repeat = 0; boolean sendOK = false; int repeatdelay = 0; void setup() { gw.begin(NULL, NODE_ID, false); gw.sendSketchInfo(SENSOR_INFO, "1.0"); gw.present(CHILD_ID, S_DOOR); } void loop() { resend((msg.set(OPEN)), 5); delay(500); } void resend(MyMessage &msg, int repeats) { int repeat = 1; int repeatdelay = 0; boolean sendOK = false; while ((sendOK == false) and (repeat < repeats)) { if (gw.send(msg)) { sendOK = true; } else { sendOK = false; Serial.print("FEHLER "); Serial.println(repeat); repeatdelay += 250; } repeat++; delay(repeatdelay); } }```
  • best way to develop for stable and development branch

    6
    0 Votes
    6 Posts
    2k Views
    blaceyB
    Checkout git stash and git merge...
  • Noob--API help?

    6
    0 Votes
    6 Posts
    2k Views
    BulldogLowellB
    @SteveO1234 said: Thanks for the encouragement and help! So it seems as I need to create this message handler function that is referenced in the gw.begin().. And from that point any incoming messages are routed through the function? yup, So, you then have to manage a variable Vera-side that will then get polled from time to time by your Arduino. that request is bounced back as a message, that you handle as you noted above. Look at this example to see how you can manage the change of a stored variable in the Vera device... you merely need to update the stored variable in a change of state, and poll as frequently as you want to update. You can also send Vera html messages that in-turn would generate a message to a node in MySensors space. have fun!
  • This topic is deleted!

    Locked
    3
    0 Votes
    3 Posts
    26 Views
  • Combine multisensor with switch

    10
    0 Votes
    10 Posts
    4k Views
    AWIA
    @n3ro As long as your node is frequently using the gw.process() statement then it will receive the sent messages. Can be any kind of radio disturbance i.e. supply / noise / interference with other 2.4 GHz sources. I would do a few tests with sending messages back and forth. A lot has been written on the forum with respect to "fail" messages.
  • What controller choose ???

    8
    0 Votes
    8 Posts
    3k Views
    RJ_MakeR
    @Alain69 said: Pidom is very attractive, but still in alpha / beta ... And the forum is not very active .... So there is not a single free controller that manages MySensors completely natively? Free Controller?... Not that I've seen....
  • Part time standalone sensor + parallel control of nodes

    18
    0 Votes
    18 Posts
    7k Views
    J
    Here in Germany the wall boxes are round and have a diameter of about 6 cm and a depth of about 4-6 cm. Compared to that your 10x7x7 box is huge. :) I think I would have to dsign a custom Arduino pcb. Still waiting for someone to do this job.
  • MySensors Library for Energia (MSP430 Launchpad) ?

    7
    0 Votes
    7 Posts
    4k Views
    R
    @pcs thank you very much! I have cloned repo and I'll try to compile source closer to weekend.
  • 2 or more DHT11 - Sensors on one Arduino NANO MYSENSOR

    dht11 mysensors
    11
    0 Votes
    11 Posts
    13k Views
    SparkmanS
    @michlb1982 A couple of things, you put the device to sleep so while it's asleep, it won't respond to the commands to change the relays. Since you are combining relays and sensors, you need to keep the unit awake and find a different way to send the sensor data occasionally. For the relay status, read the comments in the sketch. You are saving the relay state and then reading that on startup. You can eliminate all of that code and just set the relay to off in the setup section. Cheers Al
  • This topic is deleted!

    Locked
    1
    0 Votes
    1 Posts
    32 Views
    No one has replied
  • Mysensors protocol requirements

    6
    0 Votes
    6 Posts
    2k Views
    hekH
    I cannot answer for all controller implementations. But the Vera-plugin asks for version when it start up. https://github.com/mysensors/Vera/blob/master/L_Arduino.lua#L650 This is how we do it in the dev-branch https://github.com/mysensors/Arduino/blob/development/libraries/MySensors/examples/EthernetGateway/EthernetGateway.ino#L177
  • How do I use the interrupt

    21
    0 Votes
    21 Posts
    15k Views
    SparkmanS
    While you guys are at it, can you also confirm that the PIR module does indeed work as intended on 3.3V input like this guy claims: http://techgurka.blogspot.se/2013/05/cheap-pyroelectric-infrared-pir-motion.html There are a couple of different revisions of the HC-SR501 through so not all of them have actual pins for for H/L selection. Some just have small solder pads. Hi all, does anyone know of an eBay listing that actually ships the HC-SR501 with the pins for H/L selection? I bought some of these: http://www.ebay.com/itm/310574919531, which shows the pins in the pictures and the description mentions being able to select H/L with a jumper, but the ones that arrived don't actually have the pins and have the solder pads instead. Thanks Al
  • RFXCOM open source

    radio rfxcom protocole
    2
    0 Votes
    2 Posts
    2k Views
    GizMoCuzG
    @jaumard Dont think this is very nice to RFXCom dont you think? Besides, that you can decode a 'few' protocols, do you really think you can decode all that RFXCom does? What is expensive ? 100 euro's for a rock solid (and active developed) device ? Did you looked at the 'RFLink' project?
  • Protocole radio for new device

    radio arduino raspberry protocole
    9
    0 Votes
    9 Posts
    4k Views
    J
    @AWI thanks for pointing me to the doc it look great ! I will give it a try :)
  • MySensors Library cleanup effort

    3
    0 Votes
    3 Posts
    1k Views
    A
    Excellent guide. I will take a look at the development branch. -AM
  • More than one sensor on one arduino pro mini

    10
    0 Votes
    10 Posts
    6k Views
    M
    It's my understanding that since the ATmega168/328P in the DIP package does not physically have the pins to support A6 and A7, they originally decided not to put these on the mini. It seems that newer revisions of the mini now include these. If you take a look at the schematics on the page you linked above, you can see the newest design version is dated 4-9-2014.
  • What is the exact meaning of the debug lines?

    3
    0 Votes
    3 Posts
    2k Views
    hekH
    @msamy-earth It has been answered a few times here on the forum: http://forum.mysensors.org/topic/866/help-understanding-addressing-and-log-messages/3
  • Need advice for sync nodes

    1
    0 Votes
    1 Posts
    795 Views
    No one has replied
  • Assistance Needed Completing GAS Air Quality Sensor

    air mq2 gas quality
    15
    1 Votes
    15 Posts
    7k Views
    korttomaK
    I managed to modify the D_AirQuality1.json file to display the value from V_VAR1 on the Device with the Lable CO2. Here it is incase someone wants it: D_AirQuality1.json

9

Online

11.7k

Users

11.2k

Topics

113.0k

Posts