Microsoft MakeCode is one of our favorite programming methods. It is super easy to learn, yet it has many capabilities to build more advanced projects and even really good games.

A common project in MakeCode is to read sensors like temperature, light, moisture, etc. and record or display the values for the user. The display part can be easy with lights and displays. But recording data for later use has been laborious. Here at Adafruit, we made a project to log data to a Google Sheets spreadsheet but that required attaching a phone, a big peripheral, for the full length of the data collection.

With an additional extension, MakeCode can also write data to a file, if the microcontroller has some flash memory aboard. Adafruit's Express series, which is programmable in both MakeCode and CircuitPython, has extra flash used (up to now) for CircuitPython. The MakeCode extensions Datalogger and Storage use that flash storage to allow the programmer to write data out as files.

Parts

For this project, we are going to use the Adafruit Circuit Playground Express. It has built-in sensors and 2 megabytes of flash storage all at one low price involving zero soldering. Other Express boards from Adafruit also have similar capabilities, although adding the sensors to gather data may take additional boards or wires.

Circuit Playground Express (CPX for short) comes as a round, black board from Adafruit - you might have a red Digi-Key CPX or even a green 4-H logo CPX! They all work 100% the same, so there are no worries if you see a picture and your CPX is a different color.

A Black woman's manicured hand holds a round microcontroller with lit up LEDs.
Circuit Playground Express is the next step towards a perfect introduction to electronics and programming. We've taken the original Circuit Playground Classic and...
$24.95
In Stock

These packs will have all the parts you need!

Person watering sprouts with a Circuitry water sensor attached
We are super pleased to enjoy a partnership with an engaging, empowering foundation like 4-H. Here at Adafruit we drive ourselves to "be...
Out of Stock
Rectangular case for Circuit Playground Express - Base Kit.
It's the Circuit Playground Express Base Kit! It provides the few things you'll need to get started with the new
Out of Stock

This guide was first published on Aug 27, 2019. It was last updated on Aug 27, 2019.

This page (Overview) was last updated on Aug 22, 2019.

Text editor powered by tinymce.