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
D

Delranon

@Delranon
About
Posts
1
Topics
1
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Relays and Touch-Panel
    D Delranon

    Hi,

    I´m using a Touchpanel with 16 Buttons for controlling different lights in my basement/man-cave.
    It is this one: http://www.aliexpress.com/item/New-16-Way-Channel-Capacitive-Touch-Switch-Digital-Touch-Sensor-Module-PCB-Board-TTP229-Electronic-Components/32343209711.html

    Each Button switch one Relay - this is working so far - but now i want to integrate the relays also with mysensors,
    so that i can see the Status, and switch the Relais also with the controller (domotiz).
    My current working code is here: https://github.com/Delranon/cave-control/blob/master/cave_control/cave_control.ino

    I´ve seen the RelayActuator Example but these are always with a hardware button, but i get the button as a variable from the TouchPanel-Library and
    switch the relays like this:

    if (key == 5)   //Button pushed
          { if (Relais5State == 0)         // Relais is currently off
            { digitalWrite(Relais5, LOW);  //turn Relais on
    

    And now i´m looking how to send to the controller that relay 1 is turned on and that i can it also turn off via the controller interface...

    Any help or tips would be awesome!

    Thanks Del

    Hardware
  • Login

  • Don't have an account? Register

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