• It's alive!

    k00kykelly06/14/2014 at 22:28 0 comments

    Demo Video

    What I've done so far...

    1. Program Arduino with blink LED program. I put an LED on pin 13 and it works, yay!

    2. Add Adafruit wifi shield (solder headers on, test to confirm blink LED program still working)

    3. Program Ardunio with code to get a REST API going per

    https://learn.adafruit.com/a-rest-api-for-arduino-and-the-cc3000-wifi-chip/overview

    4. Setup a server on my computer to host example code to control the Ardunio remotely

    This didn’t work at first so I had to do a little troubleshooting to figure out why the web server wasn’t working properly. I used the following guide and realized that PHP was not enabled.

    Setting up a web server on OSX Mavericks

    http://www.coolestguidesontheplanet.com/downtown/get-apache-mysql-php-and-phpmyadmin-working-osx-109-mavericks

    Once PHP was enabled I was able to bring up the page hosted on my computer from my phone and turn the LEDs on and off.

    5. Add a relay via breadboard and connect to an outlet, plug, and switch AC power.
    The 5V relay they happened to have at Radio Shack is a bit wimpy current wise so I'm sticking to a string of LED lights for now. I ordered 2 of these relay boards http://www.amazon.com/gp/product/B0057OC5O8/

    Some issues:
    - the Arduino wifi connection seems to be flaky. I'm using Adafruit's sample code so I'm not sure if there is a check there to reconnect if the connection is lost. 
    - the pins are not automatically setup to output so I have to figure out how to do that ahead with the arduino startup or build that setup into the webpage

    Next up:
    - get a image map going that will toggle the Arduino pins
    - waiting room?