ArduSat API
Main Page
Related Pages
Classes
Files
File List
File Members
All
Classes
Files
Functions
Variables
Enumerations
Enumerator
Macros
Pages
SAT_InfraTherm.h
Go to the documentation of this file.
1
/*
2
SAT_MLX90614.h - Library for Arduino returns data on temperature from
3
MLX90614 sensor
4
Copyright (C) 2012 Lara Booth for NanoSatisfi
5
6
This program is free software: you can redistribute it and/or modify
7
it under the terms of the GNU General Public License as published by
8
the Free Software Foundation, either version 3 of the License, or
9
(at your option) any later version.
10
11
This program is distributed in the hope that it will be useful,
12
but WITHOUT ANY WARRANTY; without even the implied warranty of
13
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
GNU General Public License for more details.
15
16
You should have received a copy of the GNU General Public License
17
along with this program. If not, see <http://www.gnu.org/licenses/>.
19
Notes:
20
Designed for use with Melexis (C) MLX90614 Infrared Thermometer
21
22
Library gathers temperature data over I2C Bus/SM Bus
23
24
Tested with MLX90614 from Sparkfun, 4.7k Ohm pull-up resistors, .1uF capacitor, and Arduino Uno
26
*/
27
28
#ifndef SAT_MLX90614_H
29
#define SAT_MLX90614_H
30
31
#define NS_MLX90614 0x5A //I2C address
32
33
#include <Arduino.h>
34
#include <Wire.h>
35
36
class
SAT_MLX90614
37
{
38
public
:
39
//constructor
40
SAT_MLX90614
();
41
42
//public methods
43
float
getTemp
();
44
45
private
:
46
47
//class-only methods
48
void
rawTemperature(
unsigned
char
r);
49
50
//global variable
51
double
factor;
52
double
tempData;
53
};
54
55
#endif
/* SAT_MLX90614_H */
ArduSatSDK-master
SAT_InfraTherm
SAT_InfraTherm.h
Generated on Fri Jul 26 2013 15:07:55 for ArduSat API by
1.8.3.1