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!
  • My compliments to the team!

    1
    9 Votes
    1 Posts
    643 Views
    No one has replied
  • bootloader

    bootloader firmware otg
    23
    1 Votes
    23 Posts
    15k Views
    Mayank RaichuraM
    @Redferne Thanks. I'll check it out.
  • What is a good value for a watch dog timer?

    17
    0 Votes
    17 Posts
    5k Views
    tekkaT
    @bjacobse Yes, wdt business can be quite confusing :) Optiboot has a sophisticated wdt approach: wdt is only enabled if the MCU is reset externally (this is the case when you upload a new sketch from the IDE), in all other reset cases (i.e. watchdog-, brownout- and power-on reset), the wdt is disabled and optiboot directly hands over to the sketch. See here for the conditions: https://github.com/Optiboot/optiboot/blob/master/optiboot/bootloaders/optiboot/optiboot.c#L484-L485 And here it gets disabled: https://github.com/Optiboot/optiboot/blob/master/optiboot/bootloaders/optiboot/optiboot.c#L847 This also means that with optiboot, wdt is always disabled when the sketch starts (if WDON fuse is unset). And to give a heads up for the MYSBootloader 1.3 release: wdt will be on by default (at the moment 4s), and the user has to either disable or reset it in the sketch. This is a safety mechanism and the only way to remotely recover from a bad/faulty FW.
  • Request for tutorial on Nextion and Mysensors....?

    3
    0 Votes
    3 Posts
    1k Views
    L
    Please let me know when u have somthing... I will publish also if I'll make it work.
  • KY015 - Humidity and Temperature 2.0.x

    17
    3 Votes
    17 Posts
    3k Views
    tlpeterT
    Two days ago i got two through the mailbox and two at the postal office.
  • MySensors 2.0 startup failure blocks node work

    Locked
    2
    0 Votes
    2 Posts
    708 Views
    TheoLT
    Dear @Konstantin-Kolesnichenko, This behaviour has got nothing to do with the 2.0 version. It's the same in the previous version of MySensors. Node's need communication with the gateway before they can start. I'm closing this topic. See https://forum.mysensors.org/topic/4449/how-to-disable-default-node-registration-to-the-gw/2. It's a thread about the same topic.
  • "Smart" meter node

    smart meter p1
    5
    0 Votes
    5 Posts
    3k Views
    YveauxY
    @pixelmagic here you can find a description of the project @sincze is referring to : https://forum.mysensors.org/topic/4461/smartmeter-sensors
  • Sketch presentation / Vera inclusion

    vera help
    8
    0 Votes
    8 Posts
    2k Views
    M
    @korttoma said: Try running the "ClearEepromConfig" example sketch from MySensors examples and then try your sketch again. Might be that there is an old "NODE_ID" being used that is conflicting with another node. If you want to use static NODE_ID you should put the following before the MySensors.h include in your sketch: #define MY_NODE_ID 14 You are also stil missing the #define MY_RADIO_NRF24 Before the MySensors include that @hek pointed out. ^^ this - I've had this happen before (just last night actually) but i recalled from when it happened in the past, found out it was using a dupe ID, ran eeprom sketch.. good to go now.
  • CAN Bus

    2
    0 Votes
    2 Posts
    900 Views
    sundberg84S
    Some weeks ago i recieved 2 promotion PCBs when I shopped at Itead... not knowing anything about them i googled and it was a project like that (not for mysensors though...)
  • How would I read from a BMP280 sensor at the fastest possible rate ?

    bmp280
    3
    0 Votes
    3 Posts
    2k Views
    N
    I've now tried various algorithms. In all of these I set the oversampling of both temperature and pressure to 1 (no oversampling). Forced mode, with fixed 5mS delay between reads, Forced mode, with fixed 4mS delay between reads, Forced mode, with fixed 3mS delay between reads, Forced mode, with fixed 1mS delay between reads, Normal mode, set t_sb = 0.5 mS, waiting until status bit 3 = 0, read data, repeat Normal mode, set t_sb = 0.5 mS, waiting until status bit 3 = 0, read data, wait until status bit 3 = 1, repeat With each algorithm, I'd do 2000 reads. As I went through the above scenarios, the minimum and maximum readings (for both values) got farther and farter apart - ie: the range of values got larger. That was until #5, where it was slightly better then #1. The range with #6 was the least of all - in other words, algorithm 6 gave the most consistent readings (I should say the sensor is laying still throughout these tests). In #5, it took 6 seconds to make 2000 readings - or an ODR of about 333 hz. In #6, it took 12 seconds to make 2000 readings - or an ODR of 166 hz. Just what the datasheet said would be the maximum ODR. I have to assume with #5, about half the readings were done before the registers were updated. In other words, it was a waste of cpu time to make the reading.
  • On the go timer interrupts?

    3
    0 Votes
    3 Posts
    965 Views
    Sergio RiusS
    @TheoL Hi. I think that a higher level of abstraction from the controller, and giving the node more personality suits better for me. Also I like reducing the unnecessary radio traffic. Let me explain something more my node. The node I'm working on it's basically a multiple actuator that abstracts from the code things like the number of relays or their behaviour. At the moment, you are forced to populate a collection for it to discover and work with a variable number of elements, but as soon as I can I'll find a way to inject that info and avoid altering the code. Perhaps something like espeasy does, rflink activates it's rf modules, or even through a variable from the controller (worst of cases) Now it does all those things but the timer shutdown. I'm a good C# programmer, but I admit that it'll be difficult for me to adapt to C++. I still do all the things as I was doing in C# I don't know anything about the scope or the behaviour of instantiated objects. I would like to tie a timer object to one element's property in the collection and let it run, but I don't know how, or if it will stay "alive" after the procedure ends :smirk:
  • intergrating with existing project car starter

    3
    0 Votes
    3 Posts
    769 Views
    markjgabbM
    @hek looks good...thanks for that ill investigate over the next week getting it running
  • Version 2 and RFM69

    18
    0 Votes
    18 Posts
    5k Views
    AnticimexA
    @shabba thanks, main site matters I leave to @hek to decide upon.
  • Using a 5v slim battery

    5
    0 Votes
    5 Posts
    1k Views
    rchampR
    understood. i just happened to already have these as 'extras', so i figured i'd build a node and give it a whirl. I'll definitely do some more research on @ceech his postings. thx for the insight
  • Experimental: ESP Easy MySensors Edition

    18
    8 Votes
    18 Posts
    13k Views
    TheoLT
    @martinus Anoying isn't it? I allways give a description for each child I present. E.g. gw.present( TEMP1_CHILD_ID, S_TEMP, "DHT1 sensor", true ); // present to controller gw.present( TEMP2_CHILD_ID, S_TEMP, "DHT2 sensor", true ); // present to controller By doing this I can see the description in Domoticz, so that I know what to add.
  • requesting info from other node

    6
    0 Votes
    6 Posts
    1k Views
    Alex PopovskiyA
    @kk02067 it will work fine without presentation
  • dht22 with relay irregular measurement and operation

    3
    0 Votes
    3 Posts
    969 Views
    gundark2G
    So I'm new to all this, however anytime I get funky things going on when I have multiple sensors on a node I found that introducing a delay in between the readings helped smooth things out. Hopefully someone will correct me if I'm wrong, but I have had some luck with delays. Also I built one to control my hot tub and I found noise from the pump messed things up, de-coupling capacitors became my friend after that.
  • MySensors without the Arduino standard library

    2
    0 Votes
    2 Posts
    582 Views
    tbowmoT
    @jj1990 Currently I don't think it's possible, there are too many dependencies on arduino. But the aim is that we separate those dependencies from the core. So we have a more portable codebase.
  • Help on code for Mysensors 2.0

    11
    0 Votes
    11 Posts
    3k Views
    S
    @mfalkvidd said: It depends on how much work you are prepared to do and how much flexibility you want in the code. If you only use one temperature sensor and don't have any plans to add more, change gw.send(msg.setSensor(i).set(temperature,1)); gw.send(msg.set(temperature,1)); Only using the ph sensor and 1 temperatuur sensor no need for more temp sensors.
  • Getting the Ethernet/ESP8266 gateway to act as client instead of server

    14
    0 Votes
    14 Posts
    6k Views
    mfalkviddM
    @stofakiller I think that is supported but I don't know how to do it. Hopefully someone else can chip in.

21

Online

11.7k

Users

11.2k

Topics

113.0k

Posts