kingofkya wrote:Just a heads up I finished up the schematic for the PCB last night. And will start the PCB layout tonight, one question though what pin are you useign for pixel output tx? gpio2 ?
The outputs to the pixels are gpio0 and gpio2.
kingofkya wrote:Also as a side note you might want to get your code working with an arduneoish ide, makes it mutch easier for others.
https://github.com/esp8266/ArduinoAlso the hackaday.io site it great for documenting your project, or at lest i think so:).
I found out about the arduino ide plug in a few days ago. However, my code uses the nodemcu firmware, which I don't think is arduino compatible. Hopefully someone else will give this a try from the arduno side, as it will most likely allow for more customization.
Ok, for better or worse here is the lua script:
Please keep in mind this is not a finished controller by any stretch, I am posting this for others to try and give their feedback.
I strongly suggest trying the tutorial in the link below to get familiar with flashing firmware and uploading lua scripts to the ESP-01:
http://randomnerdtutorials.com/esp8266-web-server/
Other useful links:
Latest firmware (use nodemcu_integer_0.9.6-dev_20150406.bin )
https://github.com/nodemcu/nodemcu-firmware/releases
programming in LUA:
http://www.lua.org/pil/contents.html
NodeMCU API Instructions
https://github.com/nodemcu/nodemcu-firmware/wiki/nodemcu_api_en
Enjoy!:thup2:
EE351 wrote:I found out about the arduino ide plug in a few days ago. However, my code uses the nodemcu firmware, which I don't think is arduino compatible. Hopefully someone else will give this a try from the arduno side, as it will most likely allow for more customization.
The code that is written in the Arduino IDE is the firmware for the ESP8266 module. I have been playing around with using the ESP-01 module as an UDP server and an Arduino Due running as the pixel controller I must say it works pretty well, although I haven't put anything through a stress test yet. There is an example on the ESP8266 forum for the Arduino IDE on how to set it up as a UDP server and unicast and I think there is one that came out not long ago to do multicast, but I'm not sure how stable it is.
I'm a hacker not a coder! If you know what I mean. It would be nice to have it to work without the need for the Arduino. However that would take someone who knows what they are doing to port the fastled library to work with the ESP8266.
Anyway. I will leave that to someone more suitable for the task than I.
Good work on the LUA stuff though I hope you get things working like you want.
ceburge wrote:The code that is written in the Arduino IDE is the firmware for the ESP8266 module. I have been playing around with using the ESP-01 module as an UDP server and an Arduino Due running as the pixel controller I must say it works pretty well, although I haven't put anything through a stress test yet. There is an example on the ESP8266 forum for the Arduino IDE on how to set it up as a UDP server and unicast and I think there is one that came out not long ago to do multicast, but I'm not sure how stable it is.I'm a hacker not a coder! If you know what I mean. It would be nice to have it to work without the need for the Arduino. However that would take someone who knows what they are doing to port the fastled library to work with the ESP8266.
Anyway. I will leave that to someone more suitable for the task than I.
Good work on the LUA stuff though I hope you get things working like you want.
I believe the arduino plugin writes custom firmware to the esp8266, so essentially the esp8266 is the arduino mcu. Someone correct me if I read this wrong:
http://www.esp8266.com/viewforum.php?f=25
