Finally picked up an ESP8266 and got it controlling a small 24 NeoPixel Ring

I think there’s a command you can add to the sketch to erase any stored settings.

Hi @Jason_Coon , just tried to reload the Adafruit wifi test that (I think…) sets the ESP-01 in station mode as you described it.
That worked fine…
Reloaded Juegen’s modified sketch with the new SSID name and no password as I would prefer to have and still the wifi name that appears on my Samsung tablet is the initial name and I must enter a password like I initially provided.
I could not find any place in the sketch that would erase old settings. I would assume that reloading new SSID and password info into the ESP-01 would overwrite any previous data !
I will try later with another wifi capable device to see if it is a weird Android /Samsung behaviour.
Thanks for any more suggestions about this !

Tried ESP.eraseConfig()?

From within the sketch ??

Hi @Jason_Coon , really sorry to bug you about this as it is working at this point and I just can’t understand what is happening when I load a new sketch with new parameters and somehow see that the older parameters got stuck somehow !?!?
I did confirm one thing, I used another wifi enabled device and it also sees the old SSID indicating that the problem is with loading new parameters to the ESP-01 and definitely not a Samsung/Android funny.
Will look into that ESP.eraseConfig() and figure out how to use it.
Thanks for all the help !

@JP_Roy ​ first set up as webserver and provide your home wifi name and pw. Connect and test. Then pick any NEW AP name and leave pw blank (""). There can’t be two wifis w the same name. Make sure you comment out the webserver part in the beginning and also in setup After upload open serial monitor, reset and You see the settings. Take your phone and search for wifi in range. You will find the name you assigned. Then open in your browser the Ip address (e.g. 192.168.4.1 )

Hi @Juergen_Bruegl , back on this issue after long Easter weekend…
I managed to get both Webserver and Access Point modes working just fine but for whatever reason, my mobile devices always see that old name when I flash into Access Point mode with a new name for my SSID !?!?

Also tried Jason’s suggestion of adding ESP.eraseConfig(); within setup and it made no difference.

Hi JP
I’m so glad that it finally works for you. I’m for 3 weeks on a trip w
sporadic mail access.
All in all it took me 6 months to figure out the ESP, and just like you I
had to learn a lot about IP and HTML. But once you get a grip on it and
don’t fish in muddy water anymore the ESP is great. That 's why I thought I
share it with everyone.
Already looking forward with what you’ll come up with next.
Best
Juergen

Yeah, nice little program you did there…
I intend to use it as a control panel for my cube instead of having physical knobs, switches, lcd display etc…
But that is low on my ever growing to-do list. I will need to dig into the web page design and see what I can do. Did you ever get more bells and whistles into that sketch ?

@JP_Roy ​ nope, just changed background and wording. In my original sketch I made a version with the funkboxing animations, plus RGB and speed sliders, but not ported yet to this css version
@Thomas_Eldredge ​ do you have any interest in this stuff?

Great job +Jason Coon (and other contributors)!!

What a great starting-off point! Once I figured out that I had to add #define FASTLED_ESP8266_RAW_PIN_ORDER to get mine working, it works great! THANK YOU!!!

I’ve been considering wrapping patterns in C++ classes since most patterns have common attributes, such as speed, base-colors, and other parameters that might need to be saved to EEPROM. I’d love to hear if others have wrapped FastLED patterns in classes for this reason.

I plan on adding a speed slider to the page, as well as allowing the color picker to apply new base-colors to patterns where it may apply.

The next step will be to make dynamically saveable patterns, where a base pattern can be modified, with different base-colors, or speed, for example, and then saved as a sub-set of the pattern.

Just got this running today… Awesome!

Hoping to make some little standalone LED strip controllers I can walk around a party and change settings on.

Just gotta figure out how to change the supplied patterns to different ones and I’m set.

Thanks to those that figured out the hard stuff!

@Danny_Evans you have to set it up as webserver, assign different static IP addresses to the modules and save the HTML links to short-cuts.
IF you are a HTML wiz you could look into writing a code with module selection
and - please - share your code.
WRT to changing over to your patterns:
Leave Jason’s names and just paste new patterns in the void pattern_name()
Not very elegant but serves the purpose :wink:

Thank you Juergen, I understand that this was built from your previous work, or at least inspired by it. Great job!

I’m no HTML wiz unfortunately… But I’ll have a go.

I was going to attempt to add/replace the patterns just as they have been done so far in the code, I like running in AP mode. Though in practice that seems unlikely with the code I’m trying at the moment as I can’t figure out how to modify a pattern to run properly in place of another already in the code. I’ll try some simpler code :wink:

If I get it figured out I’ll definitely share any code I modify.

I can see this maturing into something amazing if these little chips have the power to run as I imagine.

Would be awesome If I can one day have separate sets of lights controllable via web app that I can sync together wirelessly.

Here is my previous code (without CSS) http://pastebin.com/Pydqx6n2
You have 3 parts: HTML that displays the options,
HTML that reacts on changes (drop-down, slider, button); and
FastLED for the animation.
Note that with AP mode you have to connect with your device to the
WiFi of the ESP. You can’t control more than one at a time.

@Danny_Evans , it should be simple to replace any/all of the patterns included in the sketch. The only changes you’ll need to make are in the .ino file: https://github.com/jasoncoon/esp8266-fastled-webserver/blob/master/esp8266-fastled-webserver.ino#L270-L281

Use the same syntax shown there to specify the pattern functions and names. The pattern functions should return void and only draw a single frame without any calls to delay.

The web app requests the list of pattern names from the esp8266 when loaded.

hi Jason , I made sketch so can made scenario of predefined effect with ESP module , however my wifi connection get lost after a while , I open ticket at following links and I really appreciated if you could look at it , thanks

I haven’t noticed that issue, but haven’t been using it heavily and may just not have noticed. You might try commenting out the calls to FastLED.delay.

Edit: you might also try commenting out the calls to delay as well. Also, try it without any FastLED code at all, as the issue may have nothing to do with FastLED, and may be a more general ESP8266 issue.

there is no issue when FastLED not in loop() and that’s why I open ticket in FastLED repo, the problem somehow is , the interrupt chock the wifi stack , I was hopping find the way to decrease this conflict