The examples are developed using the following setup. It might work with other setups too, but be prepared to make minor adjustments.
-
ESP-12 NodeMCU0.9 dev-board with on-board USB-to-serial (http://www.dx.com/p/385190)
-
PIR sensor "I052116" based on the "biss0001" chip (http://www.dx.com/p/139624)
-
High-power RGB LED with FET-buffered outputs
The Lua scripts uses a couple of timers for task timing. Make sure you are not merging with code that are using the same timer channels. The init file initializes the WiFi connection. All other files using sockets assume a working WiFi connection and IP. CONFIGURE THE INIT FILE FIRST!