The software design of ESP8266-based programmable controller as well as testing is nearly completed, including:
Controller software,
The built-in web page,
PC tool developed by delphi to download web pages and firmware,
IOT gateway developed by PHP,
Remote web pages in cloud,
Still need to complete the WX integration, cloud platform management system, third-party APP integration and other functions;
Simultaneously start to update the hardware.
Considering that MODBUS protocol sensors or actuators via RS485 is also a commonly used function, also data acquisition via RS45 may be required,
If the controller doesn't supprort RS485, it will be a pity.
Good news is an empty area exists next the output relay;
Therefore, I added the RS485 communication circuit, in order to avoid surge voltage/current into the communication port to damage the RS485 communication chip, further surges into ESP8266 and damage it, I added two unipolar TVS at the port, And two current-limiting resistor are connected in series, also current-limiting resistors are connected between the communication chip and the module, to provent the surge.
In order to be compatible with the 3.3V operating voltage of the ESP8266, the RS485 communication chip is selected the 3.3V operating voltage model.
ESP8266 may be not realtime enough to meet the requirements of the MODBUS protocol 3.5 character as a Modbus slave, but as a MODBUS master, it should be no realtime problem.
A few years ago, the design of the circuit has a very cumbersome work, that is, the schematic package and PCB package design, with the electronic component online store, such work has been greatly simplified, the online EDA can provide a schematic package and PCB package, can be imported into the office EDA for direct use.
The concerning is that for the high voltage surge, even after the TVS clamp, may still be far more than 3.3V, such high voltage into the RS485 communication chip may lead to the chip port and power supply voltage is raised, resulting in damage to the module, need to do a detailed test subsequently;
Top comments (0)