Writing OpenPLC drivers using PSM - DS18B20 on Raspberry Pi
OpenPLC OpenPLC
7.78K subscribers
10,001 views
283

 Published On Jan 5, 2023

How can you read temperature on a Raspberry Pi with no analog inputs? Today you will learn how to use OpenPLC's Python SubModule (PSM) to easily write hardware drivers to interface unsupported sensors with OpenPLC. On this video you will see a step-by-step example application adding support for the DS18B20 digital temperature sensor on a Raspberry Pi. Other sensors and hardware peripherals can be added using the same principles with PSM.

Enabling 1-Wire on the Pi 03:22
Wiring 04:15
Testing on terminal 05:25
Testing on Python 08:15
Enable PSM driver 10:52
Writing PSM code 12:40
Creating test project 19:12
Testing 22:45

show more

Share/Embed