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.2 Now Available
Gnome 47.2 is now available for general use but don't expect much in the way of newness, as this is all about improvements and bug fixes.
-
Latest Cinnamon Desktop Releases with a Bold New Look
Just in time for the holidays, the developer of the Cinnamon desktop has shipped a new release to help spice up your eggnog with new features and a new look.
-
Armbian 24.11 Released with Expanded Hardware Support
If you've been waiting for Armbian to support OrangePi 5 Max and Radxa ROCK 5B+, the wait is over.
-
SUSE Renames Several Products for Better Name Recognition
SUSE has been a very powerful player in the European market, but it knows it must branch out to gain serious traction. Will a name change do the trick?
-
ESET Discovers New Linux Malware
WolfsBane is an all-in-one malware that has hit the Linux operating system and includes a dropper, a launcher, and a backdoor.
-
New Linux Kernel Patch Allows Forcing a CPU Mitigation
Even when CPU mitigations can consume precious CPU cycles, it might not be a bad idea to allow users to enable them, even if your machine isn't vulnerable.
-
Red Hat Enterprise Linux 9.5 Released
Notify your friends, loved ones, and colleagues that the latest version of RHEL is available with plenty of enhancements.
-
Linux Sees Massive Performance Increase from a Single Line of Code
With one line of code, Intel was able to increase the performance of the Linux kernel by 4,000 percent.
-
Fedora KDE Approved as an Official Spin
If you prefer the Plasma desktop environment and the Fedora distribution, you're in luck because there's now an official spin that is listed on the same level as the Fedora Workstation edition.
-
New Steam Client Ups the Ante for Linux
The latest release from Steam has some pretty cool tricks up its sleeve.