Oddbean new post about | logout
 nostr:npub1ca0rmtrccdzjsgtn0mhg2a8k4gzw4jj6exx2gldvnfn68vufgrvqq4qfax 

Good question and correct initial assumption! 

No, I can't.  The dimmer I use for my limmers are called TRIAC dimmers. AC signals have alternatinf current and voltage. The current is a sine wave and voltage a cosine wave. Thus, they are always out by 90°. The TRIAC detects when the current signal crosses the zero line and then only changes the PWM voltage. This removes flickering and is more energy efficient.

Detectong this switch must be done at 2x 60Hz due to the Nyquist-Shannon sampling theorem. This detection is done with a hardware interrupt pin to allow the software to run faster. The #RaspberryPi and #Klipper do not support this.

So I use a separate peocessor, which does allow this and communicate it back to Klipper and basically only gets the PWM signal and then does the rest.

nostr:npub12atwfrq4rfv7fqara6gzsgrgj7k8ngewzl5nzs46agwyxzh0e25qxlme5y #3dprinting