Skip to content
  • MySensors
  • OpenHardware.io
  • Categories
  • Recent
  • Tags
  • Popular
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo
Michel - ItM

Michel - It

@Michel - It
About
Posts
42
Topics
6
Shares
0
Groups
1
Followers
1
Following
3

Posts

Recent Best Controversial

  • Orange Pi Zero H2
    Michel - ItM Michel - It

    I joke a little, I agree with the basic rules

    Hardware

  • Orange Pi Zero H2
    Michel - ItM Michel - It

    @ramoncarranza I kill You! ! by @hek alt text

    Hardware

  • Orange Pi Zero H2
    Michel - ItM Michel - It

    I bought an orange pi 2 but by many problems and support is null.
    This orange pi zero for what you use it for mysensor?

    Hardware

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

    @mfalkvidd for me is new and on the forum I do not find many skeck Library 2.0
    for this device :cry: alt text

    General Discussion

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

    I wondered, but you can create an Ethernet gateway with the new Arduino MCU wifi module? and where can I find sketches Library 2.0? thank you all

    General Discussion

  • RFID Garage door opener
    Michel - ItM Michel - It

    @Mercury69 you can post the sketch ?

    My Project

  • 💬 RFID Lock Sensor
    Michel - ItM Michel - It

    Hi, I have a MFRC522 module, and I would like to implement it with 2.0 library. could I use this code?

    Announcements

  • 💬 Building a Serial Gateway
    Michel - ItM Michel - It

    @mfalkvidd I wanted to see if you were ready :satisfied: It can help someone

    Announcements

  • 💬 Building a Serial Gateway
    Michel - ItM Michel - It

    you have been very kind, you also tell me, where can I find the old serial sketches compatible for mysensors version 1.5?

    Announcements

  • 💬 Building a Serial Gateway
    Michel - ItM Michel - It

    I have two questions ...
    one) this sketch only works with version mysensors_v2.0 it?
    two) all the old skeck are no longer usable?
    thank you

    Announcements

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

    hello everyone, I have created a two modules with 3d printer, I followed another project created by Barte, to open the garage, but I've used it, to turn to disable alarm inside the house, of course I made some changes the original design. Now I finished and running the project, I mounted the RFID-rc522 form and i connected to another module where inside there is Arduino and radio. I connected via RJ45 cable and the distance of 3 meters. The radio module is no longer recognized. my question is spontaneous at this point. How can I fix the problem?

    0_1464953572731_rfidCompreto.jpg 0_1464953579700_rfidmoduloporta-180x180.jpg 0_1464953586849_rfidcentralina-180x180.jpg

    Attention to the fourth pin from the bottom not connected to rc522 form because that cable I used for the LED and therefore not connected to rc522
    0_1464953864460_mysensor nano+radio+rfid_pcb.jpg

    0_1464954180603_allarm.jpg

    Hardware

  • RFID Garage door opener
    Michel - ItM Michel - It

    hello to all guys, I noticed some problems, if the power goes away there is a flaw in the system. I modified the source as needed to me, now you turn the sensor on domoticz when you turn on and off when you turn off. I modified the project to create an alarm homemade I configured via lua script the motion sensors. I mounted on the bell so as to turn on and off when I go out or within the home. thank you all

    0_1464953572731_rfidCompreto.jpg 0_1464953579700_rfidmoduloporta-180x180.jpg 0_1464953586849_rfidcentralina-180x180.jpg
    0_1464953864460_mysensor nano+radio+rfid_pcb.jpg
    0_1464954180603_allarm.jpg

    My Project

  • New nRF24 driver in MySensors 2.0.0
    Michel - ItM Michel - It

    @tekka wow

    Announcements mysensors 2.0.0 nrf24

  • problem to code?
    Michel - ItM Michel - It

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

    Bug Reports

  • problem to code?
    Michel - ItM Michel - It

    the problem was the radio module nrf24, replacing it I solved

    ps
    when you see lots of nrf24 not buy them on the cheap. thank you all for the support

    Bug Reports

  • 2 SWITCH 2 RELAY
    Michel - ItM Michel - It

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

    Enclosures / 3D Printing

  • problem to code?
    Michel - ItM Michel - It

    alt text
    alt text

    Bug Reports

  • problem to code?
    Michel - ItM Michel - It
    
    #include <MySigningNone.h>
    #include <MyTransportNRF24.h>
    //#include <MyTransportRFM69.h>
    #include <MyHwATMega328.h>
    #include <MySensor.h>
    #include <SPI.h>
    #include "Bounce2.h"
    
    //char sketch_name[] = "Multy-Relay";
    //char sketch_ver[]  = "0.1";
    
    #define RELAY_ON 0                      // switch around for realy HIGH/LOW state
    #define RELAY_OFF 1
    #define DEBUG On
    //
    MySensor gw;
    
    #define RADIO_ID 45                    // radio Id, whatever channel you assigned to
    #define noRelays 2
    const int relayPin[] = {3,4}; //  switch around pins to your desire
    const int buttonPin[] = {6,7}; //  switch around pins to your desire
    
    class Relay             // relay class, store all relevant data (equivalent to struct)
    {
    public: 
      int buttonPin;                    // physical pin number of button
      int relayPin;                     // physical pin number of relay
      byte oldValue;                    // last Values for key (debounce)
      boolean relayState;               // relay status (also stored in EEPROM)
    };
    
    Relay Relays[noRelays];
    Bounce debouncer[noRelays];
    MyMessage msg[noRelays];
    
    void setup()
    {
      gw.begin(incomingMessage, RADIO_ID, true);
      delay(500);
      gw.sendSketchInfo("Bar-Multy-Relay&Interruttori", "0.4");
      delay(500);
    
      // Initialize Relays with corresponding buttons
      for (int i = 0; i < noRelays; i++)
      {
        Relays[i].buttonPin = buttonPin[i];              // assign physical pins
        Relays[i].relayPin = relayPin[i];
        msg[i].sensor = i;                                   // initialize messages
        msg[i].type = V_LIGHT;
        debouncer[i] = Bounce();                        // initialize debouncer
        debouncer[i].attach(buttonPin[i]);
        debouncer[i].interval(5);
        pinMode(Relays[i].buttonPin, INPUT_PULLUP);
        pinMode(Relays[i].relayPin, OUTPUT);
        Relays[i].relayState = gw.loadState(i);                               // retrieve last values from EEPROM
        digitalWrite(Relays[i].relayPin, Relays[i].relayState ? RELAY_ON : RELAY_OFF); // and set relays accordingly
        gw.send(msg[i].set(Relays[i].relayState ? true : false));                 // make controller aware of last status
        gw.present(i, V_LIGHT);                               // present sensor to gateway
        delay(250);
    
      }
    }
    
    void loop()
    {
      gw.process();
      for (byte i = 0; i < noRelays; i++)
      {
        debouncer[i].update();
        byte value = debouncer[i].read();
        //if (value != Relays[i].oldValue && value == 0)
        if (value != Relays[i].oldValue)
        {
          Relays[i].relayState = !Relays[i].relayState;
          gw.send(msg[i].set(Relays[i].relayState ? true : false));
          digitalWrite(Relays[i].relayPin, Relays[i].relayState ? RELAY_ON : RELAY_OFF);
          gw.saveState( i, Relays[i].relayState );
        }                 // save sensor state in EEPROM (location == sensor number)
    
        Relays[i].oldValue = value;
    
      }
    }
    
    // process incoming message
    void incomingMessage(const MyMessage &message)
    {
    
      if (message.type == V_LIGHT)
      {
        if (message.sensor < noRelays)            // check if message is valid for relays..... previous line  [[[ if (message.sensor <=noRelays){ ]]]
        {
          Relays[message.sensor].relayState = message.getBool();
          digitalWrite(Relays[message.sensor].relayPin, Relays[message.sensor].relayState ? RELAY_ON : RELAY_OFF); // and set relays accordingly
          gw.saveState( message.sensor, Relays[message.sensor].relayState ); // save sensor state in EEPROM (location == sensor number)
        }
      }
    }
    
    

    REport

    send: 44-44-0-0 s=255,c=3,t=15,pt=2,l=2,sg=0,st=fail:0
    send: 44-44-0-0 s=255,c=0,t=18,pt=0,l=5,sg=0,st=fail:1.5.4
    send: 44-44-0-0 s=255,c=3,t=6,pt=1,l=1,sg=0,st=fail:0
    repeater started, id=44, parent=0, distance=0
    send: 44-44-0-0 s=255,c=3,t=11,pt=0,l=25,sg=0,st=fail:Bar-Multy-Relay&Interrutt
    send: 44-44-0-0 s=255,c=3,t=12,pt=0,l=3,sg=0,st=fail:0.4
    send: 44-44-0-0 s=0,c=1,t=2,pt=2,l=2,sg=0,st=fail:0
    find parent
    send: 44-44-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,st=bc:
    send: 44-44-0-0 s=0,c=0,t=2,pt=0,l=0,sg=0,st=fail:
    send: 44-44-0-0 s=1,c=1,t=2,pt=2,l=2,sg=0,st=fail:0
    send: 44-44-0-0 s=1,c=0,t=2,pt=0,l=0,sg=0,st=fail:
    send: 44-44-0-0 s=0,c=1,t=2,pt=2,l=2,sg=0,st=fail:1
    send: 44-44-0-0 s=1,c=1,t=2,pt=2,l=2,sg=0,st=fail:1
    
    <<< reset button
    
    send: 44-44-0-0 s=255,c=3,t=15,pt=2,l=2,sg=0,st=fail:0
    send: 44-44-0-0 s=255,c=0,t=18,pt=0,l=5,sg=0,st=fail:1.5.4
    send: 44-44-0-0 s=255,c=3,t=6,pt=1,l=1,sg=0,st=fail:0
    repeater started, id=44, parent=0, distance=0
    send: 44-44-0-0 s=255,c=3,t=11,pt=0,l=25,sg=0,st=fail:Bar-Multy-Relay&Interrutt
    send: 44-44-0-0 s=255,c=3,t=12,pt=0,l=3,sg=0,st=fail:0.4
    send: 44-44-0-0 s=0,c=1,t=2,pt=2,l=2,sg=0,st=fail:1
    find parent
    send: 44-44-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,st=bc:
    send: 44-44-0-0 s=0,c=0,t=2,pt=0,l=0,sg=0,st=fail:
    send: 44-44-0-0 s=1,c=1,t=2,pt=2,l=2,sg=0,st=fail:1
    send: 44-44-0-0 s=1,c=0,t=2,pt=0,l=0,sg=0,st=fail:
    send: 44-44-0-0 s=0,c=1,t=2,pt=2,l=2,sg=0,st=fail:0
    send: 44-44-0-0 s=1,c=1,t=2,pt=2,l=2,sg=0,st=fail:0
    

    :triumph:

    Bug Reports

  • 2 SWITCH 2 RELAY
    Michel - ItM Michel - It

    0_1461447103800_Cattura.PNG
    File 3d print
    0_1461521471055_PROGETTO_base.stl

    0_1461447612068_Cattura2.PNG
    I need help on the code

    Pin 3/4 Relay
    alt text

    Pin 6/7 Switches
    alt text

    https://codebender.cc/sketch:291491
    BinarySwitch Sensor Example, we agree to aid in the development of the code.
    work in progress.

    Enclosures / 3D Printing

  • Relay_Actuator add second relay?
    Michel - ItM Michel - It

    solution vera

    http://forum.mysensors.org/topic/799/my-relay-module

    Troubleshooting
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • MySensors
  • OpenHardware.io
  • Categories
  • Recent
  • Tags
  • Popular