Implementation of a laboratory power supply control system:
WEB interface of the same controller:
Circuit design features:
- Implemented on an STM32F407 microcontroller
- It has integrated data storage on a W25Q256 chip.
- The onboard battery can power the watch for up to 5 years.
- Ethernet interface
- 2 RS-485 interfaces
- Power supply from 7V to 36V
- Support for an 800×480 pixel color screen (direct support for the SSD1963 controller)
- Support for a resistive touch panel on the xpt2046 controller
Software support and capabilities:
- The built-in web page can contain any number of files and directories. The main part of the page is located in the controller’s memory and changes only during a firmware update.
- FAT32 support is implemented for internal storage on the W25Q256 chip. A web page can contain any number of partitions stored in this memory.
- The FTP protocol is implemented for quick access to the internal file storage.
- Any auxiliary files can be stored on the FAT32 drive.
- Access to the web interface via an auxiliary server from the external network is supported. The controller opens a TCP connection to the access server (the controller must have internet access and can have a regular dynamic IP address behind the provider’s NAT server (a “private” IP address).) The access server ensures end-to-end data transfer from the global network to the controller via an active TCP connection. This eliminates the need to assign a public IP address to the controller.
- If internet access is available, time synchronization is performed using the NTP servers specified in the settings.
- The web interface provides remote access to the screen for operational monitoring (it broadcasts the screen image).
- Overall, the controller is convenient for implementing RS-485 equipment control algorithms. This example implements control of a laboratory power supply. It supports setting presets and monitoring of the power supply. Operational control of the power supply is possible both from the touch panel and via the web interface.
- Remote software updates are supported via the web interface. The firmware file has integrity protection and version control, preventing failures and problems during software updates.
- The web interface allows you to save and load controller settings as files. This is convenient for remotely troubleshooting customer issues.
- There’s a built-in event log storage system. The log is stored in a separate section of flash memory and can’t be accidentally erased. This greatly simplifies debugging during development and is useful in the final application.
- Ready-to-use controls (Button, Scroll Bar, TrackBar, and others) are provided for interacting with the screen and touch panel. Callbacks to execution functions are supported. This allows you to create complex menus with short, clear sections of code, just a few lines long.