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!
  • 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
  • fatal error: ets_sys.h: No such file or directory

    2
    0 Votes
    2 Posts
    2k Views
    A
    Never mind, bad installation of an old IDE on a Raspberry pi made this all go a bit wonky. I'll try with a newer IDE built from Source.
  • MyWeatherGatewayESP8266 (1.6 dev branch)

    1
    3 Votes
    1 Posts
    4k Views
    No one has replied
  • Read battery voltage without resistors.

    17
    0 Votes
    17 Posts
    7k Views
    AnticimexA
    Yes. There also exist a function for it in development branch in the MyHwxxx implementations. But it does not seem to be available for use so I am guessing it is a feature in developing stages. I think the SenseBender sketch also makes use of it since the SenseBender is a hw that can capitalize on such a feature. I also have it in my sketch for my MySensorsNode board but I have not published a finished sketch. But on the openhardware.io entry for it, there is a codebender sketch that can be examined (very much work in progress).
  • 1.6 gateway possible error

    16
    0 Votes
    16 Posts
    4k Views
    M
    Yes, it works fine now, thank you!
  • Start using IV in AES encryption?

    31
    0 Votes
    31 Posts
    11k Views
    AnticimexA
    @ahmedadelhosni signing just underwent a major overhaul recently on development branch. We are also looking into a node locking mechanism when the node suspects it is under attack from someone trying to brute force a signed message or trying to predict nonces calculated from a bad rng implementation. So security is very much being looked at. And even with missing IV, AES encryption would add some obfuscation to the messages and will in combination with signing still deter a lot of potential attackers.
  • SceneController

    28
    1 Votes
    28 Posts
    17k Views
    D
    Its a danish enclosure: http://www.lk.dk/produkter/afbrydermateriel-lk-fuga/lk-fuga/antibakteriel/underlag/baseline-2-modul-346dd488/ for the button one and: http://www.lk.dk/produkter/afbrydermateriel-lk-fuga/lk-fuga/antibakteriel/underlag/baseline-1-modul-hvid/ for the top one. Its a danish department of Schneider Electric called LK(Lauritz Knudsen)
  • This topic is deleted!

    0
    0 Votes
    0 Posts
    3 Views
    No one has replied
  • Ethernet Gateway on Arduino Yún

    ethernet yun arduino gateway
    9
    0 Votes
    9 Posts
    13k Views
    scalzS
    thx for reply :smile: yes dragino HE works like yun I think. for linkit as the product seems new, there is a little bit less docs. but I will see, price was so interesting that it was too much tempting lol. I will tell you what I can get... for fun, I have not presented yet, but I have a board in progress for raildin : 8x relays + 8inputs for yun and I added ethernet connector+hub usb chip
  • Enhanced Dallas Temperature example with permanent sensor index

    3
    5 Votes
    3 Posts
    3k Views
    L
    @redvoodoochild You welcome, I hope it will be useful for you too.
  • MySensors and Arduino IDE 1.6.7

    1
    0 Votes
    1 Posts
    830 Views
    No one has replied
  • Data stored in the EEPROM

    4
    3 Votes
    4 Posts
    3k Views
    HeinzH
    Thanks, looks good.
  • Use SerialGateway publish complex embedded device as multisensor node

    3
    0 Votes
    3 Posts
    841 Views
    J
    In first... thanks for the instant reply! ;) :) I checked this already, and i would personally be able to publish sensors directly attached to the SerialGateway-Hardware(Arduino-GPIOs) the code is quite straight forward, but especially this is not what i want to establish. My embedded device is a complex "central controller" which will implement the controller context of many industrial application protocol specifications in future, an should act something as a Layer5-6 Proxy wich shall briddge sensors and actuators logically to "all" possible mysensors controllers. The customer needs can only be fit with complex actuators and sensors, using multiple communication Stacks and protocols f.e. RS485, RS232, 868Mhz(CosIP, BidCos, ZWave etc.) or 4-20mA-Analog protocols. I'm trying to evaluate if the mysensors protocol could be a real option against using prooven 868Mhz RF Protocols here. I only want to hide complex logical sensors and actuators of the application by the serial gateway. I want to achive a situation where a mysensors Controller context like pimatic or others can easily integrate my complex "cost intesive" calculations. And also i want to be able to do a Firmwareupdate of the serialgateways Arduino flash without doing "any" hacks in the image to provide serial gateway updates in future. This would be much hard to maintain in an embedded product lifecycle if any "external" code has to be hacked first before upgrading components.
  • Suggestion for documentation

    3
    0 Votes
    3 Posts
    1k Views
    M
    Thank you, I know, I already do this, but I am thinking for other users too. I was building a node with 4 Relays, temperature sensor, PIR, smoke sensor, IR sensor so I use a lot of Arduino inputs.
  • Enable 'SOFTSPI' in codebender for Wiznet - Ethernetgateway

    2
    0 Votes
    2 Posts
    769 Views
    hekH
    You must download and install the Arduino IDE to change those settings using the 1.5 version.
  • message for V_tripped

    3
    0 Votes
    3 Posts
    1k Views
    C
    I'am running a gateway on an ESP8266. I take the last version of the ESP8266 gateway. It's OK. Thank you Chdid
  • 0 Votes
    9 Posts
    3k Views
    maxtoxM
    Update... to find the BUG maybe it will help: I noticed that after a float value publisching, the "Dirt" is only staying until the next value: here is ok 0;255;3;0;9;Message arrived on topic: DOino<>MQTT/0/11/1/1/15 0;255;3;0;9;Sending message on topic: DOino<>MQTT/0/11/1/1/15 message 1.00 here comes the float: 0;255;3;0;9;Message arrived on topic: DOino<>MQTT/0/58/1/1/0 0;255;3;0;9;Sending message on topic: DOino<>MQTT/0/58/1/1/0 message 40.84 here comes the DIRT (8 should be ZERO: 0;255;3;0;9;Message arrived on topic: DOino<>MQTT/0/8/1/1/2 0;255;3;0;9;Sending message on topic: DOino<>MQTT/0/8/1/1/2 message 0.84 here is the DIRT gone: 0;255;3;0;9;Message arrived on topic: DOino<>MQTT/0/10/1/1/77 0;255;3;0;9;Sending message on topic: DOino<>MQTT/0/10/1/1/77 message 0.00 0;255;3;0;9;Message arrived on topic: DOino<>MQTT/0/11/1/1/77 0;255;3;0;9;Sending message on topic: DOino<>MQTT/0/11/1/1/77 message 11 0 0.00 but funy is, that the MQTT Server does NOT get any dirt : mqtt-0 2016-01-03 09:38:33 info Send to client [mqtt_fd810ccf.027ef] "mqtt/0/DOino<>MQTT/0/8/1/1/2": 0 mqtt-0 2016-01-03 09:38:33 info Send to client [DOino_1] "DOino<>MQTT/0/8/1/1/2": 0 from this float: mqtt-0 2016-01-03 09:38:33 info Client [DOino_1] _publishes "mqtt.0.DOino<>MQTT.0.58.1.1.0"(number): 40.84 mqtt-0 2016-01-03 09:38:33 info Send to client [mqtt_fd810ccf.027ef] "mqtt/0/DOino<>MQTT/0/58/1/1/0": 40.84 mqtt-0 2016-01-03 09:38:33 info Send to client [DOino_1] "DOino<>MQTT/0/58/1/1/0": 40.84```
  • Dimmable LED With Rotary Encoder example for RGB?

    rotaryencoder rgbactuator
    8
    1 Votes
    8 Posts
    10k Views
    sowardS
    How do you envision the system working? Were you just thinking that turning the knob would rotate through a pre-built palette of colors, which would be shown on the knob's RGB first then transferred to the final device or something where you could control the mix of RGB by pushing the encoder's button to switch from controlling R, G, and B until you get the desired color on the indicator LED then maybe a double push to transfer it to the final device? I don't think either would be too difficult, but given the differing methods for specifying a color to the various RGB devices, I'm not sure how accurate the preview color will be on the knob's LED.
  • Arduino IDE Library Manager

    6
    0 Votes
    6 Posts
    3k Views
    tbowmoT
    @humblehacker I'm not on hackster.io (have never heard about it before now)
  • Why MySensors isn't using interrupts for nrf24?

    24
    1 Votes
    24 Posts
    11k Views
    F
    After 2 days of test. I lost few packets (5 or 6 in 24 hours and usually humidity ...). I will perform another test after changing all my ethernet câbles.

14

Online

11.7k

Users

11.2k

Topics

113.1k

Posts