Programming a Custom STM32 PLC: Octal I/O, RS-485 Direction Control and Retentive Memory
A custom PLC looks like a simple firmware project: read some inputs, run some logic, switch some relays. The hardware is where most of the work seems to be. Then the first field test happens, and the bugs turn out…