13

Interface and Application Programming

This week, I made a simple web interface that allowed me to control a pin via a web browser!

Tools: Arduino IDE
Date: 12.04.2019

PROCESS

To start, I began by trying to implement FlatUI, which I was able to do after some time but could never get the "enter time" widget to load properly, which was really annoying.



Then, I found a really helpful tutorial that ended up being the base for my final interface (https://randomnerdtutorials.com/esp32-web-server-arduino-ide/)

The main piece of the code is here. Basically when I press the button in browser, the board receives a request with the header /4/ON. If that request is get /4/ON, then pin 4 is set high, opening the mosfet, and allowing current flow.

This is the code responsible for the basic interface