Skip to main content

Example: Controlling the DS18B20 Temperature Sensor Connected via OneWire

Product: CODESYS Control for Raspberry Pi

The OneWire.project project shows an application which detects devices connected via OneWire. Moreover, a DS18B20-type temperature sensor is controlled. In this case, the OneWire data line is connected to GPIO4.

For more information, see: Configuring OneWire

Note

_example_icon.png After the installation of CODESYS Control for Raspberry Pi, the sample project is located in the CODESYS Control for Raspberry Pi installation directory, in the Examples directory.

System requirements and restrictions

Programming system

CODESYS Development System (version 3.5.18.0 or higher)

Runtime system

CODESYS Control for Raspberry Pi (version 4.5.0.0 or higher)

Add-on components

OneWire temperature sensor