ESP8266 Access Point for DemoReel 100 Create your own WLAN access point anywere and

ESP8266 Access Point for DemoReel 100

Create your own WLAN access point anywere and control the lights via your phone. FastLED runs entirely on the ESP8266 chip ! No Arduino / Teensy needed.

http://pastebin.com/v403qgbg

7320395678f41971229c873bfda05387.jpeg

How did you solve the 3.3v/5v voltage translation from the Esp8266 to the LEDS?

Thank you for this code, helps a lot!

@Justin_Onimus same as with Teensy: no level shifter needed
I used the Huzzah because it comes with a 3.3V voltage regulator on board.
If you use a standard ESP8266 module you have to add a voltage regulator yourself such as LM1117.

I have a development board from AliExpress:
http://www.aliexpress.com/item/V3-Wireless-module-NodeMcu-4M-bytes-Lua-WIFI-Internet-of-Things-development-board-based-ESP8266-for/32470199417.html

Also has a regulator, so I’m going to give it a go.

Thanks Juergen!

Just to clarify: this is to use with the ESP8266 Arduino core (using something like Adafruit’s Huzzah or SparkFun’s “ESP8266 Thing” as an Arduino board, programming the board through the Arduino Software).

@Justin_Onimus looks good to me. Please let me know how it is. The price is very attactive.

@Luminous_Elements yes exactly. I used Adafruits tutorial to set it up.

Pushing the GPIO_0 and Reset buttons in the right order to upload is a bit akward.

A few posts down is the code as Web Server - whatever fits your needs.

@Stefan_Petrick @Daniel_Garcia just set the ESP core to 160 MHz and it runs like a bell :slight_smile:

Can´t wait to get my hands on the board!

@Stefan_Petrick ARRRRGGH! just bricked my board !!!
Changed upload speed from 115200 to 256000 and now it’s dead :frowning: :frowning: :frowning:
Can’t get it back even with nodeMCU

Just take the next one. :slight_smile:

My findings: tested this code on Sparkfun Thing and NodeMCU ESP-12E… after changing “password” to “12345678” (apparently softAP() needs min 8 character password) it works, but FastLED is significantly slowed. If I comment out call to webserver(), the FastLED routines work at normal speeds. I am using APA102 strip and set CPU freq to 160Mhz.

@Tim_Field I appreciate your feedback !
How many LEDs do you have on the strip?

Oops, found an error I introduced - quick retest shows FastLED looks to be working normal speed with webserver(). Will do more testing on both boards, but looking good now.

@Juergen_Bruegl When you select the new animation via the access web page, how long is the delay between the board running the new animation code?

@Jon_Burroughs Hmmm, just a short blink ??? (I’m old school and have a 30 year old Omega, hahaha)

Happy to report that both Sparkfun Thing and NodeMCU ESP-12E work well with your code, both in AP and STA mode. Very nice setup - Thanks for sharing this!!! The main difficulty (inherent with any wifi project) is the initial provisioning for a headless device for non-technical users… the steps of temporarily switching off smartphone or tablet from local wifi to connect to device AP server or somehow finding and entering IP address for STA mode is not friendly.

@Tim_Field that’s why I made two versions. The Webserver is set up for your home environment: no switching to a new wifi.
The Access Point is if you are on a show and even want visitors to interact with your setup. In this case I will print a sign with
the Access Point name and a QR-code for the http
http://goqr.me/

@Juergen_Bruegl It was great that you implemented both of the primary mechanisms for wifi connections.
I’m hopeful that when the ESP8266’s new sibling becomes readily available (ESP32 with wifi+BLE, dual processor) that a less technical process will be attainable. But again, your demo is very useful and appreciated.

@Juergen_Bruegl you mentioned on your first demo, it would be great if some HTMLer could add code for slider.for brightness control!!