Hi all.
I've got a small project i'm building up towards, but the first piece of the puzzle is Temperature measurement.
I have a MAX31850K (will end up with 3 more), but while the resolution is just about acceptable (0.25°C), the rate seems pretty slow ~1Hz
i guess the processing rate of the chip will rely on the amount of data coming in/out. but is there a way of increasing the speed, or controlling the priority of signals?
My end goal is to have a stand-alone engine monitoring system with knock warning light and exhaust gas temp display, and a Lambda controller outputting 0-5v to my ECU.
// pull in TC measurement library
#include <OneWire.h>
#include <DallasTemperature.h>
//Pull in LCD library
#include <Wire.h>
#include "rgb_lcd.h"
//TC wire is connected to port 3
#define ONE_WIRE_BUS 3
//setup onewire devices
OneWire oneWire(ONE_WIRE_BUS);
//Reference DallasTemperature
DallasTemperature sensors(&oneWire);
//call up LCD display
rgb_lcd lcd;
const int colorR = 255;
const int colorG = 0;
const int colorB = 0;
void setup(void) {
//setup the TC comms
Serial.begin(115200);
sensors.begin();
//setup lcd
lcd.begin(16, 2); //16 chars wide, 2 rows
lcd.setRGB(colorR, colorB, colorG);
}
void loop(void) {
Serial.print("TC1 is: ");
Serial.println(sensors.getTempCByIndex(0));
//print TC value to lcd
lcd.setCursor(0, 0);
lcd.print("T1:");
lcd.println(sensors.getTempCByIndex(0));
}