Skip to content

General Discussion

A place to talk about whateeeever you want
1.5k Topics 14.2k Posts
  • Power consumption (battery) during (re-)init

    1
    0 Votes
    1 Posts
    556 Views
    No one has replied
  • PCB idea, another basic node board.

    2
    1 Votes
    2 Posts
    1k Views
    sundberg84S
    :+1: looks good! If you read the slim-node and EasyPCB thread you will probably find alof of our first mistakes and thoughts...
  • [SOLVED] Unable to write data to serial port on pi3

    3
    0 Votes
    3 Posts
    895 Views
    ?
    @Yveaux said in Unable to write data to serial port on pi3: Thank you dear Sir, both of your solution work. Amazing. I hope this will help others. Cause I can sense that this is pretty basic Linux stuff. But I was stuck for days on that. Thank you :+1:
  • NRF Radio issue on shared SPI

    3
    0 Votes
    3 Posts
    1k Views
    mfalkviddM
    @Julia-J. the recommendations in https://www.dorkbotpdx.org/blog/paul/better_spi_bus_design_in_3_steps might be useful to make the bus more stable. You do have a capacitor for close to the nrf right? I know it shouldn't matter but unstable power often causes strange things to happen. Another alternative could be to use softspi to place the nrf on separate pins. An example is available at https://www.mysensors.org/build/ethernet_gateway As suggested in http://electronics.stackexchange.com/questions/166832/multiple-spi-busses-in-ribbon-cable?rq=1 connecting every second wire in the ribbon to ground can shield the signals from interference. Maybe lowering the SPI speed helps. I think that is done by setting //#define MY_RF24_SPI_MAX_SPEED 4000000 to something lower, maybe try 1000000 instead.
  • no router configuration?

    7
    0 Votes
    7 Posts
    1k Views
    gohanG
    If you use normal mqtt implementation, the communication is pretty much instantaneous; the only problem you may encounter is to keep NAT session open on the router so you need to make sure the node "pings" the mqtt broker regularly otherwise after some minutes without traffic routers will close the NAT session and traffic from the outside will not get through and reach your node
  • API Structure Datatypes

    3
    0 Votes
    3 Posts
    923 Views
    K
    @AndyDHill Look at "MockMySensors" sketch in MySensors examples. Maybe it helps with some types.
  • 0 Votes
    16 Posts
    18k Views
    G
    @catcher Thanks, I tried this Perl script and it is working out of the box with OpenHAB2! And I'm sending with MySensors 2.
  • Help Getting Started

    home assistant
    2
    0 Votes
    2 Posts
    982 Views
    hekH
    Hi and welcome! I would say all of the examples in the build section has been converted to 2.0 (except maybe for some old build-projects created by external people). The examples with external library dependencies comes from here: https://github.com/mysensors/MySensorsArduinoExamples/tree/master/examples and standalone examples here: https://github.com/mysensors/MySensors/tree/development/examples
  • multi rebbots gatewayserial mysensors 2.1.1

    1
    0 Votes
    1 Posts
    583 Views
    No one has replied
  • Looking for simple/clean Code example for sleep() external interrupt.

    2
    0 Votes
    2 Posts
    2k Views
    H
    I think the sketch you need is here .
  • 'MySensors' does not name a type

    6
    0 Votes
    6 Posts
    4k Views
    mfalkviddM
    @adrian_kbb73 Welcome to the MySensors commu ity! Most of this code seems to be for MySensors 1.x. It needs to be converted to work with 2.x. A guide is available at https://forum.mysensors.org/topic/4276/converting-a-sketch-from-1-5-x-to-2-0-x/
  • German users

    11
    0 Votes
    11 Posts
    2k Views
    M
    ja ich... :-) Aber noch ganz frisch auf dem Gebiet..
  • Need Help with our project

    2
    0 Votes
    2 Posts
    581 Views
    sundberg84S
    @Kristofer-Cuevas - there are many ways - our way you can read about in the getting started page: https://www.mysensors.org/about Most of the controllers have a web gui if thats what you mean.
  • devices a long time away from controller.....

    4
    0 Votes
    4 Posts
    1k Views
    Boots33B
    @markjgabb said in devices a long time away from controller.....: do the devices have lease life times? where they may change there ID without warning... As far as I am aware the node id's are persistent. You would need to manually delete the node on your controller to re allocate the id to a new node. So you should be ok with the node being away for extended periods of time. can i create a node that does nothing but sleep unless one of 3 buttons on it is pushed? Yes that is possible, you would need to use an interrupt for that.
  • Relais sketch, auto switch on again after x seconds

    9
    0 Votes
    9 Posts
    3k Views
    CorvlC
    @ BartE , thanks a lot , I changed all the _Off to _OFF and the same with the On , gw. wait as well. also the 500 to 5000 Working perfectly ! Many thanks I haven't had a definite anwer yet if libabry 2.x works on vera , I have only read about problems . For the moment I stick to 1.5 edit : one small thing I just noticed , when I switch via the vera Gui the relais to off , it nicely goes back to on after 5 seconds , but it doesn't report back to vera that it is again in an on state. is there still something wrong with the code? Again many thanks, Cor For future reference: // Example sketch showing how to control physical relays. // This example will remember relay state even after power failure. #include <MySensor.h> #include <SPI.h> #define RELAY_1 3 // Arduino Digital I/O pin number for first relay (second on pin+1 etc) #define NUMBER_OF_RELAYS 1 // Total number of attached relays #define RELAY_ON 1 // GPIO value to write to turn on attached relay #define RELAY_OFF 0 // GPIO value to write to turn off attached relay MySensor gw; void setup() { // Initialize library and add callback for incoming messages gw.begin(incomingMessage, AUTO, true); // Send the sketch version information to the gateway and Controller gw.sendSketchInfo("Relay", "1.0"); // Fetch relay status for (int sensor=1, pin=RELAY_1; sensor<=NUMBER_OF_RELAYS;sensor++, pin++) { // Register all sensors to gw (they will be created as child devices) gw.present(sensor, S_LIGHT); // Then set relay pins in output mode pinMode(pin, OUTPUT); // Set relay to last known state (using eeprom storage) if (gw.loadState(sensor) == RELAY_OFF) { digitalWrite(pin, RELAY_OFF); gw.wait(5000); digitalWrite(pin, RELAY_ON); } } } void loop() { // Alway process incoming messages whenever possible gw.process(); } void incomingMessage(const MyMessage &message) { // We only expect one type of message from controller. But we better check anyway. if (message.type==V_LIGHT) { // Change relay state if (message.getBool() == RELAY_OFF) { digitalWrite(message.sensor-1+RELAY_1, RELAY_OFF); gw.wait(5000); digitalWrite(message.sensor-1+RELAY_1, RELAY_ON); } // Store state in eeprom gw.saveState(message.sensor, message.getBool()); // Write some debug info Serial.print("Incoming change for sensor:"); Serial.print(message.sensor); Serial.print(", New status: "); Serial.println(message.getBool()); } }```
  • Forum Banner on Screen

    notification screen gateway
    31
    0 Votes
    31 Posts
    12k Views
    hekH
    Understand it might be annoying.. We run the latest version of the notif-plugin mentioned above (0.3.1). So it seems they still have some issues. They had an issue (which is closed) that sound like the things you experience. I can't seem to find any related user setting in my account either. https://github.com/psychobunny/nodebb-plugin-desktop-notifications/issues/19
  • Serial RPi Gateways

    2
    0 Votes
    2 Posts
    828 Views
    ?
    Sorry, just released I already posted this! https://forum.mysensors.org/topic/5488/rpi-as-a-node completely forgot I had!
  • Stepper wont work with Mysensors

    6
    0 Votes
    6 Posts
    2k Views
    TON RIJNAARDT
    @ Pansen It work now! When connect the radio then the 4e led and stepper is working. Thanks for the help.
  • Has anyone played with the LTC3106?

    6
    0 Votes
    6 Posts
    2k Views
    D
    @flopp Yes, the LTC3105 is also an excellent choice for operating from a single solar cell, which is what is was designed for. I'm sorry, I was un-clear in my previous response. I had been suggesting the LTC3525 as an alternate to the MAX1724. dave
  • Gateway in Client Mode and 2 Controller?

    7
    0 Votes
    7 Posts
    2k Views
    FotoFieberF
    @LastSamurai As long as the veras don't try to be the main controller at the same time.

13

Online

11.8k

Users

11.2k

Topics

113.2k

Posts