After a long break, I've finally begun working with the ESP32.

@Steve_Anken sounds cool, looking forward to seeing what you come up with! :slight_smile:

@Jason_Coon , it may be a while. Too much to do and soon to be overwhelmed. It will get done by someone. The ESP32 is just starting to get legs. The audio stuff is coming along too so it’s just a matter of time before people realize how much this board can do besides run LEDs.

I am looking into adding a MIDI extension to App Inventor. MIDI has a lot of potential for coordinating LEDs and other things besides music. It’s too bad so few seem to realize how important MIDI is to musicians and what it can do. Android Studio is nice but all this is a time suck so it only gets done between other things.

Following along intently. This will be a welcome addition to the 15m string of WS2812’s I installed around the perimeter of our outdoor deck last year. Currently when I want to change colors or patterns, I bring the microprocessor inside and plug it into my PC to load a new sketch. I was looking at a set of XBee’s to upload sketches wirelessly but the ESP32 seems far better. Thanks for leading the development efforts Jason!

ESP32 Bluetooth library about to be merged with main Arduino core and it can be used with the existing BLE code. Now to see how to do both with App Inventor.

http://desire.giesecke.tk/index.php/2018/02/27/esp32-bluetooth-serial-and-ble-server-running-together/

Just pushed an update, fixed twinkles crashing with more than 255 LEDs, fixed an error setting a solid color, parallel output support, etc: https://github.com/jasoncoon/esp32-fastled-webserver/commit/8b8cbbfe8da9975b1845d45de6c8af85157c027e

Thanks @Jason_Coon

@Jason_Coon I’m trying to add a dynamic colour pallette generated from accelerometer data.

I’ve added it to the list "const CRGBPalette16 palettes[] " and to "const String paletteNames[paletteCount] " in palettes.h.

It comes up on the list on the webpage, but when I select it, the patterns fail to pull the colours from it, they just get black.

If I hardcode it into a pattern, replacing “palettes[currentPaletteIndex]” with the name of the dynamic palette then it works. I must be defining something incorrectly somewhere, I’ve tried everything I can think of, but can’t find a fix…

Do you have any ideas?
Thanks

@Jason_Coon I’ve worked it out :slight_smile:
I just had to declare CRGBPalette16 palettes[] as a variable rather than a constant. Slightly embarrassed about how long it took me to realise…

@Jeremy_Spencer sorry, I completely missed this somehow! Glad you got it working, though. Good to know!

I was able to get eps8266 working and tried getting esp32 working. Esp32 loads and leds display. What browser address do I load the page on? It connects to my home wifi but when I try 192… that was used on the 8266 code, it won’t load. I tried setting it up as an AP mode also and it wouldn’t compile. Super excited to get it working. If I can help with anything I’d love to.

@Chris_Stock Your router will always try and give individual devices a different IP address. Add these lines to web.h after “webServerStarted = true;” (line 70)

Serial.println();
Serial.println("WiFi connected");
Serial.println("IP address: ");
Serial.println(WiFi.localIP());

Then the IP address will be sent to the Serial Monitor.

Gah, that should be included in the sketch, I’ll get it added, thanks!

Done, thanks! https://github.com/jasoncoon/esp32-fastled-webserver/commit/7a72a4fb01f49ce2bbd6483832cb1125c9f37fd1#diff-b94aab71437b57812eaafbb2c03486d2

Awesome thanks I’ll check it out.

For some reason I am getting Not found: /
Could be user error. I have the esp8266 sketch working. When I use the esp32upload tool it is taking only 4 seconds which seems too fast. The esp8266 upload tool took several minutes to upload.

Ive tried getting AP mode working also and keep getting reboot error. Is Ap mode working on esp32?

@Chris_Stock , I don’t think AP mode is working properly with SPIFFS yet.

Have you followed the SPIFFS fix instructions in the readme?

Which version of the ESP32 Arduino core are you using?

After installing all the requirements (including forked libraries) I get this reboot loop:

Rebooting… ets Jun 8 2016 00:22:57 rst:0xc (SW_CPU_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT) configsip: 0, SPIWP:0xee clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00 mode:DIO, clock div:1 load:0x3fff0018,len:4 load:0x3fff001c,len:812 load:0x40078000,len:0 load:0x40078000,len:11572 entry 0x40078a5c Listing directory: / FILE: /favicon.ico SIZE: 4286 FILE: /index.htm SIZE: 10733 FILE: /js/app.js SIZE: 13101 FILE: /images/atom196.png SIZE: 5469 FILE: /css/styles.css SIZE: 31 Connecting to Il Bosco HTTP server started Main code running on core 1 Guru Meditation Error: Core 0 panic’ed (Interrupt wdt timeout on CPU0) Core 0 register dump: PC : 0x400d71dc PS : 0x00050034 A0 : 0x40081960 A1 : 0x3ffc05e0 A2 : 0x00000001 A3 : 0x3ff56000 A4 : 0x3ffc5510 A5 : 0x00000001 A6 : 0x00000001 A7 : 0x00000000 A8 : 0x00000018 A9 : 0x00000001 A10 : 0x00000000 A11 : 0x00000000 A12 : 0x8008dc1f A13 : 0x3ffde6a0 A14 : 0x3ffcb5e0 A15 : 0xbaad5678 SAR : 0x00000019 EXCCAUSE: 0x00000005 EXCVADDR: 0x00000000 LBEG : 0x00000000 LEND : 0x00000000 LCOUNT : 0x00000000 Core 0 was running in ISR context: EPC1 : 0x4000bff0 EPC2 : 0x00000000 EPC3 : 0x00000000 EPC4 : 0x400d71dc Backtrace: 0x400d71dc:0x3ffc05e0 0x4008195d:0x3ffc0610 0x4000bfed:0x00000000 Core 1 register dump: PC : 0x400e48ee PS : 0x00060e34 A0 : 0x8008be5c A1 : 0x3ffd0db0 A2 : 0x00000008 A3 : 0x00000001 A4 : 0x00000001 A5 : 0x3ffd08e8 A6 : 0x00000000 A7 : 0x00000001 A8 : 0x3ffc5e9c A9 : 0x3ffc5e60 A10 : 0x00000000 A11 : 0x00000001 A12 : 0x8008d138 A13 : 0x3ffd3bb0 A14 : 0x00000000 A15 : 0x3ffd0a60 SAR : 0x00000000 EXCCAUSE: 0x00000005 EXCVADDR: 0x00000000 LBEG : 0x00000000 LEND : 0x00000000 LCOUNT : 0x00000000 Backtrace: 0x400e48ee:0x3ffd0db0 0x4008be59:0x3ffd0dd0 Rebooting… ets Jun 8 2016 00:22:57

"Guru Meditation Error: Core 0 panic’ed (Interrupt wdt timeout on CPU0) "

Looks like a Watchdog Timer (wdt) error.

Have you got a delay running somehwere?

I’m successfully running a few variations of this, but can’t remember all of the changes…

@Jeremy_Spencer I am getting the same error right now
Fresh Esp32 install.
Guru Meditation Error: Core 0 panic’ed (Interrupt wdt timeout on CPU0)

Core 0 was running in ISR context:
EPC1 : 0x4000bff0 EPC2 : 0x00000000 EPC3 : 0x00000000 EPC4 : 0x40081709

But it seems to run fine for a little, without the Serial monitor hooked up. and just running?