BlueWave Studio forum
Support for thermistors - Printable Version

+- BlueWave Studio forum (https://bluewavestudio.io/community)
+-- Forum: OpenAuto Pro (https://bluewavestudio.io/community/forum-86.html)
+--- Forum: Temperature sensor (https://bluewavestudio.io/community/forum-90.html)
+--- Thread: Support for thermistors (/thread-1063.html)

Pages: 1 2 3


Support for thermistors - leobaillard - 08-27-2019

Hi!

Most older vehicules use thermistors instead of digital temperature sensors like my Peugeot 206. I managed to get the temp reading using a Python script and the Steinhart formula but the current temperature reading in OAP uses 1-Wire device descriptors.

Could OAP also support alternative ways of reading temp? It could be a pipe or just polling a script at a set interval.

Thanks for your input! I hope I'm not the only one tackling this issue. At the moment I rely on an external LCD display to get the temperature but I'd much rather have it in OAP!


RE: Support for thermistors - Daniel_BlueWave - 08-28-2019

Wouldn't be easier for you to use digital sensor instead?

There are different types of thermistors, characteristics etc. Adding handler for thermistor is not in our scope right now.


RE: Support for thermistors - leobaillard - 08-28-2019

Using a digital sensor would not be easier in my case as I would need to add an other external sensor instead of using the one that already comes with the car.

I agree that handling thermistors directly could be complicated, that's why I suggested reading the temperature value from the output of a script, which is much easier to do and would leave the customization to OAP users.


RE: Support for thermistors - BlueWave - 08-28-2019

OpenAuto Pro does not distinguish whether provided descriptor is one wire or anything else. You can create a named pipe and provide temperature data in the same way as DS sensor.


RE: Support for thermistors - leobaillard - 08-28-2019

Yep, that's what I was going to try.

I'll post a script if I manage to get somewhere! Might interest some people Smile


RE: Support for thermistors - leobaillard - 08-29-2019

Would it be possible to have a pseudo code overview of how OAP reads the w1 sensor so that I can replicate that on my named pipe?

Thanks!


RE: Support for thermistors - BlueWave - 08-29-2019

You need to provide data in DS18B20 compatible way. Please have a look e.g. here https://github.com/TeraHz/DS18B20/tree/master/src

The simplest way would be to put t=10000 to the named pipe which gives you 10 celcius degrees (/1000).


RE: Support for thermistors - botswanabub - 10-16-2019

hi,

I tried to do this (to test), finaly I will pipe the cpu temp. but OAP only aborts wenn I execute the parsing ... where is my mistake

echo "t=10000" > MYPIPE

System: RPI4 3.3.2RC1


p.s. the infos version is hard coded and is not changing the font color. in my case is white on white background


RE: Support for thermistors - botswanabub - 10-16-2019

ok find a solution -> parsing temp in a textfile. works for me!


RE: Support for thermistors - leobaillard - 10-16-2019

Could you post an example that uses your solution? I'd be interested to see how you did it!

Thanks!