Announcement

REXYGEN forum has been moved. This one is closed.
Head over to the new REXYGEN Community Forum at https://forum.rexygen.com.

Looking forward to meeting you there!
 

#1 2016-09-20 10:54:32

owanel
Member
Registered: 2016-09-20
Posts: 5

Temperatur Sensor DS18B20

Hello,
i know that there are many peoples here wo use this sensor  so i hope someone can help me

i use this sensor (DS18B20) to mesure the temperature ,i can read the real temperature when i use the commandes for raspberry pi 2 but  i cant messure the temperature  when i use RexDraw

Offline

#2 2016-09-20 12:09:15

tomáš čechura
Administrator
Registered: 2016-02-22
Posts: 371

Re: Temperatur Sensor DS18B20

Hi owanel,

thank you for your question. Please, can you provide some more details about your issue? Which commands did you use? How does your Rex project look like? Do you use powered DS18B20 or the parasitic ones (DS18B20-PAR)?

Did you follow this tutorial: IO configuration for the Raspberry Pi platform?

Regards, Tomas

Offline

#3 2016-09-22 11:04:01

owanel
Member
Registered: 2016-09-20
Posts: 5

Re: Temperatur Sensor DS18B20

Hallo Tomas,

thank you for your answer,
i use  owread /28.0B5874060000/temperature12 and i can mesure the temperature
for my Project i use rexcontrols to mesure the temperature  in one experiment and i use  powered DS18B20 for that
yes i follow this tutorial  and i have this errors when i compile

warning21   unconnected line found ( block `ows_temperature´)
warning 21 unconnected line found ( block PIDU_PID)
warning 21 unconnected line found ( block TRND)
Error 126  Validation Error-209( invalid variable type in pin`ows_temperature:value)
Error 126 Validation error-109(REX I/0driver error) in pin `RPI_PWM18:value
best Regards,Owanel

Offline

#4 2016-09-22 11:22:36

owanel
Member
Registered: 2016-09-20
Posts: 5

Re: Temperatur Sensor DS18B20

Hallo Tomas ,
to mesure this temperature i use

DS18B20
Unipi
Raspberry pi 2 and Rexcontrols

i hope this informations are useful

best regards ,Owanel

Offline

#5 2016-09-22 11:23:29

tomáš čechura
Administrator
Registered: 2016-02-22
Posts: 371

Re: Temperatur Sensor DS18B20

Hi Owanel,

all IO flags in REX should have two underscores behind the IO driver name prefix.
You are probably using two drivers: RPI and OWS, right? Please, note that the driver names are case sensitive.

Try to rename your IO flags to: "OWS__temperature" and "RPI__PWM18" (two underscores are necessary) and recompile the project. Do you still get those errors?

Note: There is an example on our GitHub which can be helpful for you: Simple Thermostat example

If you require any further information, feel free to contact me.

Regards, Tomas

Offline

#6 2016-09-23 11:32:36

owanel
Member
Registered: 2016-09-20
Posts: 5

Re: Temperatur Sensor DS18B20

Hello Tomas ,
i had renamed the IO flags  but i always have the sames errors when i try to compile it

Best Regards, Owanel

Offline

#7 2016-09-23 11:48:07

tomáš čechura
Administrator
Registered: 2016-02-22
Posts: 371

Re: Temperatur Sensor DS18B20

Hi Owanel,

the prefix for IO flags should be the same as the IO driver names. OWS and RPI was just my presumption that you are probably following one of our examples.

If you still have difficulties compiling your project, please, upload your project source files here and I will have a look at it.

Regards, Tomas

Offline

#8 2016-09-26 11:12:10

owanel
Member
Registered: 2016-09-20
Posts: 5

Re: Temperatur Sensor DS18B20

Hello Tomas ,
now it is ok  thanks for your help

Best Regards , Owanel

Offline

#9 2016-09-26 12:04:01

tomáš čechura
Administrator
Registered: 2016-02-22
Posts: 371

Re: Temperatur Sensor DS18B20

Hi Owanel,

I'm glad I could help. Good luck with your project!

Regards, Tomas

Offline

Board footer

Powered by FluxBB