Post your best Lua script examples here

User avatar
By Dennis
#11525 Hello,

I further developed your and VasilijHCNs code a bit (to also make use of a DHT11 sensorand process its data in easyIoT), and just wanted to say here "thank you" for the inspiration. Yourdimmer/webserver code (and Vasilij's work on adapting it for easyIoT instead of Domoticz) got me started with programming in Lua for nodeMCU, and the fact that I can now omit any additional microcontroller and have everything run on the esp8266 is mighty cool.

So, once again: thank you!

Oh, and I also created a github repo, just in case anyone's interested in my "easyIoT dimmer/switch/DHT11 sensor node running nodeMCU":
https://github.com/DennisSc/easyIoT-nodeMCU/


regards
Dennis
User avatar
By Quindor
#14041 I have updated the first post with new additions I have written for my blog. It includes a new much better and smaller PCB design! If you wish to use the LED dimmers I suggest you get the new version from now on.

Check it out!
Image
User avatar
By spy king
#21434 I have one the COB style spots like on your blog (9w though). But when I try and dim it using a Mosfet (http://www.ti.com/lit/ds/symlink/csd18533kcs.pdf) I find that the supplied driver hums. Have you encountered something similar? The driver is a constant current type. Any ideas?

EDIT: After some more reading, it would seem that my 12k pull-down resistor was a bit much. Tried it with a 1.2k resistor and non as well, but seems I am having some issues. In theory, the mosfet should be able to dim a constant current supply as well right?