sekdiy / CoreSensors

An interface to the Arduino's internal temperature (diode reference) and supply voltage (bandgap reference).
MIT License
5 stars 1 forks source link

support for mega2560 ? #3

Closed TechnicsUser closed 6 years ago

TechnicsUser commented 7 years ago

support for mega2560 ?

sekdiy commented 6 years ago

Partially.

The CoreSensors library offers voltage and temperature measurement. The ATmega2560 supports voltage measurement, but not temperature.

According to the datasheet (figure 26-1 on page 269) the ATmega2560 offers a second internal voltage reference instead of i.e. the ATmega328's thermal diode. So the ATmega2560 unfortunately lacks the hardware required to measure internal temperature (a featured in this library).