Dimming an AC-powered LED using Johnny-Five

105 views Asked by At

Is it possible to control Dimmable AC-powered LEDs using J5 on an ESP8266?

Working with the following:

Question: First up, Is this even possible using J5 over WiFi with an ESP8266? I've read there are latency issues that cause flickering.

But assuming it is nonetheless possible...

Here's what I understand so far:

  • Connect the Dimmer's PWM pin to a PWM-enabled ESP GPIO
  • Connect Dimmer's Z-C (Zero Crossing) pin to another ESP GPIO set for Digital Read? or Write?

Question: On the J5 side, then what? Been looking at this StackExchange page for clues Among the key commands in Arduino IDE is attachInterrupt (e.g. attachInterrupt(0, zero_crosss_int, RISING))

Question: Is there an equivalent to attachInterrupt() in J5?

0

There are 0 answers