I. Temperature sensor & Raspberry PLC: How to connect them

DS18B20 Dallas Sensor & Raspberry Pi automation
June 11, 2021 by
I. Temperature sensor & Raspberry PLC: How to connect them
Boot & Work Corp. S.L., Fernandez Queralt Martinez

Introduction

The DS18B20 is a digital temperature sensor that uses the One-Wire protocol to communicate, this protocol needs only one data pin to communicate and allows more than one sensor to be connected on the same bus.

In this post, we are going to connect our Dallas temperature sensor with an industrial  Raspberry Pi PLC  for industrial automation.

Dallas DS18B20 Sensor - I. Temperature sensor & Raspberry PLC: How to connect them

Related Links

How to

Connect Raspberry Pi based PLC to Wi-Fi

Read 

Basics about

Raspberry Pi PLC Analog Inputs

Read  

How to

Program Raspberry PLC interrupt inputs with Python

Read  

Raspberry Pi industrial PLC

Family Products

See 


Connections between a temperature sensor and a programmable logic controller

Dallas DS18B20 Sensor 

The DS18B20 sensor is made up of a processor with multiple modules, with which communication is remote controlled and the alarm system is measured in real time for industrial control.

One of the main advantages of DS18B20 is its 1-Wire communication bus that allows you to transmit using only one data cable. For this, 1-Wire is based on a complex signal timing system, between the emitting device and the receiver.

The 1-Wire device allows all devices connected to the bus to be powered through the data line. To do this, they have a capacitor that stores energy while the data line is in HIGH. This mode is called "parasitic mode". In case of not using the parasitic mode, the devices must be powered at a voltage between 3.0V and 5.5V.

Connection to Raspberry Pi PLC controller

In the picture below, you will see how to connect the temperature sensor to the Raspberry Pi open source PLC. We can only connect the yellow wire to GPIO 25, or in other versions of the RPI PLC, GPIO 8, because it is a direct pin that goes directly to the GPIO. See how:

Connection Raspberry PLC and GPIO - I. Temperature sensor & Raspberry PLC: How to connect them

Now, you are ready to read the temperature with your Dallas DS18B20 temperature sensor from your industrial Raspberry PLC!

See more

​Search in our Blog

I. Temperature sensor & Raspberry PLC: How to connect them
Boot & Work Corp. S.L., Fernandez Queralt Martinez June 11, 2021
Share this post

Looking for your ideal Programmable Logic Controller?

Take a look at this product comparison with other industrial controllers Arduino-based. 

We are comparing inputs, outputs, communications and other features with the ones of the relevant brands.


Industrial PLC comparison >>>