Back to Parent

After, a switch was added so that the user could turn off the NeoPixel without having to unplug the Particle Photon. This was challenging because the way in which the NeoPixel sends information to each of its RGB LEDs. After the signal specifying the color reaches the LED, it will stay that color until otherwise specified. If the NeoPixel loses power, it will not turn back on until the circuit is closed and a signal is sent to the LEDs. To fix this. The switch is set as an input so that when the switch turns off, the Photon tells the LEDs to display no color. When it turns on, it the NeoPixel will glow a bright yellow.

Once the colors of the sunrise and sunset fading patterns were refined, I then implemented IFTTT to turn activate these functions. This was done by creating a push button on the phone that sends an event to the Particle cloud. The Photon uses a subscribe command to look for the event name and execute the function once it is received. The entirety of the code for the Sunrise Lamp, as well as the wiring diagram, can be found below.


Content Rating

Is this a good/useful/informative piece of content to include in the project? Have your say!

0