Feather Weather Lamp Created by Ruiz Brothers Last updated on 2018-08-22 03:54:26 PM UTC
Guide Contents Guide Contents Overview Weather Reactive Pixels Prerequisite Guides Parts Tools & Supplies Circuit Diagram Reference Connections Wired Connections Power On/Off Software Adafruit HUZZAH 8266 Arduino Libraries Arduino Sketch Enter WiFi Creds & City Number of Pixels 3D Printing Materials Slice Settings Customize Design Download STLs But I Don't Have a 3D Printer! Using 3D Hubs App on Thingiverse Assembly Prep Wires Tap Mounting Holes Prep Slide Switch Wire Slide Switch Slide Switch Wire NeoPixel Ring Wire Slide Switch to NeoPixel Ring Wire NeoPixel to Adafruit Feather Test Circuit Install Slide Switch Install HUZZAH Install NeoPixel Ring Install Cover Final Build 2 3 3 3 4 4 5 5 5 5 6 6 6 6 7 8 8 8 8 8 9 9 10 10 11 12 13 13 14 14 14 15 16 17 18 19 19 Adafruit Industries https://learn.adafruit.com/feather-weather-lamp Page 2 of 19
Overview Weather Reactive Pixels This project uses an Adafruit Feather HUZZAH with ESP8266 WiFi and NeoPixels to make an IoT weather device. The Arduino sketch pulls weather forecast data from the Yahoo Weather API and displays animations on NeoPixel LEDs. Prerequisite Guides Adafruit Industries https://learn.adafruit.com/feather-weather-lamp Page 3 of 19
Walk through the following guides to get familiar with the hardware usd in this project. Adafruit HUZZAH ESP8266 Guide (https://adafru.it/n6c) Adafruit NeoPixels (https://adafru.it/oe1) Parts Adafruit Feather HUZZAH ESP8266 WiFi (http://adafru.it/2821) 24x NeoPixel Ring (http://adafru.it/1586) Slide Switch (http://adafru.it/805) Tools & Supplies 26AWG Silicone Coated Stranded Core Wire (http://adafru.it/1970) Wire Cutters (http://adafru.it/152) / Strippers (http://adafru.it/527) Soldering Iron (https://adafru.it/dou) & Solder Panavise Jr. (http://adafru.it/151) / Helping Third Hands (http://adafru.it/291) Mounting Tack 2x 4-40 3/8 machine screws microusb Data Cable (http://adafru.it/592) 3D Printer (https://adafru.it/dot) / Filament (http://adafru.it/2080) Adafruit Industries https://learn.adafruit.com/feather-weather-lamp Page 4 of 19
Circuit Diagram Reference Connections Use the circuit diagram to reference for connecting the components together. The diagram does not depict exact wire lengths or size of components. This circuit expects 5V power to the Adafruit Feather HUZZAH ESP8266 via microusb Wired Connections Pin 14 from HUZZAH to Data Input on NeoPixel GND from HUZZAH to GND on NeoPixel 3V from HUZZAH to PWR +5V on NeoPixel EN from HUZZAH to Slide Switch GND from NeoPixel to Slide Switch Power On/Off The slide switch opens/closes a connection to the EN (enable) pin on the Adafruit Feather HUZZAH ESP8266. The EN pin is connected to the 3.3V regulator. It's pulled up, so when it's connect to ground, the 3.3V regulator is disabled. Adafruit Industries https://learn.adafruit.com/feather-weather-lamp Page 5 of 19
Software Adafruit HUZZAH 8266 Arduino Libraries Be sure to follow the guide below to install the board and libraries. When you've successfully install the ESP8266 Arduino libraries, come back here and continue the tutorial. https://adafru.it/lrc https://adafru.it/lrc Arduino Sketch The arduino sketch will connect your WiFI network and query the current weather conditions using the Yahoo Weather API. The Feather HUZZAH ESP8266 will then animate some NeoPixels to display the weather condition. In the sketch, you'll need to add your WiFi credentials, change the number of pixels you're using and your desired city. Download the sketch from the github repo linked below. https://adafru.it/oe2 https://adafru.it/oe2 Enter WiFi Creds & City In the weatherpixels.ino file, you'll need to input your WiFi credentials and your city. Reference the screenshot above and highlighted text to see which lines to modify. Note that for the city, you'll need to keep the %2C and %20 text between the city and state/region. %2C encodes into a, an the %20 encodes into a space, when we do the API query Adafruit Industries https://learn.adafruit.com/feather-weather-lamp Page 6 of 19
Number of Pixels In the animation.cpp, you can enter the number of pixels you'd like to use - in our project we need 24. Adafruit Industries https://learn.adafruit.com/feather-weather-lamp Page 7 of 19
3D Printing Materials We suggest using PLA material but your free to use ABS, PET or exotic composites like wood, metals and others. The parts are listed in the tablet below. Slice Settings Depending on your 3D printers hardware, you'll need to use your prefered slice settings. The parts are oriented to print "as-is" and doesn't require any support materials (very minimal overhangs). These are the slice settings we used on our Printrbot Play, sliced using Simplify3D 220C Extruder (on a non-heated bed) 20% Infill 2 shells/parameters 4 top and bottom layers 1.0 Extrusion multiplier 0.48 Extrusion width Customize Design The enclosure parts are available to modify and download. Click below to download the source. Size it to fit the bed of your 3D printer. Download STLs 3D print the files "as-is" if they can fit on the bed of your 3D printer (case is 80mm x 80mm x 20mm) Adafruit Industries https://learn.adafruit.com/feather-weather-lamp Page 8 of 19
case.stl 1x enclosure PLA top-dual.stl 1x twist top for dual extruders PLA top.stl 1x twist top for regular single extruders PLA https://adafru.it/lse https://adafru.it/lse https://adafru.it/lsf https://adafru.it/lsf But I Don't Have a 3D Printer! That's totally OK, you can still buy the parts and have them shipped to you! You can use a service like 3D Hubs to 3D print all of the parts for you. Just download all of the STL files from our Thingiverse page and upload them to their website. Using 3D Hubs App on Thingiverse The easiest way to do this is to use the "Print" button on the Thingiverse page. Then, click on the Launch App button to automatically load the STL files into 3D Hubs. From there, you can select colors, materials and enter your shipping address. A total price will let you know how much the parts will cost. A list of local hubs will appear and you can select which ever looks good to you. Hubs have different prices, ratings, reviews, and sample photos so you can narrow down your choice. Adafruit Industries https://learn.adafruit.com/feather-weather-lamp Page 9 of 19
Assembly Prep Wires Let's start by making a set of wires for connecting our components. We'll need 5 pieces of wire about 8cm in length. I suggest using 26AWG silicone coated stranded wires. Remove about 3mm of insulation of from the tips of each wire. Apply solder to the tips to tin them - this prevents wires from fraying. Tap Mounting Holes We'll need to create threads in the two mounting holes of teh Adafruit Feather HUZZAH board. You can use a 4-40 tap drill or a 4-40 machine screw. Adafruit Industries https://learn.adafruit.com/feather-weather-lamp Page 10 of 19
Prep Slide Switch Trim leads short to about half their size. Remove one of the three leads from the slide - either the far left or right. Apply solder to the two remaining leads to tin them. Adafruit Industries https://learn.adafruit.com/feather-weather-lamp Page 11 of 19
Wire Slide Switch Connect one wire to each lead by heating up the tip of the lead and placing the tip of the wire. Adafruit Industries https://learn.adafruit.com/feather-weather-lamp Page 12 of 19
Slide Switch You can optionally apply some pieces of heat shrink tubing to insulate the exposed areas. The slide switch is now ready! Wire NeoPixel Ring Apply solder to data in, ground and pwr +5V pins on the NeoPixel ring. Then, connect three wires to these pins on the NeoPixel ring. Wire Slide Switch to NeoPixel Ring Connect one of the wire from slide switch to GND pin on NeoPixel. Adafruit Industries https://learn.adafruit.com/feather-weather-lamp Page 13 of 19
Wire NeoPixel to Adafruit Feather Connect the three wires from NeoPixel to Adafruit Feather HUZZAH. Data in from NeoPixel to Pin #14 Adafruit Feather Huzzah Ground from NeoPixel to gnd on Adafruit Feather Huzzah 5V PWR from NeoPixel to USB on Adafruit Feather Huzzah Wire from Slide switch to EN on Adafruit Feather Huzzah Test Circuit The arduino code should already be uploaded to the Adafruit Feather Huzzah. Connect a microusb cable to your computer (or a 5V power supply) and to the HUZZAH board. NeoPixels should power on! Adafruit Industries https://learn.adafruit.com/feather-weather-lamp Page 14 of 19
Install Slide Switch Insert Slide Switch into case. Push it through the hole. Adafruit Industries https://learn.adafruit.com/feather-weather-lamp Page 15 of 19
Install HUZZAH Lay the board over the standoffs and align up with screw threads with the moutning holes. Fasten screws until board is secured in place. Adafruit Industries https://learn.adafruit.com/feather-weather-lamp Page 16 of 19
Install NeoPixel Ring Add pieces of mounting tack to case, press NeoPixel ring into case. Secure in place. Be cautious not to kink any wires! Adafruit Industries https://learn.adafruit.com/feather-weather-lamp Page 17 of 19
Install Cover Install the cover by twisting it onto the case like a bottle cap. It has threads, like a twisty top! Adafruit Industries https://learn.adafruit.com/feather-weather-lamp Page 18 of 19
Final Build Yahoo! Congrats on building your very own Feather Weather IoT Lamp. Now you can see what the weather is like... In lovely NeoPixel RGB color! Adafruit Industries Last Updated: 2018-08-22 03:54:20 PM UTC Page 19 of 19