Tag: sensor suhu

Sensor Suhu Internal ATmega328

It turns out the Arduino 328 has a built in thermometer. Not the old Mega8 or 168. Not the Arduino Mega. Just 328 based Arduinos. The sensor isn’t very accurate – the data sheet says ±10°C. long readTemp() { long result; // Read temperature sensor against 1.1V reference ADMUX = _BV(REFS1) | _BV(REFS0) | _BV(MUX3); …

Continue reading