Light Dimmer / Triac Driver

Warning message

The Propeller Object Exchange system is decommissioned and replaced with a GitHub repository to house the same existing and future Propeller objects. As of 12/5/2019, this site is read-only. You can continue to browse and download objects from here for a limited time; however, please begin using the Parallax Propeller repository for future reference.
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0
Request group membership
By: created: 2013-04-10 | updated: 2013-04-10

This is a small driver for controlling / making a Triac based light dimmer. Nothing exceptional but it works and is easy to work with - 1 variable. It uses the zero crossing signal from an opto-isolator and then delays triggering the triac (also through an opto-isolator) until the proper amount of time has elapsed. Allows setting the brightness of a light (or other resistive load) from 0% to 100% in 256 steps. I have also included a small 120-Hz zero-crossing simulator object so you can either simulate the hardware signal during development or use it to dim LEDs or other Pulse Width Modulated devices not attached to a 60-Hz power line.


Original File Upload
Package icon Dimmer.zip30.26 KB