MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.

    [ MMM-LEDStripControl ] - Control a LED strip with optional Pong game support

    Scheduled Pinned Locked Moved Utilities
    2 Posts 2 Posters 428 Views 2 Watching
    Loading More Posts
    • 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.
    • wishmaster270W Offline
      wishmaster270 Module Developer
      last edited by wishmaster270

      Description:

      This module controls a led strip (in my case a WS2801 strip with 160 leds or an WS2813 strip with 300 leds) with notifications that are converted to MQTT messages with help of the module MMM-MQTTbridge of sergge1 ([https://github.com/sergge1/MMM-MQTTbridge]). The led strip will be controlled with a Python based script that runs on a second Raspberry Pi which is connected to the network and registers to the MQTT topics. The different configuration options of the led strip are grouped into element groups. It is possible to hide unneeded groups. The current active element is marked with an red square. The active element can be changed either by touch or notification. Also the values can be changed by notification or touch. The touch icons provide two different steppings for up and down.

      The Python script supports the pong game. If the second button is pressed within a configured interval after the first one the pong mode starts. An running light will be initiated and the two players need to press their button in the moment the running light reaches their end of the strip. If the players hit the button to early or late the other player gets an hit. After an configurable amount of games the final result will be displayed and the strip changes back to normal mode. Each time the running light turns around it gets faster.
      This script is provided within the following repository: PythonLedControl. It currently supports all WS2801 and WS281X strips.

      Download:

      MMM-LEDStripControl
      [card:Tom-Hirschberger/MMM-LEDStripControl]


      Version 0.0.3

      • prefixed all CSS classes with the module name
      • fixed all issues reported by the new automatic module scanning script developed by @KristjanESPERAN

      Version 0.0.2

      • Multi-Instance-support
      • Fixed a issue which caused config values to be send in a wrong format
      • added examples of howto control led strips with ESP8266 or ESP32 micro controllers

      Version 0.0.1

      The initial release provides the following features

      • All elements are included to change the output state, color and pong game options of an led strip either with notifications or via touch elements
      • The to be displayed elements can be configured
      • The initial values, the steppings and the minimum values and maximum values can be configured
      • The module will react to configuration changes of the led strip
      • The layout is based on flexbox and can be changed easy in CSS

      Screenshots

      1 Reply Last reply Reply Quote 1
      • cowboysdudeC Offline
        cowboysdude Module Developer
        last edited by

        Nice job!

        1 Reply Last reply Reply Quote 0
        • 1 / 1
        • First post
          Last post
        Enjoying MagicMirror? Please consider a donation!
        MagicMirror created by Michael Teeuw.
        Forum managed by Sam, technical setup by Karsten.
        This forum is using NodeBB as its core | Contributors
        Contact | Privacy Policy