8 channel relay based firework igniter for Wemos D1 mini ESP8266 platform
-
Clone repository
-
Install Platform IO
-
Modify the definitions in main.ino to match your target environment
Wifi connection settings:
#define WIFI_SSID "MyWifiAp"
#define WIFI_PASSWORD "MyPassword"
- Change default pin mappings (optional). In
main.ino
the channels are mapped to pins in the following array by index. This can be changed to suit whichever pins that support 5v digital write on the board.
const int PIN_MAPPINGS[] = { 0, D1, D2, D3, D4, D5, D6, D7, D8 };
- Run Platform IO build scripts:
platformio run --target upload
platformio device monitor --baud 9600
Some basic diagnostic logging is written to the serial log. Start there if you are having network issues.
As a convenience when I started developing the html for this project. I created it in the src/index.html
fle. Because copying and serving a hefty file from SPIFFS file system on the ESP8266 is a somewhat unnecessary complication, I chose to generate a method in html.ino
to serve up the html. In order to get any changes in the html into the html.ino
, I wrote a very crude NodeJs solution to generate the html.ino
from index.html
. All of that being said, if you wish to make any changes to the interface, simply change the index.html
file and execute
node index.js
in the root directory of the repository. That will regenerate the html in html.ino
.