Skip to content

Internal temperature sensor #104

@Koepel

Description

@Koepel

The channel for the internal temperature sensor of the ATmega328P returns a random value.
For an Arduino board, the internal temperature sensor is just a gimmick. A fixed value of 350 for the raw ADC value (for 21.1 °C) is good enough.

Test sketch: theorycircuit.com/arduino-internal-temperature-sensor

Wokwi project: wokwi.com/arduino/projects/308789665572323906

Result with real Arduino Uno (at room temperature of 22 °C, offset in sketch not adjusted):

Internal Temperature Sensor
13.7
12.9
13.7
12.9
12.9

Result with Wokwi:

Internal Temperature Sensor
-43.7
-252.7
512.9
467.0
446.5

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions