Skip to content
  • 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
C

C.r.a.z.y.

@C.r.a.z.y.
  • Getting Started
  • Controller
  • Build
  • Hardware
  • Download/API
  • Forum
  • Store
About
Posts
93
Topics
16
Shares
0
Groups
0
Followers
0
Following
2

Posts

Recent Best Controversial

  • 433mhz outlet
    C C.r.a.z.y.

    I am trying to convert this code for outlet ; http://forum.mysensors.org/topic/7/controlling-blinds-com-rf-dooya-motors-with-arduino-and-vera/10 (note its using old lib)

    +vera doesn't give auto id (all other sensor like motion etc) so i made it int hey = 14; in this way i can get sketch name etc...

    my 433 on code : 1101010101011100000000110
    my 433 off code : 1101010101011100000011000

    on-off-433.png
    code txt : outlet433

    Troubleshooting 433mhz

  • Get string data
    C C.r.a.z.y.

    Maybe one day someone will use this;

    **When sketch fails second push will work without gateway and it will restart
    **

    void loop()
    {
    gw.process();
    debouncer.update();
    value = debouncer.read();

    if (value != oldValue && value==0) {
    if (re!="1")
    {
    int oku=digitalRead(RELAY_PIN);
    if(oku==1)
    {
    digitalWrite(RELAY_PIN,0);
    }
    else
    {
    digitalWrite(RELAY_PIN,1);
    }
    asm volatile (" jmp 0"); //reboot
    }
    gw.send(msg.set(state?false:true),true); // Send new state and request ack back
    re="";
    }
    oldValue = value;
    }

    void incomingMessage(const MyMessage &message) {
    state = message.getBool();
    digitalWrite(RELAY_PIN, state?RELAY_ON:RELAY_OFF);
    gw.saveState(CHILD_ID, state);
    Serial.print("Incoming change for sensor:");
    Serial.print(message.sensor);
    Serial.print(", New status: ");
    Serial.println(message.getBool());
    re=String(message.sensor);
    }

    Troubleshooting
  • Login

  • Don't have an account? Register

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