~bosco/dimd

A program to control an 8 channel AC dimmer board
d5649aaf — Ryan Tolboom 3 months ago
read ALL lines if available
e3e5f350 — Ryan Tolboom 3 months ago
Minor fixes
cfbe7757 — Ryan Tolboom 4 months ago
Fixed README.md link

refs

main
browse  log 

clone

read-only
https://git.sr.ht/~bosco/dimd
read/write
git@git.sr.ht:~bosco/dimd

You can also use your local clone with git send-email.

#dimd: 8 Channel AC Light Dimmer Daemon

Usage: dimd [OPTION...]
A program to control an 8 channel AC dimmer board. Once running, this program
reads 'CHANNEL BRIGHTNESS' lines from STDIN where CHANNEL is 0-7 and BRIGHTNESS
is 0-100. An EOF (Ctrl-D) will end the program.

Not all loads act dependably if the TRIAC is fired too soon before or after a
zero crossing. You can narrow the range used with the START and END options.
There new range will still split into 100 levels.

  -e, --end=END              End of effective range (when the lights turn off
                             with start=0 and end=100). Defaults to 75.
  -p, --pins=PIN_MAPPING     Comma separated list of pins (BCM) mapping to
                             SYNC,CH0,CH1,CH2,CH3,CH4,CH5,CH6,CH7. Defaults to
                             2,3,4,17,27,22,10,9,11
  -s, --start=START          Start of effective range (when the lights turn on
                             with start=0 and end=100). Defaults to 25.
  -v, --verbose              Produce more output
  -?, --help                 Give this help list
      --usage                Give a short usage message
  -V, --version              Print program version

Mandatory or optional arguments to long options are also mandatory or optional
for any corresponding short options.

Report bugs to ryan@using.tech.

#Features

  • Automatic AC frequency detection
  • Adjustable range limiting
  • Single threaded
  • Uses libgpiod
  • Runs on a Raspbery Pi

#Supported Hardware

KRIDA Electronics 8CH AC Light Dimmer Module Controller Board V3

#Building

Make sure you have the libgpiod-dev package installed and run ./make.sh