Skip to content

01: MicroBlocks Libraries

How I Made Them

I usually write code directly without sketching—unless the function is complex. For simple ones, I just think them through and start coding.

Before building a library, I always run basic test code first. This helps me try out the module’s features. Once everything works, I convert the code into a MicroBlocks library.

You can find all the steps and versions on this website.

Why I Made Them

At first, I created these libraries for the Spark Kit used by FABLAB BH. But now, I’m just really enjoying building more MicroBlocks libraries in general—it’s fun and interesting!

↪ What is Spark?

Spark is a course by FABLAB BH that teaches students the basics of electronics and coding using the Spark Kit and MicroBlocks. What’s cool is that students in the program also teach other students!

👉 Learn more about Spark

↪ What I Added to Spark

I built several libraries—each one focused on a specific signal or component. Every library includes its own set of blocks to make it super simple for users to work with that module.

can’t share it here but you can download it from here!

☆ The Modules I Worked on

Digital Analog I2C PWM Multi-pin Modules
LED Film Pressure OLED Display (Copied) Fan Motor Ultrasonic (Dependencies)
Buzzer Photoresistor Motor Driver Servo (Dependencies) RGB LED
Horn Potentiometer Gesture Sensor (Dependencies) Traffic Light
Touch Sensor Steam Sensor
Button Input
Photo Interrupter
Tilt Switch
Temp & Humidity (Dependencies)
Relay

Why is it Special?

When I received this task, I noticed that students were facing several challenges—such as figuring out pin port numbers, identifying each color, and managing multiple blocks for a single module like the RGB LED. To address these difficulties, I created simplified blocks that make the work much easier, especially for beginners.

Some of the blocks:


Last update: July 2, 2025