Welcome on PLAY Embedded

On PLAY Embedded you can find useful resources to get started with embedded systems: media, examples and accurate descriptions are also provided. Come on, learn by doing!

Wide box Tiny box List
Ascent Descent

Using DHT11 with ChibiOS/RT

Using DHT11 with ChibiOS/RT

The DHT11 is a basic, low-cost digital temperature and humidity sensor. It uses a capacitive humidity sensor and a thermistor to measure the surrounding air, and spits out a digital signal on the data pin (no analog input pins needed).

The communication on data pin occurs according to a non-standard protocol known as One-Wire protocol.

In this article we want to provide a demonstration for DHT11 compatible with ChibiOS/HAL 3.0, but also explain concepts inside that demo. Following that purpose we need for the DHT11 datasheet.

DHT11 Datasheet

Typical circuit requires a continue reading...

Registers and bit masks

Registers and bit masks

When I started with embedded my knowledge about programming was (and probably still is) very elementary. I often used logical operator like logical NOT (!), logical OR (| |) and logical AND (&&) but was almost ignoring the bitwise operators.SL Plugins

Handling registers is actually so simple that at first approach I wasted a couple of days and this was because bitwise operators are required to. Talking with friends of mine coming from Arduino, this problem seems to be much diffused. The trap seems to be a lack of basic knowledge of informatics and electronics. So in this continue reading...

ChibiCube hardware explained

ChibiCube hardware explained

By this article, we will show schematic of ChibiCube in order to understand how it works and hot it has been designed.

As mentioned in the previous article, ChibiCube addresses all its LEDs through the combination of anode and cathode signals. Each floor of the cube is configured as common anode, while the various cathode signals are separately connected to the outputs of the Shift Register. Setting the anode voltage to a value equal or greater than the high logical threshold of our SR, for the same principle illustrated in the tutorial Meeting SPI, we can address single continue reading...

STM32F3 discovery and MEMS

STM32F3 discovery and MEMS

Reading Giovanni Di Sirio’s tweet announcing the release of ChibiOS/RT 3.0.0 preview, the reaction was enthusiasm. So I dusted off my first love, the STM32F3 discovery, to give a try to this new version of the Lizard. A few hours later took shape the demo we are going to discuss in this article.

We will show how to alternately read the data from the two MEMS mounted on the discovery and made some LED games according to read data.

Before starting, we link the “must-read” documentation for optimal use of the micro-controller:

STM32F303VC Reference Manual STM32F303VC continue reading...

Introducing ChibiCube

Introducing ChibiCube

ChibiCube is a 3D LED matrix 8x8x8 composed by monochromatic LEDs individually addressable: that means not only every single LED could be in a ON or OFF state but everyone could be set at different light intensity.

In December 2012, students Ciro Domenico Pagano from University of Salerno, Antonio Galano from Federico II University of Naples and Vincenzo Brillante from University of Sannio start their training at Naples site of ST Microelectronics.

In order to understand uses of ChibiOS and STM32 MCUs, their Tutor Giovanni Di Sirio suggested the design of a small 4x4x4 continue reading...