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!
  • Combining MQTT and E-Net Gateway in one device

    1
    0 Votes
    1 Posts
    558 Views
    No one has replied
  • Requesting variables from Domoticz

    14
    0 Votes
    14 Posts
    4k Views
    mfalkviddM
    @MikeF I don't have access to the code now, but you are probably right. I need to copy the whole enum, selectively copying doesn't work.
  • Interruption Vector

    9
    0 Votes
    9 Posts
    2k Views
    flylowgofastF
    thanks to all your contributions, it becomes clear for me.
  • writing a code for 2 relays with 2 buttons and actuators

    5
    0 Votes
    5 Posts
    2k Views
    SandeshHs94S
    I'm so sorry for such late reply... the reason i wanted no for loop was to see how the code for that would turn out... I have a project in mind with requires maybe 2 switches and if one is turned on then regardless of the message coming from controller for the second light it should stay off...
  • Can I associate sensor value directly to arduino node device?

    5
    0 Votes
    5 Posts
    1k Views
    coffeeaddictC
    I verified a variable named Voltage DOES get created and is set on the Vera arduino node device if I create MyMessage with: MyMessage voltageMsg(255, V_VOLTAGE); and send value with: send(voltageMsg.set(12.1, 1));
  • Change: MY_RFM69_FREQUENCY to MY_RFM69_BAND

    5
    0 Votes
    5 Posts
    3k Views
    L
    Yes, that's what it for, to allow you to change the frequency... If you have interference, other networks or other devices in the band. In the US, the 915 MHz ISM band is 902 to 928Mhz, the 433MHz band is 433.05 to 434.79 (not very big, unless you have a Ham License, then its 420 to 450MHz)
  • Modify Arduino pro Mini

    3
    0 Votes
    3 Posts
    1k Views
    sundberg84S
    Agree with @mfalkvidd and most of the times im even more ungentle (is that even a english word?). I just out my soldering iron, heat the led/regulator up and push them away with force.
  • 0 Votes
    8 Posts
    3k Views
    robertmtR
    Hi. I have some progress. I can see data coming in terminal ... [INFO] [ runtime.busevents ] - Arduino state updated to 0;0;1;0;4;1009.0 0;1;1;0;0;22.0 0;2;1;0;1;61.0 and keep updating... (only 3 nodes so far) However on website still nothing... I assume there is something wrong with openhab config. What I did... Added serial bindings from this link ( http://forum.mysensors.org/topic/655/serial-gateway-connection-to-openhab/3 and updated demo.rules accordingly and also had to remove ... @115200 from demo.items - { serial="/dev/ttyACM0@115200" }
  • Sensebender Micro as gateway on raspberry pi

    7
    0 Votes
    7 Posts
    2k Views
    andredtsA
    @Stric Good to know! I don't have this kind of problem because I use a Atmega328 with external 16MHz clock. The Sensebender Micro uses internal clock and run as low as 1MHz, so there is your problem.
  • How to use V_TEXT in 2.0.0

    5
    0 Votes
    5 Posts
    2k Views
    hekH
    Sorry, I don't know why you added ,0. :stuck_out_tongue_winking_eye: For some of the msg setters, the second argument is used to specify length (buffer) or number of decimals (float). Please read through the API: http://www.mysensors.org/download/sensor_api_15#the-full-api
  • Getting "ver mismatch"

    9
    0 Votes
    9 Posts
    3k Views
    hekH
    Mo ha ha... I will take over ALL your sensors. :) [image: 1456263063095-dr_evil-646x363.jpg]
  • Requesting time from MQTT/Openhab - How?

    mqtt openhab
    3
    0 Votes
    3 Posts
    2k Views
    greglG
    My memory is sh*t.... i even replied to this relevant post! http://forum.mysensors.org/topic/812/realtimeclockdisplaysensor-ino-no-fetch-time-from-controller/6
  • How to assign static node ID?

    8
    0 Votes
    8 Posts
    6k Views
    GertSandersG
    Here are the defines I put in my sketches for the development library: //#define MY_NODE_ID 1 //#define MY_PARENT_ID 0 // Possible values for Arduino IDE: 9600, 19200, 38400, 57600, 74880, 115200, 230400, 250000 // The last three values are only possible if the mcu works at 16Mhz or more, not possible for 8MHz operation. //#define MY_BAUD_RATE 57600 //#define MY_RADIO_NRF24 //#define MY_RADIO_RFM69 // Enable serial gateway //#define MY_GATEWAY_SERIAL // Enabled repeater feature for this node //#define MY_REPEATER_FEATURE // Flash leds on rx/tx/err //#define MY_LEDS_BLINKING_FEATURE // Set blinking period //#define MY_DEFAULT_LED_BLINK_PERIOD 300 // Enable inclusion mode //#define MY_INCLUSION_MODE_FEATURE // Enable Inclusion mode button on gateway //#define MY_INCLUSION_BUTTON_FEATURE // Set inclusion mode duration (in seconds) //#define MY_INCLUSION_MODE_DURATION 60 // Digital pin used for inclusion mode button //#define MY_INCLUSION_MODE_BUTTON_PIN 3 //#define MY_DEFAULT_ERR_LED_PIN 5 // Error led pin //#define MY_DEFAULT_RX_LED_PIN 6 // Receive led pin //#define MY_DEFAULT_TX_LED_PIN 7 // the PCB, on board LED // possible values: RF24_PA_LOW (is default on gateway), RF24_PA_MED, RF24_PA_HIGH, RF24_PA_MAX (is default on nodes) //#define MY_RF24_PA_LEVEL RF24_PA_HIGH // RF channel for the sensor net, 0-127. Channel 76 is the default in all library examples //#define MY_RF24_CHANNEL 76 //RF24_250KBPS for 250kbs (default), RF24_1MBPS for 1Mbps, or RF24_2MBPS for 2Mbps //#define MY_RF24_DATARATE RF24_250KBPS
  • Gateway and Nodes with just ESP8266 (wireless network of sensors - wifi)

    5
    0 Votes
    5 Posts
    3k Views
    hekH
    No, I wasn't aware of the ESPEasyMySensors PoC. Nice. And if you implement a "super"-gateway that one would gather information from all of the others? Haven't really thought it through enough to say if it is realistic or worth the trouble. I mean data can flow directly from a ESP node to the controller. Why bother implementing another failure source by routing them through a single gateway. Unless you mean taking advantage of the Ad-hoc network features of WiFi to get more distance/coverage out of it.
  • 0 Votes
    10 Posts
    3k Views
    R
    @hek, I suspect that there is something wrong with this pull request. If you just returning true, then protocolParse() will not be called and gatewayTransportReceive() function in MyGatewayTransport.cpp will receive previously parsed message.
  • Porting MySensors to work with the RadioHead library

    porting radiohead
    288
    1 Votes
    288 Posts
    188k Views
    L
    Hello folks. There is any plan to include into mysensors the LoRa RFM95 ,96? I am currently testing one those modules at 433mhz with RadioHead library. I had conducted some test in suburban environment and getting around 1.8 miles range. I pretend to apply this for remote water pump control monitoring in farms. I still want to try the rfm69 and see how much range I can cover . Any advice will be highly appreciated. Regards
  • Connect my existing burglar alarm system

    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • New to this and frustrated with the arduino IDE

    15
    0 Votes
    15 Posts
    4k Views
    ewaldsreefE
    @jeylites I just put mine into My Documents/Arduino/Libraries
  • sending string via nrf and the other receivers making trouble - why?

    8
    0 Votes
    8 Posts
    3k Views
    m26872M
    @choffmann Thanks a lot! Please let us know you if the update solved your issue.
  • MQTTClient Qos 1

    2
    1 Votes
    2 Posts
    1k Views
    T
    I'm in favor of this. I would add Item 6: Have (configurable) symbolic names for the values. I' using the gateway with FHEM where readings are automatically created and symbolic names are much easier to handle than the raw numbers. I've pacthed that in the version I'm using, but a general approach would be great.

18

Online

11.7k

Users

11.2k

Topics

113.0k

Posts