ESP8266/ESP12 Witty Cloud - Arduino Powered SmartThings RGB Controller

by johnnyfrx in Circuits > Microcontrollers

5640 Views, 12 Favorites, 0 Comments

ESP8266/ESP12 Witty Cloud - Arduino Powered SmartThings RGB Controller

ESP8266/ESP12 Witty - Arduino Powered SmartThings RGB Controller

RGB's RGB's RGB's Everywhere! Who doesn't like having some cool looking colorized lighting around their home these days? This little project shows off the ESP8266 mixed with SmartThings control and winds up as a real neat RGB controller for LED strips and the like. A Gizwits ESP8266 Witty Cloud controller is used for convenience sake thanks to its integrated RGB LED, but most any ESP8266 ESP12/ESP32 should work. I'm sure you have a couple...OR 10 laying around to try this out. Go build one and HAVE FUN!

Hardware - What You'll Need - EASY ONE THIS TIME!

1-WiFi-Witty-Module.jpg
SEA_boxesHub.94.jpg

I DO NOT endorse, represent, or receive anything at all for the examples below. Caveat Emptor.

Substitute as needed for your individual requirements/parameters. Links to products are only for examples and not promotion.

1. ESP8266 GizWits Witty Cloud MC

2. Samsung SmartThings 2.0 Hub

Software - What You'll Need

arduino.png
Nm_ide_loginscreen.jpg
rsi-lmt-SmartThingsPhoneScreenFill-708-SmartThings-063016.jpg
logo-github-fe55a081ff239877f791f5882f9c3cddc371653c88d9b06f504ea10f453996ed.jpg

ASSUMPTIONS: Comfortable working with Arduino IDE, Libraries, SmartThings IDE and GITHub.

Hardware Setup

espwitty_cable.jpg
  1. Carefully position your USB cable so it's termination shape matches that of the connection on your ESP8266. Kind of like a 1 piece puzzle.
  2. Using gentle force, slowly seat the cable's connector into the connector of the ESP.
  3. Plug other end of USB cable into the USB port of the device you will be using to program/power your ESP.
  4. Yes...these steps are purposely sounding sarcastic. I hope you've enjoyed and are not annoyed!

Software Setup

ScreenHunter 31.jpg
ESPWitty-Pin-Diagram.jpg
ScreenHunter 117.jpg

ASSUMPTIONS: Comfortable working with Arduino IDE, Libraries, SmartThings IDE and GITHub.

I know there is a lot of initial information and configuration if this is your first time setting up the ST_Anything configurations, but it is worth it. PLEASE feel free to ask any questions you may have along the way. In addition, this SmartThings Forum for this project is a GREAT place for tips and advice.

Modify the attached Arduino sketch, adding your WiFi/SmartThings environment specifics. The sketch calls out where to make the changes, as do the steps on the GITHub Page.

NOTE: The default pins used in the sketch provided in the Repo are specific to the standard ESP8266 ESP12. To work on the the Witty ESP8266 as described in this Instructable, please change the PIN_RGB1_Red pin from D5 to D8, and also uncomment the pin definition #define D8 15. See ScreenShot.