Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Support for thermistors
#1
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!
Reply
#2
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.
Reply
#3
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.
Reply
#4
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.
Reply
#5
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
Reply
#6
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!
Reply
#7
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).
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)