DLP AFR linearisation
Posted: Thu May 29, 2014 11:05 pm
hi Matt
I have the Arduino mega with a 2x16 display. uart1 is connected to 2 daisy chained lc1s (r32gtr) uart 0 is connected to nistune. I am scaling AFRs in arduino to match default AFR1 scaling in nistune the raw zero displays 8 in nistune raw 1024 displays 32 in nistune afr of 14.64 in arduino scales to 283 raw(int) but displays in nistune as 14.76
here is my scaling in arduino case DLP_CMD_ANALOG_IN_CH1:
sensorValue = int((fAFR_Front-8) * 1024 /24); fAFR_Front is data type float 283.3 , there appears to be some linearisation around stoich values in nistune. (283 * 24/1024)+ 8 = 14.63
Nistune version 1.2 jan 10 2014.
I have the Arduino mega with a 2x16 display. uart1 is connected to 2 daisy chained lc1s (r32gtr) uart 0 is connected to nistune. I am scaling AFRs in arduino to match default AFR1 scaling in nistune the raw zero displays 8 in nistune raw 1024 displays 32 in nistune afr of 14.64 in arduino scales to 283 raw(int) but displays in nistune as 14.76
here is my scaling in arduino case DLP_CMD_ANALOG_IN_CH1:
sensorValue = int((fAFR_Front-8) * 1024 /24); fAFR_Front is data type float 283.3 , there appears to be some linearisation around stoich values in nistune. (283 * 24/1024)+ 8 = 14.63
Nistune version 1.2 jan 10 2014.