Academic Hardware Products (myDAQ, myRIO)

cancel
Showing results for 
Search instead for 
Did you mean: 

Connecting myRIO with DALLAS 18B20 temperature sensor

Ah ok. Did it - thanks.

First problem is solved 😄

 

Next step is to communicate with the sensor.

I need to send him commands and read the answers.

For example "Write Scratchpad" -> 4E = 1001110

The problem is, I don't know how to send this.

After this command, I should send him the "reading" command I think.

The sensor should send back high and low levels, which represent 1s and 0s.

I have to combine them to a decimal number somehow, to get the temperature.

 

I made a quick example (which is not working of course 😕 ). I guess, there should be "waiting-times" between the commands.

I just don't know how to get the temperature out of this sensor 😕

0 Kudos
Message 11 of 14
(6,740 Views)

 

Did you already download this utility ?

https://www.ni.com/en/support/downloads/tools-network/download.onewire-utilities.html

 

If not install it and look up for the examples,  just type in 1wire in example search at labview.

 

and don't forget the driver for your device as mentioned in the link

 

This should help you out

0 Kudos
Message 12 of 14
(6,723 Views)

Hi all

 

Can i use parasite power mode in myRIO? 

 

Thanks

0 Kudos
Message 13 of 14
(6,007 Views)

hey Shoura, 

 

hope you are doing well!

Did you find a solution for the DS19B20 temperature sensor, I am facing the same problem and actually the VIs of the oneWire utility doesn't work without licensing and they are not that easy to understand.

Your answer is highly appreciated.

0 Kudos
Message 14 of 14
(1,766 Views)