Max31855 and the chipKIT

Post here about your Arduino projects, get help - for Adafruit customers!

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
phedlund
 
Posts: 14
Joined: Fri Jan 18, 2013 3:06 pm

Max31855 and the chipKIT

Post by phedlund »

I have the Max31855 board and it works well on the Arduino Mega. I am now trying to get it to work with the chipKit.
I have copied the Adafruit directory from the Arduino Library to the Mpide library directory.
The Mpide tells me it cant find the header file.
Is there something special I need to do to use library for the Arduino with the chipKIT?

User avatar
phedlund
 
Posts: 14
Joined: Fri Jan 18, 2013 3:06 pm

Re: Max31855 and the chipKIT

Post by phedlund »

Problem Solved
1. The Max31855 Library need to go into
/users/youruser/mpide/libraries/Adafruit_MAX31855
NOT!!
/arduino/libraries

2. in Adafruit_MAX31855.cpp
Comment out #include <avr/pgmspace.h> and #include <util/delay.h>

3. Create a sub function
void _delay_ms(int val)
{
delay(val);
}

Now the program will compile and run.
The temperature seems accurate.

Locked
Please be positive and constructive with your questions and comments.

Return to “Arduino”