madsci1016 wrote:FYI I'm also playing around with the ESPs using the Arduino core. I've made a quick e1.31 to Renard adapter with it thus far: http://doityourselfchristmas.com/forums/showthread.php?38452-5-sACN-Wifi-adapter-for-Renard-dimmers-proof-of-conceptI didn't see any delays from vixen but there is a buffer overrun bug somewhere that i believe is in the Arduino-esp core.
Next is a pixel version that I intend to embed in GECE string type dongles for a few strings I want to throw around the display.
Nice work with the the Renard E1.31!
I am noticing after it is running for a while I get a wdt reset. I believe there is a way to disable the wdt. I will have to give that a try and see what happens.
I've also been testing the esp-12. These can be purchased for under $4\each on eBay with a breadboard friendly breakout board. The esp-12 also has 10 gpio and a 4Mbit eeprom. So far the testing has been positive, I'm hoping to test the max number of ws2811 pixels the esp can handle sometime this weekend.
EE351 wrote:I've also been testing the esp-12. These can be purchased for under $4\each on eBay with a breadboard friendly breakout board. The esp-12 also has 10 gpio and a 4Mbit eeprom. So far the testing has been positive, I'm hoping to test the max number of ws2811 pixels the esp can handle sometime this weekend.
Are you doing this with the Arduino core or are you still using NodeMCU?
ceburge wrote:Are you doing this with the Arduino core or are you still using NodeMCU?
I'm currently using the nodemcu firmware with the luau script I posted on this thread. Eventually I'll start using the arduino ide since I don't think it will be possible to drive gece pixels with the nodemcu firmware.
Found the delay I was seeing. Apparently it was the no receive function I was running. I not sure if the timer functions work the same for the ESP as they do for the Arduino.
I now am seeing the lights start as soon a I enable the ouputs. I will have to figure out why that is. I like having the lights doing something when no data is being transmitted.
ceburge wrote:Found the delay I was seeing. Apparently it was the no receive function I was running. I not sure if the timer functions work the same for the ESP as they do for the Arduino.
I now am seeing the lights start as soon a I enable the ouputs. I will have to figure out why that is. I like having the lights doing something when no data is being transmitted.
Great, would you mind sharing your updated code? It would be a good starting point for getting the gece pixels working.
Also, do you know if the existing arduino gece libraries will work with the esp or will I have to bit bang my own routine?
If using WiFi, and timing is important, I do recommend Multicast. You use one transmitter of the show data on a dedicated router. Damaged packets are NOT checked for delivery, so there is no re-transmission of lost packets. Much like an RC airplane, the steady stream of data is the "rebroadcast". The timing is not damaged by a few missing packets on the receiving end. The next frame of data will update it in a few 10ths of a second anyway. The more I think about it the more this makes serious sense in WiFi where a packet or two is lost. It's not like a program download that is corrupt if not every packet is not received and verified as correct. Time is more important than accuracy. Accuracy of Unicast can come at the expense of on time delivery.
EE351 wrote:Great, would you mind sharing your updated code? It would be a good starting point for getting the gece pixels working.Also, do you know if the existing arduino gece libraries will work with the esp or will I have to bit bang my own routine?
Here is what I have. The code is the same as the other code I posted on page 3 of the forum with the exception of the timer to run a color effect if no data is being transmitted.
As far as the GECE library I'm not sure. I have never played with the GECE pixels. I have an example sketch in my libraries folder for the GECE not sure why! but I opened it up and it compiles for the ESP.
Looking at GEColorEffects.h header file the only thing I see included in there is the Arduino header file. Which gets included for ESP_ws2812 library as well.
You may need to include header files that are more specific to the ESP module to make it work. I am going to include the ws2812 library for you to take a look at and
see the files that where included for it.
I think the best way to find out if it's going to work is to use a library that you know works for the Arduino make the necessary changes such as pin number compile it and give a try.
ceburge wrote:Here is what I have. The code is the same as the other code I posted on page 3 of the forum with the exception of the timer to run a color effect if no data is being transmitted.As far as the GECE library I'm not sure. I have never played with the GECE pixels. I have an example sketch in my libraries folder for the GECE not sure why! but I opened it up and it compiles for the ESP.
Looking at GEColorEffects.h header file the only thing I see included in there is the Arduino header file. Which gets included for ESP_ws2812 library as well.
You may need to include header files that are more specific to the ESP module to make it work. I am going to include the ws2812 library for you to take a look at and
see the files that where included for it.I think the best way to find out if it's going to work is to use a library that you know works for the Arduino make the necessary changes such as pin number compile it and give a try.
I just loaded the arduino IDE and esp plugin, and tried your code. It works great! I'm a little surprised I got the arduino ide to work on the first try since I have zero experience with arduinos.
Now I just need to find a GECE pixel driver. I'll do a goggle search, but if anyone has one available I'd appreciate it if they could post it here or provide the link to it.
Glad to here it work for you.
