Navigation

    • Register
    • Login
    • OpenHardware.io
    • Categories
    • Recent
    • Tags
    • Popular
    1. Home
    2. Michel - It
    3. Topics
    • Profile
    • Following
    • Followers
    • Topics
    • Posts
    • Best
    • Groups

    Topics created by Michel - It

    • Michel - It

      Gateway ethernet to modules arduino mcu wifi? O_o
      General Discussion • • Michel - It  

      4
      0
      Votes
      4
      Posts
      1240
      Views

      mfalkvidd

      @Michel---It Thanks for posting the image. Anything you find on the forum that mentions esp8266 or nodemcu will most likely work with that node, including https://www.mysensors.org/build/esp8266_gateway which is probably the best place to start. There are also several threads on how to connect local sensors to the esp8266. I would give you some pointers but I am on a train with crappy Internet.
    • Michel - It

      RFID-RC522 problem connecting via RJ45 cable
      Hardware • • Michel - It  

      1
      0
      Votes
      1
      Posts
      875
      Views

      No one has replied

    • Michel - It

      problem to code?
      Bug Reports • • Michel - It  

      7
      0
      Votes
      7
      Posts
      2185
      Views

      Michel - It

      the project http://forum.mysensors.org/topic/3721/2-switch-2-relay/2
    • Michel - It

      2 SWITCH 2 RELAY
      Enclosures / 3D Printing • • Michel - It  

      2
      3
      Votes
      2
      Posts
      2975
      Views

      Michel - It

      http://forum.mysensors.org/topic/3753/problem-to-code
    • Michel - It

      Reset Nodes
      Hardware • • Michel - It  

      1
      0
      Votes
      1
      Posts
      801
      Views

      No one has replied

    • Michel - It

      RELAY 433MHZ + KEYPAD 4x4 COMANDER (vera-domoticz)
      My Project • • Michel - It  

      3
      0
      Votes
      3
      Posts
      5643
      Views

      Michel - It

      I have one better, but how to implement it in code mysensor? . New Code > sketch + Library > https://codebender.cc/sketch:183503 Original Code #include <MyTransportNRF24.h> #include <MyHwATMega328.h> #include <MySensor.h> #include <SPI.h> #include <Wire.h> #include <RCSwitch.h> RCSwitch mySwitch = RCSwitch(); #define NODE_ID 165 #define NODE_VERSION "1.1" #define NODE_DESCRIPTION "MikRelay" #define NUMFLAKES 10 #define XPOS 0 #define YPOS 1 #define DELTAY 2 #define RADIO_TX_PIN 2 #define NUMBER_OF_RELAYS 11 // Total number of attached relays typedef struct { unsigned long address; unsigned char unit; bool dimmer; } MikParams; MikParams Mik_PARAMS[NUMBER_OF_RELAYS] = { {87311, 24, false}, {87500, 24, false}, {87491, 24, false}, {87359, 24, false}, {87539, 24, false}, {87548, 24, false}, {87536, 24, false}, {87356, 24, false}, {87503, 24, false}, {4011779, 24, false}, {4011968, 24, false} }; // NRFRF24L01 radio driver (set low transmit power by default) MyTransportNRF24 radio(RF24_CE_PIN, RF24_CS_PIN, RF24_PA_LEVEL_GW); //MyTransportRFM69 radio; // Message signing driver (none default) //MySigningNone signer; // Select AtMega328 hardware profile MyHwATMega328 hw; // Construct MySensors library MySensor gw(radio, hw); void setup() { mySwitch.enableTransmit(RADIO_TX_PIN); // init done // Show image buffer on the display hardware. // Since the buffer is intialized with an Adafruit splashscreen // internally, this will display the splashscreen. // Initialize library and add callback for incoming messages gw.begin(incomingMessage, NODE_ID, false); delay(2000); // Send the sketch version information to the gateway and Controller gw.sendSketchInfo(NODE_DESCRIPTION, NODE_VERSION); // Fetch relay status for (int sensor = 1; sensor <= NUMBER_OF_RELAYS; sensor++) { // Register all sensors to gw (they will be created as child devices) gw.present(sensor, S_LIGHT); } } void loop() { // Alway process incoming messages whenever possible gw.process(); } void incomingMessage(const MyMessage &message) { if ((message.sensor < 1) && (message.sensor >= NUMBER_OF_RELAYS)) { return; } if (message.type == V_LIGHT) { mySwitch.send(Mik_PARAMS[message.sensor - 1].address, Mik_PARAMS[message.sensor - 1].unit); // 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(", Miks: "); Serial.print(Mik_PARAMS[message.sensor - 1].address); Serial.print(", Miks: "); Serial.print(Mik_PARAMS[message.sensor - 1].unit); Serial.print(", New status: "); Serial.println(message.getBool()); } else if (message.type == V_DIMMER) { mySwitch.send(Mik_PARAMS[message.sensor - 1].address, Mik_PARAMS[message.sensor - 1].unit); } }``` I know that not everyone. but there is some kind soul can help me? I see you do not laugh!