Temperature icon by MarkieAnn Parker @ Noun Project

CircuitPython (a derivative of MicroPython) is designed to simplify experimentation and education on low-cost microcontrollers. It makes it easier than ever to get prototyping by requiring no upfront desktop software downloads.

Version 2.0.0 introduced a lot of features, among which were the storage module (allows CircuitPython to save data to the internal filesystem) and microcontroller.cpu.temperature object. So, let's put the two together and create a very tiny temperature logger!

Be sure you have CircuitPython 2.0.0 or above on your device!

2.0.0 was released September 12, 2017, so if you bought your board before or around that time there’s a good chance it needs updating. Download the update and follow the instructions on the 2.0.0 release page.

We'll be using an Adafruit Gemma M0 for this guide but any CircuitPython-capable device that uses the SAMD21 can run this code. If you are not using SAMD21 you will be missing the cpu temperature capability so just wire up an external temp sensor

This guide was first published on Sep 27, 2017. It was last updated on 2023-12-05 11:34:13 -0500.

This page (Introduction) was last updated on Sep 13, 2017.

Text editor powered by tinymce.