Easy entry to microcontroller programming
Microcontrollers for Beginners
The Nibble kit by CircuitMess is a freely programmable mobile game console that makes getting started with microcontroller programming a breeze.
The Nibble kit by CircuitMess [1] comes with everything you need to build a portable game console. It even includes a soldering iron to solder the buttons. The lead-free solder included in the kit will easily last for several more projects. The kit also includes a simple screwdriver for assembling the case, and you won't hear this very often: The batteries are included (Figure 1).
The kit is suitable for children from nine years up, but as my test shows, older users can have fun with the kit, as well. The very detailed and easy-to-understand instructions explain all the build actions step by step. In some places, links to online videos lend further help. The assembly instructions are available for download on the manufacturer's site in several languages [2]. The Nibble kit helps users acquire a number of skills, starting with the simple act of assembling the housing, to soldering, to programming the microcontroller in C.
The core of the kit is the ESP8266 microcontroller. The maker community very much appreciates this little device, not least because of its integrated WiFi interface, which is why you will see it used in many projects, including one I wrote about WiFi sniffing [3]. That article also has an installation guide for the Arduino environment.
According to the instructions, it takes about two hours to assemble the Nibble (Figure 2), but an experienced maker can do this considerably faster. The most annoying step by far is peeling the protective film off the Plexiglas, which, however, reliably prevents the modules from being scratched.
Although CircuitMess uses a subscription model and does not sell the unit anymore, you could still order the kit on the GÈnÈration Robots [4] website for about $66 (£60, EUR68) as of October 2022. This website focuses on robotics and electronics, but you will also find many other interesting products, so it's definitely worth browsing. If you want to learn more about the Nibble, visit the manufacturer's product page [5].
Programming
After assembling the Nibble according to the instructions, the preinstalled games – Invaders, Bonk, Snake, and Space Rocks – can be played directly on the device. As great as these classics may be, after a while, my fingers were itching to write my own little application for the Nibble.
You can choose between the Arduino C++ programming language and CircuitBlocks, which is more suitable for newcomers. To program, you simply click together the program functions with graphical elements. This method completely eliminates syntax errors. Only building blocks that work together can be put together. Additionally, the graphical representation of the program segments helps in understanding the code.
The CircuitBlocks software is available for free download from the manufacturer's site [6]; there are installation packages for Linux, Windows, and macOS. Detailed installation instructions with an introduction to CircuitBlocks can be found on the project page [7]. If you plan to write C++ programs for the Nibble in the Arduino IDE as well, it makes sense to install the IDE before you install CircuitBlocks, because its installer creates a board manager for the Nibble in the Arduino IDE (Figure 3).
The software for Nibble is completely open source, and all sample programs can be downloaded from GitHub [8]; however, the schematic is not included in the repository: You will find it on the manufacturer's page [9].
CircuitBlocks
To create a new project with CircuitBlocks and open the editor (Figure 4), click New sketch | Nibble | Block. The code blocks reside in the left pane. To create the program, drag and drop them into the center area. The window displays the corresponding C code on the right.
Once your program is ready for a first test, click Run in the upper right corner. Now it takes a moment for the program to launch automatically on the Nibble. That's all you need to do to write your own programs in CircuitBlocks. The sample program in Figure 4 conjures up a Hello World on the display and makes a green circle flash.
Arduino IDE
As always, the good old Flash example is used as a sample program for the Arduino IDE (Listing 1). To begin, connect the Nibble to a PC over USB and turn it on, select the appropriate board manager in the Arduino IDE, and load the program to the controller with the Upload icon, after which the blue LED on the ESP8266 starts to flash. You can see this if you look into the Plexiglas housing of the Nibble from the top.
Listing 1
Flash
void setup() { pinMode(LED_BUILTIN, OUTPUT); } void loop() { digitalWrite(LED_BUILTIN,!digitalRead(LED_BUILTIN)); delay(1000); }
Buy this article as PDF
(incl. VAT)
Buy Linux Magazine
Subscribe to our Linux Newsletters
Find Linux and Open Source Jobs
Subscribe to our ADMIN Newsletters
Support Our Work
Linux Magazine content is made possible with support from readers like you. Please consider contributing when you’ve found an article to be beneficial.
News
-
Gnome 47.1 Released with a Few Fixes
The latest release of the Gnome desktop is all about fixing a few nagging issues and not about bringing new features into the mix.
-
System76 Unveils an Ampere-Powered Thelio Desktop
If you're looking for a new desktop system for developing autonomous driving and software-defined vehicle solutions. System76 has you covered.
-
VirtualBox 7.1.4 Includes Initial Support for Linux kernel 6.12
The latest version of VirtualBox has arrived and it not only adds initial support for kernel 6.12 but another feature that will make using the virtual machine tool much easier.
-
New Slimbook EVO with Raw AMD Ryzen Power
If you're looking for serious power in a 14" ultrabook that is powered by Linux, Slimbook has just the thing for you.
-
The Gnome Foundation Struggling to Stay Afloat
The foundation behind the Gnome desktop environment is having to go through some serious belt-tightening due to continued financial problems.
-
Thousands of Linux Servers Infected with Stealth Malware Since 2021
Perfctl is capable of remaining undetected, which makes it dangerous and hard to mitigate.
-
Halcyon Creates Anti-Ransomware Protection for Linux
As more Linux systems are targeted by ransomware, Halcyon is stepping up its protection.
-
Valve and Arch Linux Announce Collaboration
Valve and Arch have come together for two projects that will have a serious impact on the Linux distribution.
-
Hacker Successfully Runs Linux on a CPU from the Early ‘70s
From the office of "Look what I can do," Dmitry Grinberg was able to get Linux running on a processor that was created in 1971.
-
OSI and LPI Form Strategic Alliance
With a goal of strengthening Linux and open source communities, this new alliance aims to nurture the growth of more highly skilled professionals.