Skip to content

Feature Requests

Got a feature request you'd like to see? Give us a shout here.
223 Topics 1.4k Posts
  • Example code - DallasTemperatureSensor.ino

    8
    0 Votes
    8 Posts
    2k Views
    F
    @mfalkvidd :dancer:
  • Possibility to add custom variables

    3
    0 Votes
    3 Posts
    2k Views
    TheoLT
    @Knuppel great and creative solution.
  • Overloading the Arduino delay

    15
    1 Votes
    15 Posts
    5k Views
    scalzS
    @Theol I like the way you're thinking, trying to make things affordable :thumbsup: easing coding life for noobs, not so easy task. Imho I prefer non blocking stuff too, state machine like. I think this is really the way to think for a machine, IOT. I think this is kind of education..more mcu programming related. A very basic state machine just needs few "If" and/or "switch case". Often, people don't know theyr're doing a state machine ;) I mean the basics of course, because you can use function pointers etc which are more advanced, use more mem etc..I choose function pointers or "If/switch" depending of the context but looks better with pointers. I hope I don't say dumb things or Yveaux will correct me :) Ideally, very basic and important stuff a newbie need to learn for playing with a MCU, then with Mysensors, would be: to understand why there is no "multitask" regarding how an mcu works. and irq, priority and pullup/downs.. a bit of algo and arduino reference.. Sure Mysensors looks easy to use. And that's true ;) But if people think they don't need to learn this, even with multiple override, they will be limited, with more bugs, and more questions.. Then, of course, newbie would be happy to have done something, so he shares (thx). And an other noob comes, takes the sketch and share etc. finally where's quality.. I have rarely seen this (about delay) when i was learning from microchip community though ;) And that's what I thought first time I saw arduino community! What this..so much people are using delay here! I will have to write my things from scratch, I can't trust, I will have not time to check everything..damn! Hopefully that's not completely true! Have they read some reference before starting? With all resources from arduino, I think there is no excuse :) Led blinking without delays etc.. Hmm, a bit philosophical..Vulgarisation, mastering :) I understand main Mysensors goals. Why not a graphical ui in place, which would use "blocks" instead of code? :scream: I'm always interested with your stuff @Theol and will keep an eye on this too :)
  • Reduce overhead with multiple sensors?

    9
    0 Votes
    9 Posts
    2k Views
    cimba007C
    @m26872 I am currently implementing a little wrapper around the MyMessage object to check for things like "Is it time to send again?!". I use 8000ms Sleep Cycle and then run a bunch of these functions: bool MySensorChild::timeok() { if(mymillis() - _lastsend > _interval || mymillis() < 60000) return true; else return false; } _lastsend is the time the sensor last updated its value. In addition to that I am planning to save the last value too to send only if necessary or after an defined "Minimum send" interval. Using sleep I had to use a little wrapper for millis() unsigned long static millis_offset = 0; unsigned long static mymillis() { return millis()+millis_offset; } and adding the offset myself: sleep(8000); // If powersaving is desired (8s, 4s, 2s, 1s, 500ms, 250ms, 125ms, 64ms, 32ms, 16ms millis_offset += 8000; In addition to that I implemented software ack, retrycount .. and display of RPD Signal Strength indicator. PS: Saving the "lastvalue" seems to be tough. At least if it should be done in a generic ways as the valuetype could be different each time .. int, float etc...
  • How to change the SerialGateway nodeID?

    4
    0 Votes
    4 Posts
    1k Views
    YveauxY
    @Magic-W there can be only one gateway per network. You can create 2 separate networks with 2 gateways (put each on a different channel to prevent interference). Why do you need 2 gateways?
  • low power designe

    4
    0 Votes
    4 Posts
    2k Views
    cimba007C
    One addition: If you power the Arduino directly (e.g. 2x AA = ~3,00V max) you can use ( http://provideyourown.com/2012/secret-arduino-voltmeter-measure-battery-voltage/ ). This will ofc. not work if you power your setup via VoltageRegulator. In addition to mfalkvidd's link have alook at https://www.mysensors.org/download/sensor_api_20#sleeping It describes how to use the sleep function to put the Arduino+Radio in sleep mode.
  • Making renewable energy production more economical&efficient

    3
    0 Votes
    3 Posts
    1k Views
    zipsterZ
    Some notes on how the singleboard pc (also used by the domoticz software) would become aware of when it's currently an off-peak or a peak-hour: as mentioned, this is best done using a dynamic system (else it's equally useful to just use plain time switches and not have a singleboard pc running at all to get this done). For the dynamic system, I mentioned power companies can use a sort of PLC (see https://en.wikipedia.org/wiki/Power-line_communication ) system. That would have the advantage that the power company could use a same power cable to also transfer the data. This might be a bit too complicated for power companies to set up though in retrospect. Probably better is that they just run an rss-server instead. A seperate rss-server would need to be be running per country, or even per power company. Since it would be dynamic, it could even use a range of prices depending on the power production/demand ratio at that particular moment. The switches the singleboard pc then control can even be set to start/stop depending on the price at that moment, and stopped after a certain delay -this is most useful for say washing machines, ... as else there might be increased wear-). As all ready mentioned though, it's something power companies would need to set up, and since that isn't the case yet, we probably best just make a simpler, static system ourselves. That static system can then also function as an (off-line) back up, even when the dynamic systems are being made. For the static system: it would be most useful to make this as something that's user-settable (so that the user can change the standard settings to match the off-peak/peak hours his local electricity company set out, exactly). It should be made in such a fashion that even if there's no internet access on the singleboard pc, it can still be used. Similar to the dynamic system, the different switches can be activated/deactivated by the singleboard pc upon reaching a certain price range. Unlike the dynamic system though, there will off course only be 2 prices: that of the off-peak hours, and of the peak hours. These prices are best also made settable. The singleboard pc tend to use linux as the OS, so it needs to be written in say C++ Any volunteers ? PS: besides the ability of this program to activate and deactivate power plugs (i.e. via the fifthplay smart energy box hardware noted above), we'll also need special hardware to be able to route power in one of 2 possible directions. This is only needed though for the renewable power plants at home, when we use the simpler system mentioned. For the more complex one (with a battery system), it's not needed, as we can put an activatable/deactivatable switch both before and behind the battery bank.
  • Does MySensors accept contributions to the website?

    3
    0 Votes
    3 Posts
    1k Views
    hekH
    It will become much easier to contribute articles to the main site (by creating an openhardware.io project). We will pubish mysensors related projects(or articles) when this is new site is launched.
  • so i was thinking outside the box here and.....

    6
    0 Votes
    6 Posts
    2k Views
    freerpgF
    I suffer from the issue of having grand scheme but no skills. Do not think for a second I am not listening to you all. I might draft this up into a flow chart and trial some code to see if I can get it to work, the part I have issue with is my coding is slightly above "hello world" in that I can mix and match stuff, fix errors, but writing a new code is beyond me, so the UI for the controller is way more beyond me then I could imagine. would anyone even consider looking at what I do to help out? I actually want to use all the sketches on here and people can upload more, then when you go "thats a brilliant idea I need 5 of them" you buy the parts goto the UI select what you want, it states this is the wire up (this is the part that would be hard because I want it to give options not have everything on A0 for example) then you wire it, press send code and presto its working without wires to the computer.
  • Node discovery

    4
    0 Votes
    4 Posts
    1k Views
    YveauxY
    @dbemowsk In 6 days, at the Swedish MySensors meetup ;-)
  • Please add a guide for how to connect use the RFM69(H)W

    16
    0 Votes
    16 Posts
    8k Views
    alexsh1A
    @hek I can confirm that Moteino Mega USB (and I think Moteino Mega as well) works out of the box: Starting sensor (RRNNA-, 2.0.0-beta) Radio init successful. find parent send: 255-255-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,st=bc: find parent send: 255-255-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,st=bc: Init complete, id=255, parent=255, distance=255 find parent send: 255-255-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,st=bc:
  • Pushbullet subscription not working

    3
    1 Votes
    3 Posts
    1k Views
    afenoA
    Thank you! It is working again :) Have a nice rest of the day.
  • setup a peer to peer connection

    4
    0 Votes
    4 Posts
    2k Views
    mfalkviddM
    Only during (re)configuration of nodes.
  • Request: New Sensor Type ? Thermostatically controlled switch

    18
    0 Votes
    18 Posts
    15k Views
    P
    @hek do you know anyone who would like to implement this for some "beer"?
  • Sketch Generator

    11
    0 Votes
    11 Posts
    5k Views
    mfalkviddM
    It is not a generator, but @tonberg's framework might be useful for someone looking for a code generator.
  • This topic is deleted!

    4
    0 Votes
    4 Posts
    15 Views
  • gw.send for float

    6
    0 Votes
    6 Posts
    4k Views
    epierreE
    @mfalkvidd thanks a lot !
  • Mysensors on AT90USB1286

    1
    0 Votes
    1 Posts
    856 Views
    No one has replied
  • Big Wish - a working system including up-to-date Reference

    22
    1 Votes
    22 Posts
    7k Views
    K
    Hello Hek, thank you so much to try to help me - i found the problem now and i guess it´s the same problem many others have here: On almost all ESP12 GPIO 4 and 5 are labeled wrong I didn´t use a NodeMCU, but one of the other available boards As the CE pin is then connected to the wrong GPIO, it seems to work, Radio init ok, but as soon as the gateway sends something, it crashes Here are some interesting posts about that: https://github.com/esp8266/Arduino/issues/437 Maybe you should ad this notice to the build-section for the wifi gateway ? Best regards Klaus
  • request wiring and program of 8 channel relay

    3
    0 Votes
    3 Posts
    1k Views
    R
    @hek hi dear hek . can I use this for light ? 8 channel light? without use of lcd and..... . just one nrf and one arduino and one 8 channel relay ?

12

Online

11.7k

Users

11.2k

Topics

113.1k

Posts