Go Down

Topic: MAX31855 library (Read 6293 times) previous topic - next topic

robtillaart

Hi,

please post the sketch you are using, so I can try to recreate the error.


Rob Tillaart

Nederlandse sectie - http://arduino.cc/forum/index.php/board,77.0.html -
(Please do not PM for private consultancy)

druidino

I used the sketch you published at the top of this post but also the adafruit library on github, but anyone works for the same reason, I thought was my IDE version too old, but i'm working with an old mac and i can't upload new versions.

robtillaart

which version of the library are you using?

see attachment for latest version 0.1.04
Rob Tillaart

Nederlandse sectie - http://arduino.cc/forum/index.php/board,77.0.html -
(Please do not PM for private consultancy)

druidino

I tried but those are errors...:(

MAX31855.cpp:19:22: error: MAX31855.h: No such file or directory
MAX31855.cpp:21: error: 'MAX31855' has not been declared
MAX31855.cpp:21: error: expected constructor, destructor, or type conversion before '(' token
MAX31855.cpp:29: error: 'MAX31855' has not been declared
MAX31855.cpp: In function 'void begin()':
MAX31855.cpp:31: error: '_cs' was not declared in this scope
MAX31855.cpp:31: error: 'OUTPUT' was not declared in this scope
MAX31855.cpp:31: error: 'pinMode' was not declared in this scope
MAX31855.cpp:32: error: 'HIGH' was not declared in this scope
MAX31855.cpp:32: error: 'digitalWrite' was not declared in this scope
MAX31855.cpp:34: error: '_sclk' was not declared in this scope
MAX31855.cpp:35: error: '_miso' was not declared in this scope
MAX31855.cpp:35: error: 'INPUT' was not declared in this scope
MAX31855.cpp: At global scope:
MAX31855.cpp:38: error: 'uint8_t' does not name a type
MAX31855.cpp:75: error: 'uint32_t' does not name a type


robtillaart

MAX31855.cpp:19:22: error: MAX31855.h: No such file or directory

looks like the library is in the wrong place

check - http://www.arduino.cc/en/Guide/Libraries -

Which version of the IDE are you using?
MAC / WINDOWS / LINUX?


Rob Tillaart

Nederlandse sectie - http://arduino.cc/forum/index.php/board,77.0.html -
(Please do not PM for private consultancy)

druidino

I'm working on a mac. The library was on the wrong place, I move it in the right folder but I have alwais some truble, tomorrow I will try to understand how it works, because the file .cpp opens only one line and the IDE done errors. Thank you very much for your time!

Richy_T

#21
Jun 30, 2015, 06:17 am Last Edit: Jun 30, 2015, 06:29 am by Richy_T
Just looking for some advice here, I don't think this is related directly to the library...

I bought a 31855K board off of ebay. The labelling is a little different from how the chips are named. I am driving Vcc from the 3.3V pin, GND from GND, Pin 5, CL I am running over a voltage divider to SCK, Pin6, CS I am running over another voltage divider to CS and DO is directly connected to SD on the board.

The voltage dividers are 10K to ground, 4K6 to the data pins and I pull off the middle. My scope seems to show these nice and close to 3.3V on the output.

The issue I'm seeing is that te[...]

Well, it just started working. Odd. I'll just leave this here for now in case it helps anyone or anyone has any advice.

The issue I was seeing was that the temperature seemed to be stuck at 5C whichever way the thermocouple wires were connected. As said, that appears not to be an issue now but it does appear to be reading about 7C low at 80C. Some of that could be due to the thermocouple housing (my comparison is to a naked junction) but that seems like a lot. Not a huge deal as I'll need to calibrate it against another measuring system anyway (I'm adding web monitoring to a control system).

The only difference from before was that the laptop I was using was on battery power and now I'm on the charger. I don't think that should have affected things though.

robtillaart

#22
Jun 30, 2015, 10:10 pm Last Edit: Jun 30, 2015, 10:11 pm by robtillaart
Quote
The only difference from before was that the laptop I was using was on battery power and now I'm on the charger. I don't think that should have affected things though.
"never assume anything"
Rob Tillaart

Nederlandse sectie - http://arduino.cc/forum/index.php/board,77.0.html -
(Please do not PM for private consultancy)

Go Up