This project creates a webserver on a ESP8266 that can be used to control the Tenma / Korad / etc power supplies. Useful to save time running up and down stairs to reboot a troublesome device.
This project uses platform.io to automatically manage the build process / dependencies. I recommend using the VSCode plugin. The most basic commands needed for building: (It automatically grabs all the compilers + needed libraries)
pip install -U platformio
platformio update
platformio run
By default the device has debug printing on Serial1 (GPIO2).
If you want the ESP to connect to a WiFi network rather than creating a hotspot. Remove the #define USE_HOTSPOT
from the code.
You must also create a WiFiSettings.h
that matches the WiFiSettings.h.template
The RS232 adaptor uses the following pinout. (Swap the TX / RX pins based on your adaptor)
Shoutout to https://github.com/s00500/ESPUI for doing the heavy lifting for the website