spirilis 1,265 Posted October 20, 2014 Share Posted October 20, 2014 Would be interesting to see what numbers you're getting, but in either case, try this sketch to dump the raw output: #include <SPI.h> #define CS 18 void setup() { Serial.begin(115200); SPI.begin(); pinMode(CS, OUTPUT); digitalWrite(CS, HIGH); Serial.println("Begin..."); delay(500); } void loop() { byte b; int i; Serial.print("Reading MAX31855: "); digitalWrite(CS, LOW); for (i=0; i < 4; i++) { b = SPI.transfer(0); Serial.print(b, HEX); Serial.print(' '); } Serial.println(); digitalWrite(CS, HIGH); delay(2000); } I can't recall the maximum SPI speed supported by the MAX31855, but if all else fails, SPI.setClockDivider(SPI_CLOCK_DIV16) should force it down to 1MHz I believe. Quote Link to post Share on other sites
Chuckymonkey 0 Posted October 21, 2014 Author Share Posted October 21, 2014 It's almost like the chip is quitting. If I unplug the sensor from the chip and then plug it back in it'll work, otherwise it just reads nothing. What I mean by that is that it'll work for a little while and then it won't, if I remove the 5V it'll register the same as if I had not done anything. Quote Link to post Share on other sites
Chuckymonkey 0 Posted October 21, 2014 Author Share Posted October 21, 2014 Just for fun I made it tweet, here's the link: https://twitter.com/SuperSmoker3000 Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.