I started with arduino a few days aago, but and i want to learn more
I connected an tc74 temperature sensor on arduino, wrote the code, but the programm don't do nothing.
i think the address is 0x48
i saw this code on a toturial that include an i2c device and made some modifications, i made some prints to see where the problem is and the program just print 123
Wire.begin(0x4D); // wake up I2C bus Serial.begin(9600);
void getCN75data(byte *a)
// move the register pointer back to the first register
Wire.beginTransmission(0x4D); // "Hey, CN75 @ 0x48! Message for you"
Wire.send(0); // "move your register pointer back to 00h"
Wire.endTransmission(); // "Thanks, goodbye..."
// now get the data from the CN75
Wire.requestFrom(0x4D, 1); // "Hey, CN75 @ 0x48 - please send me the contents of your first two registers"
*a = Wire.receive(); // first received byte stored here
if (aa>127) // check for below zero degrees
} else // it must be above zero degrees
Serial.print("Temperature = ");
Serial.println(" degrees C");
Please help, sorry about my english :S
Thanks in advance