About fredscave.com

In the Beginning

The fredscave.com  website is continually being updated and added to. It's an educational resource devoted to all things microcontroller with the current emphasis on MicroPython programming.

It started off as a site promoting the BBC micro:bit board. This little board is used in classrooms right around the world. Unfortunately, the primary and officially supported programming environment for the micro:bit in education is a thing called "MakeCode".

MakeCode uses a block-based interface where students drag and order configurable tiles to construct a "program". It's possibly a starting point for teaching coding concepts like loops, variables and conditionals. As this is of limited value we would strongly encourage capable students to switch to a "real world" language such as MicroPython (Python for microcontrollers) as soon as possible.

Python is one of the most used coding languages today. As an Object-Oriented Programming (OOP) language it teaches good structured code that is modular, reusable and scalable that models real-world entities. A far cry from the simplicity of the likes of MakeCode.

MicroPython is described as a lean and efficient implementation of Python 3 optimized to run on microcontrollers and in constrained environments with limited memory and processing power. MicroPython is now available for quite a wide variety of microcontrollers.

In order to squeeze MicroPython onto the micro:bit with its smallish flash memory the developers needed to slim down something that already has been slimmed. Thankfully it can be reported they've done an excellent job. MicroPython on the micro:bit is an excellent and powerful learning tool.

The very first thing we did after establishing this website was to write a MicroPython tutorial series especially for the micro:bit. It starts by examining the rules for identifier naming.

And Now...

The micro:bit project, now mature, consists of a MicroPython tutorial, MicroPython specifics for the micro:bit and a large collection of drivers specifically written for this platform. The driver collection will continue to evolve and grow over time.

At the time of writing this article (March, 2026) we have now moved onto examining other microcontrollers capable of running the MicroPython firmware. Often there seems to be a lack of precises documentation so "reverse engineering" the boards from manufacturer's datasheets and literally testing the existence of features with small MicroPython scripts has become the order of the day. And we record and report on the progress. Correspondence by email is welcome if we've got some details wrong!

All of the main microcontroller families are being covered; STM32, ESP8266, ESP32, RP2, SAMD21, the i.MX RT1062 and more. Multiple boards from most families have been purchased and MicroPython firmware flashed with the aim to describe the practical use of each and everyone of these.

A few boards from the above mentioned microcontroller families don't have an official MicroPython firmware port. In those cases we have loaded CircuitPython (close relative of MicroPython).

...And the Future

Inevitably the future involves moving on to consider those microcontrollers physically incapable of running MicroPython. That will involve C/C++ and perhaps some Assembly programming.

We're talking mainly of 8-bit processors with very limited resources and slow clock speeds; often 20 MHz or less. Families may include Intel 8051, PIC, ATtiny, ATmega8, STM8, MSP430 and more.

This, however, will never include Arduino tutorials. The world already has enough of those!