Skip to content

ESP8266 emulates the operation of the Riden DPS5020 power supply

Notifications You must be signed in to change notification settings

profi-max/DPS5020_TCP_Simulator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RD DPS5020 TCP Simulator

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

What is RD DPS5020

Show RD DPS5020 RD DPS5020 is an inexpensive Chinese power supply sold on Aliexpress. RD official store page: https://aliexpress.ru/item/32821185351.html DPS5020

How it works

  1. An external TCP client (DPSmaster - Windows PC application) sends a Modbus request to the ESP8266's local IP address over WiFi.
  2. The ESP8266 answers the TCP client.

How to use

  • 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:

Show the board Aliexpress page: https://aliexpress.ru/item/4000550036826.html NodeMCU

In the DPSmaster application select "TCP" and enter correct ESP8266's local IP address.

Download page: https://profimaxblog.ru/dpsmaster/

DPSmaster

How to find out the local Wi-Fi IP address of ESP8266.

Open the router's web page in a browser. View the list of clients.

How to debug

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

About

ESP8266 emulates the operation of the Riden DPS5020 power supply

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages