STM32 interface WS2812B

Last month I bought an interesting RGB LED ring from Aliexpress and finally, now, it is here. So that, I’m about to present how I interfaced an STM32 MCU to WS2812B LEDs. This demo uses also FreeRTOS and HAL libraries. I wrote a simple code to make an STM32 interface WS2812B LEDs.


Continue reading

Set up Keil for STM32-Discovery boards

After some troubles (not so few), I’ve finally created a skeleton project with Keil uVision to easy develop programs for the STM32-Discovery boards. STMicroelectronics released a library for each Discovery series board to speed up the “time to market”, called “Standard Peripheral Library”. This library include a lot of high level function and peripheral support so that developing a program is MUCH more simple and fast.

I’m using Windows 7 and the following is referred to STM32F0-Discovery board, but with few modifications (trust me, really few), can be used with any STM32-Discovery board.

In this tutorial we’ll create a “skeleton” folder in which there is everything needed to take advantages from “standard peripheral library” with Keil. Anytime you need to develop a new program, simply copy this folder and open the Keil project inside.

So, let’s start!

Continue reading

STM32F0-Discovery first look

For years I’ve only used Microchip PIC and recently Arduino, but today I’ve received my first ARM board, exactly a STM32F0-Discovery board, equipped with an ARM Cortex-M0 32-bit. Surely isn’t the most powerful and complete example of ARM architecture but for less than 10€ is a nice deal!

STMicroelectronics STM32F0-Discovery Board

Continue reading