
The only thing you may need to do is remove the line #include "neopixel/neopixel.h" Your Photon should be listed here.Ĭreate a new app and import or copy the code attached. To program the Photon, log on to with your Particle account. If it is not yet connected to the Wifi and/or linked to your Particle account, please follow this guide to connect it. When connected to the Wifi network, the LED on the Photon will breathe cyan. To work as an IoT device, the Particle Photon needs to be connected to your Wifi network and connected to your Particle account.


Note: You may connect the Neopixel Ring IN and momentary switches to different digital pins, but you will then need to change the pin numbers in the code in the next step accordingly. The switch connected to pin D2 will be used to cycle through the colours, the switch connected to pin D3 will be used to turn the LED ring off.
PERSONALIZED WEATHER INDICATOR HOW TO
See the schematic on how to connect the Photon, NeoPixel ring and momentary switches to the breadboard. The two switches are then connected to pins D2 and D3 on the Photon. The momentary switches are fed with 3.3V DC from the 3.3V Pin on the Photon. We recommend using a breadboard for easy prototyping, but you may also directly connect the wires to your Photon.Ĭonnect PWR on the NeoPixel ring to the Photon's VIN pin.Ĭonnect GND on the NeoPixel ring to the Photon's GND pin.Ĭonnect IN on the NeoPixel ring to the Photon's D4 pin.įor testing purposes, we have connected two momentary switches to the Photon through a breadboard, so it is possible to manually change the LED colours as well.

The NeoPixel ring can now be connected to Photon. The Particle Photon is powered through USB (use the Micro USB cable with adapter for this). The LED-ring is controlled by a Particle Photon, which combines a powerful STM32 ARM Cortex M3 microcontroller and a Cypress Wi-Fi chip and is easily programmable through the Particle development tools. To display the colors, an AdaFruit NeoPixel ring with 12 digital controllable WS2812B LEDs is used.
