This Adapter / Sensor consists only of one integrated circuit. This is an TMP-101 from Texas Instruments. Yes, we have heard, that
there are more accurate sensors available :-)
Therefore this is not intended to compete with professional weather stations. Just to show and test the functionality of the system.
Quasi a source of data which we have control over it.
✈ Arduino Sketch - The TEST - Code
Double click on code to select ...
Standalone Sketch to test the Temperature sensor with an TMP101
(Just to test the sensor and the I2C communication)
Alexander C. Frank, 16.06.2015, Version 1.0
byte I2C_address = 0x49;
Wire.begin(); // join i2c bus (address optional for master)
Serial.begin(9600); // start serial for output
// INIT TMP101 - SET RESOLUTION TO 12 Bits
Wire.write(0x01); // Configuration Register
Wire.write(0x60); // R0 and R1 = 1
int temp_hi = Wire.read(); // integer value
int temp_lo = Wire.read(); // fractional value
int temp = (( temp_hi << 8 ) | temp_lo ) >> 4 ;
float temperature = temp * 0.0625 ;
✈ Share your thoughts
✈ Nothing more to be seen below this point ? Maybe your browser blocks the facebook iframe. ✈ The webmaster does not read the comments regularly. Urgent questions should be send via email.