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!
  • MySensor.h conflict with RF24.h?

    7
    0 Votes
    7 Posts
    2k Views
    mfalkviddM
    @y4CdW42Ol8 said: What can i use to create an interrupt to wake a sleeping Arduino? This using your Plant_Moisture_Sensor sketch. A timer (whick my sketch alreay uses) or a change in an interrupt pin, see the Sleeping section on https://www.mysensors.org/download/sensor_api_15#the-full-api and http://playground.arduino.cc/Code/Interrupts
  • Problem with multiple relays and delays

    16
    0 Votes
    16 Posts
    4k Views
    ihtgtwtdI
    @parachutesj thank you very much. looks good now.
  • Hardware watchdog

    3
    0 Votes
    3 Posts
    1k Views
    AWIA
    @Koresh Intresting option: to generate a full reset if no sign of life for ... time limit. I would implement this without special library/ MySensors functionality. Just use gw.sleep( xx ms) ; and generate a pulse every xx ms in the main loop.
  • Send success/fail with signing - dev branch

    5
    1 Votes
    5 Posts
    871 Views
    tekkaT
    @stranger @Anticimex Fixed in PR#503
  • SMS enabled Gateway?

    sms gsm
    15
    1 Votes
    15 Posts
    6k Views
    alexsh1A
    @GertSanders I think there is a better chance that the controller is going to be online. I have a mini UPS on my RPi for example if there are no mains supply. I also have a device pinging the controller and if it is not responding sending the halt/reboot signal to the RPi. If your node is working an a universal GSM gateway, that's a different story though. But does it have a power (battery) backup in case there is a blackout ?
  • How does the S_SCENE_CONTROLLER work?

    2
    0 Votes
    2 Posts
    829 Views
    hekH
    What payload do you send in the message? Each scene controller can have multiple buttons. Example: MyMessage msg1(CHILD_ID_3,V_SCENE_ON); MyMessage msg2(CHILD_ID_3,V_SCENE_OFF); send(msg1.set(1)); // Turn on scene button 1 send(msg2.set(1)); // Turn off scene button 1 send(msg1.set(2)); // Turn on scene button 2 send(msg2.set(2)); // Turn off scene button 2
  • Can someone check my code? Please :)

    4
    0 Votes
    4 Posts
    952 Views
    Tore André RosanderT
    @TheoL said: I would strip the complete sketch and leave only the button part in it. That way it's much easier to detect if there's any mistake. It's really hard to help you with a sketch if this size. You could try to give the debouncer a higher interval, e.g.: debouncer2.interval(25); Thanks for the troubleshooting tip! @mfalkvidd After commenting out almost all of the LCD/temp functions i was left with the last wait that caused the problems, it seems to be working now but havent got the time to run it more than a few minutes.
  • Porting Radiohead RFM95/96/98W library to MySensors

    lora rfm95w
    6
    0 Votes
    6 Posts
    4k Views
    alexsh1A
    @scalz I manage to narrow it down only to "drivers/ATSHA204" compile issues, which is signing.
  • Yet Another MySensors MQTT Client Gateway for ESP8266

    1
    1 Votes
    1 Posts
    688 Views
    No one has replied
  • Duplicate NODE ID?

    8
    0 Votes
    8 Posts
    2k Views
    tekkaT
    @sundberg84 yes, but there is no guarantee that both nodes receive the message (due to the low level ACK mechanism)
  • Cobine working DHT22 and LDR with a RelayWithButtonActuator

    dht22 ldr relay
    36
    0 Votes
    36 Posts
    5k Views
    BartEB
    @Dick Not sure what your approach is but normally i start with prototyping using these wires and when all works fine (software and hardware) i solder everything together on a PCB.
  • MyS nodes behavior when no radio or radio init fails

    1
    1 Votes
    1 Posts
    605 Views
    No one has replied
  • Need help understanding a parity check with XOR

    upm esic parity 433mhz
    4
    0 Votes
    4 Posts
    3k Views
    mfalkviddM
    @NickBuilder said: Thank you @mfalkvidd for the very educational description. I thought that the check could have been as you described but I felt that it was too crude and simple. This doesn't seem to be the most typical use of "exclusive or" but I guess it does the job. There are more advanced ways. This scheme will not detect two bit errors in the same group (even or odd) and it can only detect errors, not correct them. But without knowing the reasoning behind the design it is impossible to say if it was a bad choice or not. Is it common to only include part of the transmission packet in the parity check? I would have assumed that the nib (Nib4) should be part of the bit check and that the parity bits would then be set or not set so that the complete packet is confirmed. Yes, it is common to exclude things. What things depends on the use case. From what I understand, the exact same message is always sent three times. If the z-bits were included in the checksum, a new checksum would have to be calculated for each time the message is sent. That would probably have a negative effect on the communication speed and would add complexity to the solution without adding any real benefit. If the checksum bits themselves (C) were included in the checksum calculation they would affect the checksum so the checksum would change so the checksum would have to be calculated again which would cause the checksum to change so the checksum would have to be calculated again and so on.
  • IR node

    7
    0 Votes
    7 Posts
    1k Views
    CrankyCoderC
    Thanks! The looks alot like what I did with my non-mysensors stuff. So that is perfect!!
  • Makefile arduino-mk

    2
    0 Votes
    2 Posts
    1k Views
    Josh CoxJ
    I don't seem to be getting any replies here, so I'm moving to github here: https://github.com/mysensors/Arduino/issues/480
  • Locally attached sensors

    7
    0 Votes
    7 Posts
    3k Views
    skatunS
    @badmannen I am on to it:)
  • This topic is deleted!

    2
    0 Votes
    2 Posts
    56 Views
    No one has replied
  • how to read other device status with arduino?

    5
    0 Votes
    5 Posts
    1k Views
    L
    @BartE Ok, I think I got it all. Great tnx a lot
  • Power sensor? Battery?

    battery powered battery
    12
    0 Votes
    12 Posts
    4k Views
    alexsh1A
    @NeverDie Yes, you are correct - it is based on ATMega1284P. So not relevant My point is that I'd rather stick to the datasheet rather than overclock, but that's just me. And yes I realise that Moteino is overclocking, but the size, voltage and flash are really appealing to me.
  • Scene Controller

    52
    2 Votes
    52 Posts
    26k Views
    alexsh1A
    This is still in an alpha state and ESP8266 development may take some time. This is a TFT screen with the daughter board: [image: 1466201112943-image.jpg]

13

Online

11.7k

Users

11.2k

Topics

113.0k

Posts