Wireless Weather Indicator
by ehudwill in Circuits > Microcontrollers
3975 Views, 46 Favorites, 0 Comments
Wireless Weather Indicator
![WirelessWeatherIndicator.jpg](/proxy/?url=https://content.instructables.com/F6W/W3V3/IHS1LVDK/F6WW3V3IHS1LVDK.jpg&filename=WirelessWeatherIndicator.jpg)
I decided to use the Linkit One's GSM capabilities to create a weather indicator. This would allow me to make something both practical and visually pleasing, a wireless weather indicator.
Materials/Tools
![FullSizeRender 64.jpg](/proxy/?url=https://content.instructables.com/FRR/F99L/IHS1OSHP/FRRF99LIHS1OSHP.jpg&filename=FullSizeRender 64.jpg)
![FullSizeRender 46.jpg](/proxy/?url=https://content.instructables.com/FVT/R4HK/IHS1LJ39/FVTR4HKIHS1LJ39.jpg&filename=FullSizeRender 46.jpg)
![FullSizeRender 69.jpg](/proxy/?url=https://content.instructables.com/FIA/DVUA/IHS1OSTR/FIADVUAIHS1OSTR.jpg&filename=FullSizeRender 69.jpg)
![FullSizeRender 67.jpg](/proxy/?url=https://content.instructables.com/F0P/UPYN/IHS1OSRM/F0PUPYNIHS1OSRM.jpg&filename=FullSizeRender 67.jpg)
![FullSizeRender 49.jpg](/proxy/?url=https://content.instructables.com/FP2/ASGN/IHS1LJ3F/FP2ASGNIHS1LJ3F.jpg&filename=FullSizeRender 49.jpg)
![FullSizeRender 16.jpg](/proxy/?url=https://content.instructables.com/FUB/WP4T/IGL6E3KZ/FUBWP4TIGL6E3KZ.jpg&filename=FullSizeRender 16.jpg)
![FullSizeRender 36.jpg](/proxy/?url=https://content.instructables.com/FAF/ELJ8/IGZGU9RU/FAFELJ8IGZGU9RU.jpg&filename=FullSizeRender 36.jpg)
![FullSizeRender 65.jpg](/proxy/?url=https://content.instructables.com/F8F/CDOH/IHS1OSIT/F8FCDOHIHS1OSIT.jpg&filename=FullSizeRender 65.jpg)
Tools
Soldering Iron
Computer
Linkit One
GSM anntenna
Battery for Linkit One
USB cord
Wire Cutter
Materials
RGB LED
White LED
Solder
Poly-Fil
Container - Should be transparent so you can see the lights from the indicator.
SD card
Ballast - I had a round contatnier and used pennies to balance it.
Battery for Linkit One
GSM antenna
Speaker
Code
![Screen Shot 2015-12-01 at 9.03.06 PM.png](/proxy/?url=https://content.instructables.com/FOF/HB19/IHNRAZIB/FOFHB19IHNRAZIB.png&filename=Screen Shot 2015-12-01 at 9.03.06 PM.png)
The code went through several very different versions before it was finished. I tried utilizing the wunderground api at first but them abandoned it. I decided to use the Linkit One's SMS capabilities to read the weather update text alerts from wunderground. I had to set up the code to read the text and pull out the relevant text dealing with the current weather conditions. I had to set it up to look for the specific abbreviated phrases that the text alerts use. For example if conditions are clear then the text will use the abbreviation clr. I have tried to gather all the abbreviations, but have not been able to find it documented anywhere so at the moment I am using the weather conditions I am aware of. As I get more updates I will update the code.
Here are the abbreviations I know about;
- Clear - Clr
- Thunderstorms - T-storms, Chnc T-storms
- Rain - Rain, Chnc Rain
- Cloudy - Ptly Cldy, Mostly Cldy
- Fog - Dense Fog
I also used a bit of code for testing of the light patterns/sounds I planned on using. I have attached it also.
Setting Sound Effects
![FullSizeRender 17.jpg](/proxy/?url=https://content.instructables.com/FTO/HYMZ/IGL6E3NI/FTOHYMZIGL6E3NI.jpg&filename=FullSizeRender 17.jpg)
![thumb_DSCF4418_1024 copy.jpg](/proxy/?url=https://content.instructables.com/FVV/W2BO/IG5EEU59/FVVW2BOIG5EEU59.jpg&filename=thumb_DSCF4418_1024 copy.jpg)
I wanted sound effects to go along with the lights. I got my sounds from Sound Bible. I downloaded the sounds I wanted to go along with my effects. For example rain hitting a house for rain, someone walking in snow for snow, and the sound of a thunder for a thunderstorm. I renamed them and loaded them onto my micro SD card. The code to play the sound is below. If you want to add sound effects that I have not added simply copy and paste the code below into the if statement you want it to go off with.
<p>LAudio.setVolume(5);<br>LAudio.playFile( storageSD,(char*)"001.mp3");</p>
Setting Up the Wunderground Text Alerts
![Screen Shot 2015-12-01 at 8.21.39 PM.png](/proxy/?url=https://content.instructables.com/FVW/L9PJ/IHNRAOO8/FVWL9PJIHNRAOO8.png&filename=Screen Shot 2015-12-01 at 8.21.39 PM.png)
![Screen Shot 2015-12-01 at 8.21.55 PM.png](/proxy/?url=https://content.instructables.com/FYG/2IUS/IHNRAOOJ/FYG2IUSIHNRAOOJ.png&filename=Screen Shot 2015-12-01 at 8.21.55 PM.png)
![ThirdStep.png](/proxy/?url=https://content.instructables.com/F35/VL95/IHNRAOYQ/F35VL95IHNRAOYQ.png&filename=ThirdStep.png)
Setting up the wundergroud text alerts is easy. If you do not have an account go ahead and set one up. Click here to open the wunderground text alerts. First enter the city you want to receive alerts from. Sorry if you are an international maker only U.S. cities right now. Hopefully they will have international soon. After selecting your city you will need to select a time of day to recieve your alerts and if you want just a daily forecast or if you want to know about severe weather alerts or advisories. Be warned if you do you will receive a barrage of texts about the weather at all hours. I am not sure if this is a bug or if it is because I selected most of the severe weather alerts when setting mine up. After that you will select if you want email or text alerts. Select text alerts and enter your phone number. Finally click the finalize button.
Inserting SIM Card
![FullSizeRender 71.jpg](/proxy/?url=https://content.instructables.com/FWX/NPIT/IHS1OSZ9/FWXNPITIHS1OSZ9.jpg&filename=FullSizeRender 71.jpg)
![FullSizeRender 66.jpg](/proxy/?url=https://content.instructables.com/FHU/W2XW/IHS1OSNC/FHUW2XWIHS1OSNC.jpg&filename=FullSizeRender 66.jpg)
![FullSizeRender 68.jpg](/proxy/?url=https://content.instructables.com/FXT/FE8Y/IHS1OSST/FXTFE8YIHS1OSST.jpg&filename=FullSizeRender 68.jpg)
I used the SIM card from my phone temporarily. For long term use I would recommend buying a prepaid SIM card.
Assembling the Indicator
![FullSizeRender 53.jpg](/proxy/?url=https://content.instructables.com/F0J/5LCY/IHS1LS7W/F0J5LCYIHS1LS7W.jpg&filename=FullSizeRender 53.jpg)
![FullSizeRender 55.jpg](/proxy/?url=https://content.instructables.com/FJK/Q18C/IHS1LSDU/FJKQ18CIHS1LSDU.jpg&filename=FullSizeRender 55.jpg)
![FullSizeRender 60.jpg](/proxy/?url=https://content.instructables.com/FIM/QYLS/IHS1LSQH/FIMQYLSIHS1LSQH.jpg&filename=FullSizeRender 60.jpg)
![FullSizeRender 54.jpg](/proxy/?url=https://content.instructables.com/FGQ/QYDG/IHS1LSDS/FGQQYDGIHS1LSDS.jpg&filename=FullSizeRender 54.jpg)
![FullSizeRender 47.jpg](/proxy/?url=https://content.instructables.com/FE7/X86Y/IHS1LJ3A/FE7X86YIHS1LJ3A.jpg&filename=FullSizeRender 47.jpg)
![FullSizeRender 51.jpg](/proxy/?url=https://content.instructables.com/FKT/5SAY/IHS1LJ3J/FKT5SAYIHS1LJ3J.jpg&filename=FullSizeRender 51.jpg)
![FullSizeRender 50.jpg](/proxy/?url=https://content.instructables.com/F7X/4E6Z/IHS1LJ3I/F7X4E6ZIHS1LJ3I.jpg&filename=FullSizeRender 50.jpg)
I found this oversized coin machine plastic case years ago at a costume shop. I like the aesthetic and knew I would use it in a project one day. Everything needs to fit into that container. First you will need to set up the LED array. Since I was not attaching the LEDs to anything but the board I was able to use their common ground to hold them together. I bent the legs of the LEDs to the side and in the same direction, toward the ground. After placing them in the correct pins on the board and testing them I soldered them all together. Then I attached the battery, GSM antenna, and speaker. I placed a bag of pennies at the bottom of the container to help keep it from rolling. I placed the board inside and placed a thin layer of Poly-Fil over it to cover the board and LEDs.
Testing
![FullSizeRender 52.jpg](/proxy/?url=https://content.instructables.com/FTJ/AGAN/IHS1LS6Q/FTJAGANIHS1LS6Q.jpg&filename=FullSizeRender 52.jpg)
There are several elements of this project that you may want to tweak to fit the individual build. You will need to set up the colors and sounds to your liking. Also you need to make sure your connections are good and that your LEDs are installed correctly.
Final Setup
![FullSizeRender 45.jpg](/proxy/?url=https://content.instructables.com/FEF/I6BD/IHS1LJ38/FEFI6BDIHS1LJ38.jpg&filename=FullSizeRender 45.jpg)
Assemble the indicator and place it somewhere prominent where you can be pleasantly altered of the weather and never have to look out a window again.