Temperature sensor library

Dependents:   HEPTA_SENSOR HEPTA_SENSOR

Committer:
HeptaSatTraining2019
Date:
Wed Aug 21 12:20:04 2019 +0000
Revision:
7:79fba3155857
Parent:
3:96c3dd85be15

        

Who changed what in which revision?

UserRevisionLine numberNew contents of line
hepta2ume 0:f74735cb01bc 1 #ifndef MBED_HEPTA2TEMP_H
hepta2ume 0:f74735cb01bc 2 #define MBED_HEPTA2TEMP_H
hepta2ume 0:f74735cb01bc 3 #include"mbed.h"
hepta2ume 0:f74735cb01bc 4
hepta2ume 0:f74735cb01bc 5 class HeptaTemp
hepta2ume 0:f74735cb01bc 6 {
hepta2ume 0:f74735cb01bc 7 public:
hepta2ume 0:f74735cb01bc 8 HeptaTemp(PinName pin);
hepta2ume 0:f74735cb01bc 9 void temp_sense(float* temp);
HEPTA 3:96c3dd85be15 10 void temp_sense_u16(char* temp_u16);
hepta2ume 1:a23c2cd65379 11 void temp_sensing_vol(float* voltage);
hepta2ume 0:f74735cb01bc 12
hepta2ume 0:f74735cb01bc 13 private:
hepta2ume 0:f74735cb01bc 14 //resistance
HeptaSatTraining2019 7:79fba3155857 15 float R1,R2,R3,R4,R5;
hepta2ume 0:f74735cb01bc 16 float Pt;
HeptaSatTraining2019 7:79fba3155857 17 float R_1,R_2;
hepta2ume 0:f74735cb01bc 18 //current
hepta2ume 0:f74735cb01bc 19 float I;
hepta2ume 0:f74735cb01bc 20 //voltage
hepta2ume 0:f74735cb01bc 21 float Vref;
hepta2ume 0:f74735cb01bc 22
hepta2ume 0:f74735cb01bc 23 //temperature coefficient
hepta2ume 0:f74735cb01bc 24 float ce;
hepta2ume 0:f74735cb01bc 25
hepta2ume 0:f74735cb01bc 26 AnalogIn _pin;
hepta2ume 0:f74735cb01bc 27
hepta2ume 0:f74735cb01bc 28 };
hepta2ume 0:f74735cb01bc 29
hepta2ume 0:f74735cb01bc 30 #endif