ESP8266 (ESP-12) emulates the operation of the RD DPS5020 power supply over WiFi. This project is just an example of Modbus TCP server. The simpliest (all in one file) Arduino / VSCode example. ESP8266 works as Modbus TCP server over WiFi
Show RD DPS5020
RD DPS5020 is an inexpensive Chinese power supply sold on Aliexpress. RD official store page: https://aliexpress.ru/item/32821185351.html- An external TCP client (DPSmaster - Windows PC application) sends a Modbus request to the ESP8266's local IP address over WiFi.
- The ESP8266 answers the TCP client.
- Visual Studio Code project in the VSCode project folder.
- Arduino IDE project in the Adruino project folder.
Enter your Wi-Fi credentials.
WiFi.begin("ssidname","password");
You can use any board with ESP8266. I use this one:
In the DPSmaster application select "TCP" and enter correct ESP8266's local IP address.
Download page: https://profimaxblog.ru/dpsmaster/
Open the router's web page in a browser. View the list of clients.
Use the built-in USB-COM serial port at the selected baud rate:
Serial.begin(115200);
Uncomment the line if you need debug Modbus messages:
#define MB_DEBUG