
Hello friends, I hope you all are doing great. Today, I am going to share the Nextion HMI Conveyor Control on Raspberry Pi 5 - Proteus Simulation, the ninety-fourth project of our IoT Projects series. If you have searched for a Nextion display with a Raspberry Pi, how an HMI talks over a UART, DC motor speed control with an encoder and a PI loop, or an L298N with a Raspberry Pi 5, here is a complete small production line in a Proteus simulation. Every machine on a factory floor has an operator panel next to it: a touchscreen with a big start button, the speed, and a graph of what the machine is doing. This project builds one for a conveyor belt. A Nextion 3.2" HMI shows the state, the set speed, the belt's real speed and the motor's duty, and its ON, OFF and GRAPH buttons send touch events back to a Raspberry Pi 5 over the UART. The Pi drives a JGB37-520 gear motor through an L298N, counts its encoder pulses, and runs a PI speed loop that keeps the belt at its set speed when boxes load it down. It starts and stops the belt softly, and when the belt jams it switches the motor off and turns the screen red. A dashboard on the network sets the speed and shows the counters. In this tutorial, we will go through the circuit, the Nextion's instruction set and return frames, how the L298N and the encoder work, the PI loop with its feed-forward and anti-windup, and the code. Then we load the belt, watch the speed on the HMI's graph, jam it and restart it in the simulation. At the end, ...







