Skip to main content

Configuring 1-Wire

Requirement: A 1-wire temperature sensor is connected.

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

Tip

You can use the boot application to detect the ID.

. Functionality of the sample application:
  • Search the network for 1-Wire devices and display the IDs of the detected devices in a visualization

  • Measure and display the sensor temperature if there is a DS18B20 with a correctly configured ID among the detected devices.

_rbp_projected_1_wire.png

Important

The data exchange via 1-Wire is very time-consuming. In the meantime, the task is blocked. For time-critical applications, assign the application of the 1-Wire fieldbus devices to another task. You can assign tasks in the Device Editor on the Task List tab.