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
  1. Home
  2. Hardware
  3. Relays and Touch-Panel

Relays and Touch-Panel

Scheduled Pinned Locked Moved Hardware
1 Posts 1 Posters 1.0k Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    Delranon
    wrote on last edited by Delranon
    #1

    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

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    13

    Online

    11.7k

    Users

    11.2k

    Topics

    113.1k

    Posts


    Copyright 2025 TBD   |   Forum Guidelines   |   Privacy Policy   |   Terms of Service
    • Login

    • Don't have an account? Register

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