With this signal, the controller can output a signal to the appropiate TRIAC. Each TRIAC is optically isolated to keep the controller safe and also has an LED indicator on the low voltage side to see how much dimming is being applied.
The circuit was then layed out in the schematic in picture 2 and printed. Picture 3 shows the assembled PCB along with the micro controller used, an ESP8266 board, and an AC to DC power supply.
The code used to make the ESP8266 chip read and write to a DynamoDB is still under development so there may be some bugs if anything is changed.
The free tier of AWS let's you query the DB only a certain number of times a second, exceeing this number of requests will cause them to charge your account. So make any changes in delays or update rates with caution.