• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
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-GPIO-HANDLER - Handles GPIO inputs and outputs including PWM

Scheduled Pinned Locked Moved System
pwmgpiohandlerbuttonbuttonspiroutput
2 Posts 2 Posters 420 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.
  • S Offline
    Sjohn21
    last edited by Sjohn21 Jan 16, 2024, 9:34 PM Jan 16, 2024, 9:18 PM

    Description:

    While building my Mirror, I could not find a module that supports PWM (Pulse Width Modulation) and/or handles GPIO as a whole (input & output).
    The Mirror had LEDs and LED strips installed according to this instruction (with MOSFETs).
    Though the instructions do not mention PWM explicitly, the concept uses Software PWM.

    This module supports:

    • Both Hardware and Software PWM and some PWM effects, mostly optimized for LEDs. (Breath, Pulse, Flash, Fade-in, Fade-out).
    • On/off handling of outputs (1/0 state, not using PWM).
    • Input handling of buttons (short & long press), PIR, Other.

    The module sends a Notification if an input is changed, which can be used to start actions in other modules.
    The module starts output handling from defaults set or when a HANDLE_PWM or HANDLE_ON/OFF notification is received. Payload in notification sets the options.

    Structured tables with all options can be found in the readme

    Note

    For clarity I would like to state you will need (an)other module(s) to send notifications or to received notification do something with.

    I’m currently working on a dynamic menu (for my buttons) which this module will work with. I will add this here later.

    I post this here as other developers might benefit for the use with PWM, others might want to write a module to work with this module.

    I am open for comments or suggestions.

    Screenshots:

    There are no screenshots as this is a system module doing things in te background

    Download:

    Can be downloaded and installed according the instructions: https://github.com/Sjohn21/MMM-GPIO-HANDLER#Installation


    Changelog

    Version 2024-01-16

    • Initial release
    K 1 Reply Last reply Jan 16, 2024, 10:55 PM Reply Quote 2
    • K Offline
      KristjanESPERANTO Module Developer @Sjohn21
      last edited by Jan 16, 2024, 10:55 PM

      Nice! :smiley: Please add it to the modules list: https://github.com/MagicMirrorOrg/MagicMirror/wiki/3rd-party-modules.

      1 Reply Last reply Reply Quote 1
      • S Sjohn21 referenced this topic on Jan 17, 2024, 7:43 PM
      • 1 / 1
      1 / 1
      • First post
        1/2
        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