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

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...

Sampling and dimming (ADC and PWM)

Sampling and Dimming

An Analog to digital converter is a device that converts a continuous physical quantity (usually voltage) to a digital number that represents the quantity’s amplitude.

In this demo, we are sampling voltage across a potentiometer to establish its position. A potentiometer is a three-pin knob that provides a variable resistance between W-A and W-B pins (Fig.1). Amount of resistance between A and B is constant, but by turning the shaft of the potentiometer, we change the amount of resistance on either side of W.

Connecting A to 3 V, B to GND (or vice versa) and sampling continue reading...