In this project, you will learn how to do basic electrical automation and control via the web. Think of the NEST.... only more open and hackable! Using Websockets, Javascipt and HTML5, you will have a simple way of viewing remote data and be able to control some solid state relays. This framework will allow you to create more complex IoT applications. The example will combine a FRDM-K64F and a FRDM-AUTO to read a temperature sensor and control a solid state relay.
FRDM-K64F | FRDM-AUTO |
Development Tools | Example Code |
The videos are organized into a nice YouTube playlist:
The build package is on the FRDM-AUTO site. Note that for this exercise you only need to build the "OPTION 1" version. Please let us know if you are interested in a pre-assembled version. If there is enough demand we will get a lot assembled for purchase, I will get a Kickstarter going! Don't be afraid to build it yourself, Soldering is fun! There is plenty of good stuff on the web on how to do SMT soldering. All of the parts on the board are fairly simply once you get the hang of it and everything can be hand soldered The key is having some decent tools.
Assemble the FRDM-AUTO and K64F. When you get started, do NOT hook up anything to the solid state relays until you are sure things are working.
WARNING: Wiring to household power can be dangerous! You are 100% responsible for what you do. Be careful and never apply power until you fundamentally understand what you are wiring up!
If you have never used the mbed environment, make sure to careful read this page. Get the "blinky" programming working before you try anything else.
Download the example firmware to the FRDM-K64F. Make sure to press the reset button.
Make sure to watch the demo video. Load the example javascript pages from the github repo and recreate what you see in the demo video. Note: You should NOT use the websocket server used in the demo code. When you register for an mbed account, you automatically get your own websocket server channel. See Websocket server by Mbed.
Make something cool! Be cool and publish your work!