I am trying to control a PWM fan on a Arduino Nano. I haven't attched the fan or the control code yet, as I'm testing the method of reading chip temperature first
I have just tried the TempReader test code, however it is reading -23C and 1C when it is 30C ambient temperature.
Not really sure why, the Nano is supposed to be supported by the library.
Here is the example code:
/*
* An example code to demonstrate the use of TempReader library.
* This program prints the chip temperature to the serial monitor at every 0.5sec interval.
*/
// Import TempReader
#include <TempReader.h>
// Create an object of TempReader
TempReader t;
void setup() {
// Initialise Serial Communication
Serial.begin(9600);
}
void loop() {
// Read the temperature value in degree celsius
int temp = t.ReadTempinC();
// Display the value in the serial monitor
Serial.print("Chip temperature is ");
Serial.print(temp);
Serial.println(" degrees Celsius");
delay(500);
}
I am also curious how it is done with the LM35/LM36 and DHT. I assume (but not sure) it is factory calibrated and creates voktage changes per partial unit of temperature.