Tag: PCF8574 Raspberry Pi

1 articles found.

Raspberry Pi 5 Machine Monitor: SW-420 and PCF8574 Proteus Simulation

Raspberry Pi 5 Machine Monitor: SW-420 and PCF8574 Proteus Simulation: the Raspberry Pi 5, four SW-420 sensors, the PCF8574 and the status LEDs

Hello friends, I hope you all are doing great. Today, I am going to share the Raspberry Pi 5 Machine Monitor: SW-420 and PCF8574 Proteus Simulation, the one hundredth project of our IoT Projects series. If you have searched for a Raspberry Pi machine monitoring system, how to count pulses from an SW-420 vibration sensor, how to use a PCF8574 with a Raspberry Pi, or how to measure machine utilisation, here is a complete one in a Proteus simulation. Factories pay a lot to know one simple number: how many hours a day each machine actually works. Old machines have no network port, but every running machine shakes. This project screws an SW-420 vibration sensor to each of four workshop machines, a lathe, a mill, a drill and a compressor, and lets a Raspberry Pi 5 count the pulses each sensor gives. No pulses means the machine is idle, a steady stream means it is running, and a flood of pulses means it is running rough: something loose, worn or out of balance. The Pi ignores a single knock on the bench, logs every machine's running time, starts and utilisation, and lights a green or a red LED for each machine through a PCF8574 I/O expander. A dashboard shows it all from a laptop or a phone. In this tutorial, we will go through the circuit, how a vibration switch turns shaking into pulses, how to count them reliably in Python, how the PCF8574 drives LEDs with a single byte, and the code. Then we run a small workshop in the simulation. At the end, you can download the project with ...