ChibiOS

ChibiOS/RT is a compact and fast real-time operating system supporting multiple architectures and released under the GPL3 license. ChibiOS/RT is designed for embedded applications on 8, 16 and 32 bit microcontrollers; size and execution efficiency are the main project goals. As reference, the kernel size can range from a minimum of 1.2Kib up to a maximum of 5.5KiB with all the subsystems activated on a STM32 Cortex-M3 processor. [Read more…]

Wide box Tiny box List
Ascent Descent

Detecting obstacles using an ultrasonic sensor HC-SR04

Detecting obstacles using an ultrasonic sensor HC-SR04

HC-SR04 is a commonly used ultrasonic sensor which is capable to detect obstacles in a range of 2-300cm. The sensor looks like a small PCB having two metal cylinders on the front-side and a small circuit on the back-side (see Fig.1).

In this article we will provide a simple demo to use HC-SR04. This requires a preliminary read of the sensor user manual: HC-SR04 User Manual

The sensor has 4 PIN:

VCC, which must be connected to 5V; Trig, which is an input PIN to trigger the measurement; Echo, which is an output PIN which sent out a square wave; GND, which must be continue reading...

How to drive a HD44780 with I2C backpack with a STM32

How to drive a HD44780 with I2C backpack with a STM32

The HD44780 is a de-facto standard controller for display. We have already use it providing a source code to use a 16×2 LCD with a STM32. In this article we will step over introducing an I2C backpack for that display. Of course we will explain how to edit old code in order to get it work with this new hardware configuration.

Even if it is still popular, this controller was made commercially available in the late eighties. At that time serial communications were not so widespread because their were costly and involved constraint about clock speed. Because of that, the continue reading...

How to switch to the development version of ChibiOS

How to switch to the development version of ChibiOS

First time I started to deal with a software a little bit more complicated than the one used to print “Hello World”, I have encountered some words like “versioning”, “revision”, “diff”, “branch”, “trunk”, “checkout” and I heard about certain software like “svn”, “git”, “mercurial”.

Do you keep in mind when your friends knows something you don’t know and they continuously talk about that making you feel like a complete dumbass? Well that was my feeling! It is much simpler than how it seems: there are certain programs which purpose is to keep trace of every single character continue reading...

I am new with ChibiOS. Where do I start?

PLAY Embedded default featured image

We have written a lot of articles about this topic and they are all in the ChibiOS and STM32 getting started section. Our suggestion is to start trying to understand what you goals are. Independently from that there is always a basic path to follow to overcome the first step.

Gather information about ChibiOS. Some are provided in the article The ChibiOS project, others can be found on the ChibiOS official website and official forum. Set up a working environment to train yourself and understand how things works. This is eased for Windows users since ChibiOS releases continue reading...

Getting started with mikroe BUZZ Click using ChibiOS/HAL

Getting started with mikroe BUZZ Click using ChibiOS/HAL

BUZZ Click is a click board with a mikroBus form factor. It is substantially composed of a piezoelectric speaker having a resonant frequency at 3.8 kHz: this means we should expect best performances at this frequency. Let’s take a look to the principle of operation of DC and AC continue reading...