Skip to content

General Discussion

1.6k Topics 14.2k Posts

A place to talk about whateeeever you want

  • How to access Uservariables (Domoticz)

    6
    0 Votes
    6 Posts
    3k Views
    P
    Ok, Thanks Guy's thats what i needed! I'll create a dummy sensor and use that for I/O.
  • send updates regularly in noides HOW ?

    5
    0 Votes
    5 Posts
    2k Views
    pepsonP
    I dont understand and i am begginer. Can you explaine me more and give me ready solution please ? This is my actual sketch which i use: /** DESCRIPTION Sketch for 2x relay with buttons monostable. After back power all relays set OFF and send correct status OFF to controller. */ // Enable debug prints to serial monitor #define MY_DEBUG // Enable and select radio type attached #define MY_RADIO_NRF24 //#define MY_RADIO_RFM69 // Enabled repeater feature for this node #define MY_REPEATER_FEATURE #include <SPI.h> #include <MySensors.h> #include <Bounce2.h> // Define 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 // Define Sensor ID's #define SSR_A_ID 1 // Id of the sensor child #define SSR_B_ID 2 // Id of the sensor child // Define buttons and relays const int buttonPinA = 3; const int buttonPinB = 4; const int relayPinA = 5; const int relayPinB = 6; // Define Variables int oldValueA = 0; int oldValueB = 0; bool stateA = false; bool stateB = false; int trigger = 0; Bounce debouncerA = Bounce(); Bounce debouncerB = Bounce(); MyMessage msgA(SSR_A_ID, V_STATUS); MyMessage msgB(SSR_B_ID, V_STATUS); void setup() { pinMode(buttonPinA, INPUT_PULLUP); // Setup the button Activate internal pull-up pinMode(buttonPinB, INPUT_PULLUP); // Setup the button Activate internal pull-up // After setting up the buttons, setup debouncer debouncerA.attach(buttonPinA); debouncerA.interval(5); debouncerB.attach(buttonPinB); debouncerB.interval(5); // Make sure relays are off when starting up digitalWrite(relayPinA, RELAY_OFF); digitalWrite(relayPinB, RELAY_OFF); // Then set relay pins in output mode pinMode(relayPinA, OUTPUT); pinMode(relayPinB, OUTPUT); } void presentation() { // Send the sketch version information to the gateway and Controller sendSketchInfo("2xRelay with monostable", "1.0"); // Register all sensors to gw (they will be created as child devices) present(SSR_A_ID, S_LIGHT); present(SSR_B_ID, S_LIGHT); } /* Example on how to asynchronously check for new messages from gw */ void loop() { if (trigger == 0){ send(msgA.set(false)); // Send off state for relayA to ensure controller knows the switch is off send(msgB.set(false)); // Send off state for relayB to ensure controller knows the switch is off trigger = 1; } debouncerA.update(); // Get the update value int valueA = debouncerA.read(); if (valueA != oldValueA && valueA == 0) { send(msgA.set(stateA ? false : true), true); // Send new state and request ack back } oldValueA = valueA; debouncerB.update(); // Get the update value int valueB = debouncerB.read(); if (valueB != oldValueB && valueB == 0) { send(msgB.set(stateB ? false : true), true); // Send new state and request ack back } oldValueB = valueB; } void receive(const MyMessage &message) { // We only expect one type of message from controller. But we better check anyway. if (message.type == V_STATUS) { switch (message.sensor) { case 1: stateA = message.getBool(); digitalWrite(message.sensor + 4, stateA ? RELAY_ON : RELAY_OFF); break; case 2: stateB = message.getBool(); digitalWrite(message.sensor + 4, stateB ? RELAY_ON : RELAY_OFF); break; } // Write some debug info Serial.print("Incoming change for sensor:"); Serial.println(message.sensor); Serial.print("from node:"); Serial.println(message.sender); Serial.print(", New status: "); Serial.println(message.getBool()); } }```
  • RPI + ESP8266

    4
    0 Votes
    4 Posts
    2k Views
    mfalkviddM
    @CRF interesting. Domoticz seems to have removed support for the image. This old page had information https://www.domoticz.com/wiki/index.php?title=Domoticz_RaspberryPi_SD_Image&oldid=216&diff=prev I guess installing by running sudo curl -L install.domoticz.com | bash is the way to go nowadays.
  • This topic is deleted!

    2
    0 Votes
    2 Posts
    40 Views
  • Am I crazy?

    13
    0 Votes
    13 Posts
    7k Views
    fernando alvarez buyllaF
    Your idea is possible you need a good case for that meaby a pelican case with clear top for the solar cell Something like this http://www.ebay.com/itm/Pelican-1050-Solid-Black-Micro-Case-with-Free-engraved-nameplate-/231011576632?hash=item35c95ceb38:g:BDIAAOxyrxZR1xrC Solar panel http://www.ebay.com/itm/X-DRAGON-20000mAh-Dual-USB-Solar-Power-Bank-iPhone-6-Plus-5s-5c-5-iPad-/152078147230?tfrom=152159462026&tpos=top&ttype=price&talgo=undefined Lipo charger http://www.ebay.com/itm/2Stuck-Lipo-Lion-1S-Akku-Mini-USB-Lademodul-TP4056-fur-Solar-charger-Arduino-/171934584575?hash=item2808198eff:g:huoAAOSwsB9V~VPC Ypou need a good silicone for any hole you drill on the box and I this this will be able to do what you need
  • RS485 bus voltage ?? Can you mix nodes using 3/3v and 5v transceivers ?

    2
    0 Votes
    2 Posts
    3k Views
    mfalkviddM
    @Redguy from http://m.electronicdesign.com/what-s-difference-between/what-s-difference-between-rs-232-and-rs-485-serial-interfaces: "A logic 1 is a level greater than –200 mV, and a logic 0 is a level greater than +200 mV. Typical line voltage levels from the line drivers are a minimum of ±1.5 V to a maximum of about ±6 V. " So you should be able to mix them as much as you like.
  • Which solder paste works best in a "reflow" (toaster) oven?

    2
    0 Votes
    2 Posts
    1k Views
    S
    I use Chipquick noclean SnPb Type 3 and 4.
  • Help needed - SSR switch / SCR dimmer

    15
    0 Votes
    15 Posts
    6k Views
    K
    @Koresh No worries - all help is appreciated - fast or slow :)
  • Node behavior after connection lost

    4
    0 Votes
    4 Posts
    1k Views
    @hek said: It takes a few failed transmission before it tries to "find new parent". Not sure what happended here without seeing the node log. @mfalkvidd said: @รอเรือ which version are you using? 2.0 has a problem with nodes that go back to sleep too soon after a failed send. This is fixed in the development version. See https://github.com/mysensors/MySensors/pull/558 for details. Thanks guys! Well, I'm on 2.0.0. I'm not the "adventurous type" so I'm not on the development version if You get my point (ha ha). It's good to know that there exists some healing mechanisms in the communication. I might wait for the next stable release or I might build me a dedicated "MySensor : RepeaterNode" with an external antenna to facilitate the communication with my upcoming battery powered nodes in my garden and for the lawn mower that really must be automated soon. Hej tjolahopp! (Cheers!)
  • Looking for in wall project box

    1
    0 Votes
    1 Posts
    690 Views
    No one has replied
  • 0 Votes
    1 Posts
    705 Views
    No one has replied
  • RFM69 and nRF24L01+

    3
    0 Votes
    3 Posts
    1k Views
    Sander TeunissenS
    Wow ! speed of light ;-) Thanks. All clear.
  • Question about step-down-module.

    7
    0 Votes
    7 Posts
    2k Views
    N
    @Cliff-Karlsson Assuming your PSU is only driving your buck converter, then, if the device data can be believed (a big IF by the way), then yes, I would expect it could deliver 12a at 5v. That said, you're buying a cat in a bag, and from a no-name Chinese manufacturer no less. So, for instance, who knows whether the parts are actually rated for what they proclaim themselves to be. Those are electrolytic caps. Usually, they don't do well when exposed to heat, and in that design they look to be quite close to the heat sinks. Are the caps really rated for whatever heat you might encounter? That's a big unknown with these types of cheap boards. On the other hand, it's only $4, so maybe that's a trade-off you're willing to live with.
  • Alternative to ArduinoIDE

    29
    0 Votes
    29 Posts
    10k Views
    S
    @andrew Hello Andrew, as Anticimex already answered also other IDE's are possible (Atmel Studio with a arduino plugin seems to work) Atom, and others I use the Eclipse + plugin solution and are happy with it. It is really a powerfull solution with many configuration options. I had a few discussions with the maintainer of sloeber (Jantje) and in general i made a few observations that summerize yours: lsee discussions on github The problem for cpp is that you have to declare the prototypes because you lose the confort from the ino suffix. Regards , Stefan
  • Possible to change LED effects from controller/domoticz?

    5
    0 Votes
    5 Posts
    4k Views
    Tore André RosanderT
    @AWI has a nice piece of code that is exactly what you are looking for, try searching for mood light here on the forum.
  • detailed Information / Release notes V2.1.0

    5
    0 Votes
    5 Posts
    1k Views
    T
    @mfalkvidd @tonyf All 2.1.0-related changes since 2.0.0 can be found here: https://github.com/mysensors/MySensors/milestone/5
  • arduino shield ethernet wiznet w5500

    2
    0 Votes
    2 Posts
    1k Views
    fmarinF
    Hi, i have read many of the posts regarding the use of ethernet gateways i continue with wiznet5100 :), and i continue to discover the mysensor world regards fred just a little point : how to close this post ?
  • Looking to buy a vera controller

    10
    1 Votes
    10 Posts
    3k Views
    R
    I purchased an Edge. Now that it's been a few months I would rather have purchased the Plus. I'm still happy to own an Edge.
  • D20mm Atomizing Transducer

    1
    0 Votes
    1 Posts
    746 Views
    No one has replied
  • How to build a repeater

    14
    0 Votes
    14 Posts
    9k Views
    S
    @mfalkvidd said: @stingone what does the serial debug output say? TSM:UPL TSP:PING:SEND (dest=0) !TSP:MSG:SEND 6-6-0-0 s=255,c=3,t=24,pt=1,l=1,sg=0,ft=0,st=fail:1 TSP:CHKUPL:FAIL (hops=255) !TSM:UPL:FAIL TSM:FPAR TSP:MSG:SEND 6-6-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc: !TSP:SEND:TNR TSP:MSG:READ 5-5-6 s=255,c=3,t=8,pt=1,l=1,sg=0:1 TSP:MSG:FPAR RES (ID=5, dist=1) TSP:MSG:PAR OK (ID=5, dist=2) !TSP:SEND:TNR TSM:FPAR:OK TSM:ID TSM:CHKID:OK (ID=6) TSM:UPL TSP:PING:SEND (dest=0) !TSP:MSG:SEND 6-6-5-0 s=255,c=3,t=24,pt=1,l=1,sg=0,ft=0,st=fail:1 TSP:CHKUPL:FAIL (hops=255) !TSM:UPL:FAIL TSM:FPAR TSP:MSG:SEND 6-6-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc: Init complete, id=6, parent=255, distance=255, registration=1 !TSP:SEND:TNR``` Starting sensor (RNNNA-, 2.0.0) TSM:INIT TSM:RADIO:OK TSP:ASSIGNID:OK (ID=6) TSM:FPAR TSP:MSG:SEND 6-6-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc: TSM:FPAR TSP:MSG:SEND 6-6-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc: TSM:FPAR TSP:MSG:SEND 6-6-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc: TSM:FPAR TSP:MSG:SEND 6-6-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc: !TSM:FPAR:FAIL !TSM:FAILURE TSM:PDT TSM:INIT TSM:RADIO:OK TSP:ASSIGNID:OK (ID=6) TSM:FPAR TSP:MSG:SEND 6-6-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc: TSM:FPAR TSP:MSG:SEND 6-6-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc: TSM:FPAR TSP:MSG:SEND 6-6-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc: TSM:FPAR TSP:MSG:SEND 6-6-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc: !TSM:FPAR:FAIL !TSM:FAILURE TSM:PDT TSM:INIT TSM:RADIO:OK TSP:ASSIGNID:OK (ID=6) TSM:FPAR TSP:MSG:SEND 6-6-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc: TSM:FPAR TSP:MSG:SEND 6-6-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc: TSM:FPAR TSP:MSG:SEND 6-6-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc: TSM:FPAR TSP:MSG:SEND 6-6-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc: !TSM:FPAR:FAIL !TSM:FAILURE TSM:PDT

15

Online

12.2k

Users

11.2k

Topics

113.4k

Posts