6S with Temperature
Posted: Thu Jul 16, 2020 9:14 am
2 parts to this question really...
1) My Arduino has 8 analogue inputs (A0-A7). If I use 6 of them for my 6S cell monitoring and another 1 for current monitoring, this leaves me with 1 more that I'd like to use for temperature monitoring. Is it possible to do this in a nice way as it seems the configuration files are only setup to read 6 voltages?
2) My (nasty) solution so far has been to hack the analogue reading of a thermistor into the RPM section of the main openXsensor.ino as RPM seems quite an easy section to modify:
However with this method my Taranis is reporting the temperature as RPM and although I can charge this on the Taranis I'd like to change it in the code really. I've tried changing this line in the advanced configuration files but the Taranis still seems to see the temperature as RPM:
Does anyone know what I'd have to change to get this 'RPM' to show up as a temperature by default?
Thanks
Matt
1) My Arduino has 8 analogue inputs (A0-A7). If I use 6 of them for my 6S cell monitoring and another 1 for current monitoring, this leaves me with 1 more that I'd like to use for temperature monitoring. Is it possible to do this in a nice way as it seems the configuration files are only setup to read 6 voltages?
2) My (nasty) solution so far has been to hack the analogue reading of a thermistor into the RPM section of the main openXsensor.ino as RPM seems quite an easy section to modify:
Code: Select all
#ifdef MEASURE_RPM
if (millis() > ( lastRpmMillis + 200) ){ // allow transmission of RPM only once every 200 msec
if (RpmSet == true) { // rpm is set
RpmSet = false ;
} else {
RpmValue = 0 ;
}
//sport_rpm.value = RpmValue ; //------------------------Comment this out so RPM isn't populated with actual RPM!
sport_rpm.value = 25 ; //------------------------Add thermistor code here (value of 25 now reported on the tx as a test, which seems to work...)
sport_rpm.available = true ;
lastRpmMillis = millis() ;
Code: Select all
#define DATA_ID_RPM 0xE4
Thanks
Matt