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!
  • SI7021 Multisensor - first try

    multisensor si7021
    26
    0 Votes
    26 Posts
    20k Views
    GertSandersG
    Adafruit have a library for the htu21d which works well with Mysensors
  • My motion / dallas / light sensor

    3 in 1 example
    7
    1 Votes
    7 Posts
    4k Views
    E
    Are you using a wifi gateway? Others reported strange values too: http://forum.mysensors.org/topic/2934/wifi-gateway-motion-sensor-value-1107296256-instead-of-tripped/2
  • Are we initializing the nRF24L01+ correctly?

    16
    4 Votes
    16 Posts
    9k Views
    tekkaT
    @davboecki :+1:
  • Moisture Sensor and relay node. Relay becomes unresponsive

    4
    0 Votes
    4 Posts
    2k Views
    sundberg84S
    Always hard to say - but seeing issues with relay quite often my advice is to look over the power/ground and radio. The radio is very power sensitive and it can help adding/changing caps GND/VCC on the radio. How you wire the ground from the relay can also make a difference. I have had relays jamming when i ran ground trough the arduino and not straight to source. Also the opposite that it didnt work well if I didnt have ground through the arduino. Range, when you send a on-command there is a ack going back which needs to be ok. Follow your serial logs in node and gateway to find out if the radio traffic is ok - or put a repeater in between. Power - I have had Arduinos (mostly Pro Mini) that was a little to weak to trigger the relay... :( It needs 5v but my pin 5 was only giving 4.7V and some tries resulted in a unsuccessful relay switch even if the logs told me so. To test this you can upload a sketch doing nothing else but setting the pin to high and low with a delay in between.
  • Where do I find Serial Gateway for Raspberry?

    4
    0 Votes
    4 Posts
    1k Views
    mfalkviddM
    https://github.com/mysensors/Raspberry
  • Message.GetString() Error

    7
    0 Votes
    7 Posts
    3k Views
    hekH
    Use: char *hextstring = message.getString(); Even though it's called getString we actually not use the String class (which isn't recommended to use on these small embedded systems)
  • 12 volt downlight dimmer

    led switch dimmer arduino
    3
    0 Votes
    3 Posts
    2k Views
    BartEB
    @Homer I've made a 2 double LED dimmer as well works very good and can easily be extended with more dimable leds. See my project here
  • Dual Gateways

    3
    0 Votes
    3 Posts
    964 Views
    AnticimexA
    Indeed, I use node-red for this. It also has nodes for MQTT but I have not looked into MQTT at all. My setup is a single rf24 based gw which through node-red interfaces with Vera, domoticz, myscontroller and on occasion, mycontroller. It can also push notifications to pushbullet, mail or other endpoints (through add on nodes in node-red). From a controller perspective, node-red uses serial nodes, which in turn become tcp ports through socat that the controllers connect to believing they interface with an ethernet gw.
  • Assigning NODE ID in VER 1.6b

    2
    0 Votes
    2 Posts
    814 Views
    L
    Found this issue, looks like it NEED TO BE PRIOR to the #include <MySensor.h> #define MY_NODE_ID 7 // id of the node //#define MY_PARENT_NODE_ID 1 #define CHILD_ID 3 // Id of the sensor child #include <SPI.h> #include <MySensor.h>
  • The library should check for radio definition in the sketch

    3
    0 Votes
    3 Posts
    787 Views
    ahmedadelhosniA
    Well I tested again not defining a radio for a sensor node (relayactuator) and it didn't compile. OK But my issue was with GatewayW5100, if I didn't define the NRF radio, nothing work at all and nodes are not communicating with the GW. In all cases, I just needed to highlight that this may save someone's else time :D
  • Mysensors ESP8266 GW with relay - Presentation relay not working why?

    4
    0 Votes
    4 Posts
    2k Views
    hekH
    Hmm.. Looks like it could it be that the connection to controller hasn't been initialised when node/gw sends the presentations. Please create an issue on github and create a link to it here.
  • Node Auto ID not firing requestNodeId()

    2
    0 Votes
    2 Posts
    943 Views
    hekH
    Do you have something in your eeprom already blocking? Try clearing it using the provided ClearEprom sketch in examples.
  • Unable to receive messages after sleep?

    4
    0 Votes
    4 Posts
    2k Views
    BartEB
    @elmezie after a sleep the radio is not powered on again (sleep is for battery power nodes which normally do no expect message to receive) One can wake up the radio again by sending a message e.g. requesting a status or perhaps the current time with gw.requestTime(receiveTime);
  • MySensors WiFi Gateway with Arduino UNO and CC3000

    11
    0 Votes
    11 Posts
    4k Views
    C
    @barduino @flopp sorry guys i fixed this last week but forgot to tell anyone. it shou;d be on my github
  • Arduino Sleep / Wake On Interrupt?

    2
    0 Votes
    2 Posts
    4k Views
    hekH
    Yes, it would be possible. But you won't save much juice as keeping radio in listening mode still requires way too much power to be able to run on batteries for any substantial time.
  • Serial Gateway 1.5 - LEDs not working any more

    3
    0 Votes
    3 Posts
    2k Views
    Johnny B GoodJ
    Same problem here, very randomly only blink once when press reset button on node (or upload sketch) And something else... what about : #define MY_RANDOMSEED_PIN 7 // A7 - Pin used for random generation (do not connect anything to this) Must be pin 21 for A7 ?
  • Multiple sensor nodes - only one appears to be recognised

    4
    0 Votes
    4 Posts
    1k Views
    M
    Got the same problem. Need to change the code to make it works
  • Mysensors Library Update location

    1
    0 Votes
    1 Posts
    714 Views
    No one has replied
  • Arduino disconnects from LAN Network?

    6
    0 Votes
    6 Posts
    2k Views
    YveauxY
    @rmtucker I also blew the 5V converter on a cheap Chinese UNO clone, by just connecting a power supply. Still wondering why.... The AMS1117 often found on these boards only allow 15V input max. I blew another one by connecting a cheap AC adapter which outputs a higher voltage unloaded.
  • Doorbell node

    6
    0 Votes
    6 Posts
    3k Views
    H
    Some optimization to check: ringerdelay needs to be defined with a type if condition in setup() not necessary initialize buttonpushed and ringSendAt unconditioned normalize logic in if (timenu > buttonpushed && timenu > buttonpushed + ringerdelay) to if (timenu > buttonpushed + ringerdelay), it is the same variable timenu not necessary use millis() directly: if (millis() > buttonpushed + ringerdelay) on relay initialisation the two comments are wrong

11

Online

11.7k

Users

11.2k

Topics

113.0k

Posts