MCP9808

This is a special forum devoted to educators using Adafruit and Arduino products for teaching.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
willie_a
 
Posts: 2
Joined: Mon Mar 27, 2017 12:58 pm

MCP9808

Post by willie_a »

I downloaded the arduino library for this temperature sensing device including a breakout board and wired it per the instruction to my arduino (https://learn.adafruit.com/adafruit-mcp ... ide/wiring) I download a basic sketch from the arduino library and the sketch would not compile. Any advice?

I also tried to load the i2C program to use. In the instructions, we are told that this is required to use the sensor. I got an error stating that I needed to remove some files. Any advice?

Will

User avatar
adafruit_support_carter
 
Posts: 29168
Joined: Tue Nov 29, 2016 2:45 pm

Re: MCP9808

Post by adafruit_support_carter »

Post the error messages you are seeing when compiling.

User avatar
willie_a
 
Posts: 2
Joined: Mon Mar 27, 2017 12:58 pm

Re: MCP9808

Post by willie_a »

This is the error from Arduino

/Users/willasch01/Downloads/Adafruit_MCP9808_Library-master 4/examples/mcp9808test/mcp9808test.ino:12:30: fatal error: Adafruit_MCP9808.h: No such file or directory
#include "Adafruit_MCP9808.h"
^
compilation terminated.
exit status 1
Error compiling for board Arduino/Genuino Uno.
/Users/willasch01/Downloads/Adafruit_MCP9808_Library-master 4/Adafruit_MCP9808.cpp

User avatar
adafruit_support_carter
 
Posts: 29168
Joined: Tue Nov 29, 2016 2:45 pm

Re: MCP9808

Post by adafruit_support_carter »

It's having trouble locating the library files. Did you rename the folder and relocate it to your Arduino library location?
https://learn.adafruit.com/adafruit-mcp ... it-mcp9808

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

Return to “For Educators”