Philips hue documentation
By Hong Zhou Last updated 5 october 2022
#Introduction Using this manual you'll be able to build a basic "Phillips hue" prototype.
#Required hardware components
- 1x ARduino Board (We'll be using the ESP8266 Development board)
- 1x RBG Led strip
Step 1: Installing the Arduino IO Libraries
Installing the required libraries in Arduino IDE Installing Arduino IO Libraries
- click on the 3e tab of Arduino IE programm
- Search for Adafruit IO Arduino (by Adafruit) in the searchfield
- Install, choose install all
Step 2: Adafruit IO Setup Before we make use of Adafruit IO, we have to create an account and make a dashboard. Follow these steps:
- Go to https://io.adafruit.com/, click on "Get started for Free" and make an account.
- Go back to the website https://io.adafruit.com/ and look for the yellow key and click on it. (tips:widen your webbrowser to see it)
- Copy your key and username.
Step 3: Create Adafruit IO Feed and colorpicker
- Go to Dashboards > New dashboard (make a dashboard)give it a fitting name.
- Go to Dashboard click on your new dashboard
- Create a new block via:
- Choose a color picker
- Create the feed name: color
- Create the block
- Choose a color with color picker.
- If the desired color isn't visible in the Dashboard select it again.
Step 4: Changing code
- in Arduino IE: File > Examples > Adafruit IO Arduino > Adafruitio_14_neopixel (if adafruit IO Arduino is not available check if you installed the right library)
- Fill in your username and key. example: #define IO_USERNAME "fill in your username" etc.
- Fill in your wifi netwerk and password. a. NodeMCU doesn't work on 5Ghz WiFi b. Please use your own hotspot of your phone, don't worry it uses less than <0.1 Mb data a hour.
- Switch to the different tab: adafruit_14_Neopixel.ino a. change: #define PIXEL_PIN 5 to #define PIXEL_PIN D5
Step 5: Uploading the required code
-
Upload the code (I got the error: Compilation error: Missing FQBN (Fully Qualified Board Name) a. How to fix this: tools > Board > esp8266 > NodeMCU 1.0 and your port: Tools > Port > SLAB_USBtoUART.
-
activate the serial monitor
-
Open the serial Monitor the icon right above
-
If this succeed your serial monitor should be connected. a. Occuring problem The Arduino doesn't connect to the wi-fi hotspot because hotspot is probably a 5Ghz hotspot. b. Problem solved: Miss typed my username, what I did was I changed my bandwidth on my phone from 5Ghz to 2.4 Ghz with the option Maximaise compability. After the transformation I still struggled with the Arduino not connecting to my computer. Because the Arduino wouldn't connect. So I changed my hotspot network name and restarted my iPhone 14 pro. I could see that a device has connected on my phone so one step to victory. So I was thinking, it's connected to wifi yes, the code has been uploaded yes, could it connect to the adafruit.io website? No. So I went on checking my username and keypass and I saw that my username missed a capitol.
-
You should be able to change to color settings, and see it in Serial Monitor.
-
If your Ledstrip is connected you'll be able too see the difference in color.
Congrats you just made your own Philips (Signify) HUE, for a couple euro. Adafruit also works on your phone, so you can almost do anything from the video from lesson 1.
Final result