Tagged: leds

Tutorial: Control WS2812B leds with STM32 0

Tutorial: Control WS2812B leds with STM32

In this tutorial I will explain how to drive WS2812B with STM32 using TIM PWM and DMA peripherals in the most efficient way by using minimum amount of RAM, required to process all leds. There is a good explanation, already available on the web. If you have no experience with WS2812B leds, I strongly recommend you to read the blog post. It is very well written, but it has one major issue. It uses 24 words of RAM for each LED,...

HAL library 2- LEDS and BUTTON for STM32 boards 3

HAL library 2- LEDS and BUTTON for STM32 boards

Next library in series in disco library for controlling leds and reading button state on various STM32F0, STM32F4 and STM32F7 boards. Supported boards: STM32F401-Discovery STM32F4-Discovery STM32F411-Discovery STM32F429-Discovery STM32F439-EVAL, STM32F401-Nucleo STM32F411-Nucleo STM32F446-Nucleo STM32F091-Nucleo STM32F7-Discovery Library Read more about new HAL libraries Features Set LED state Read LED state Read button state Dependencies HAL TM STM32Fxxx HAL defines.h Library required settings In order to tell which board you use, you have to set some defines for it. These defines are also used in other...

Project 04- GPS Logger with STM32F4xx and USB flash drive 0

Project 04- GPS Logger with STM32F4xx and USB flash drive

It was nice Saturday day to try motor for first time this year for me. Using it with GPS logger, it was very fun to track myself where I drove for about half an hour. I’ve made a GPS data tracker using STM32F4-Discovery board. Project uses GPS device from ebay (UBLOX NEO-6M) and USB flash drive to store data onto. Project Project works with STM32F4- or STM32F429-Discovery boards. It was tested on F4-Discovery, because it has more LEDs than F429....

All STM32F4 libraries 128

All STM32F4 libraries

Because there is a lot of libraries I have done, I will make a table with all of my libraries at one place. When new library will be created, it will be posted here. These libraries work on both Discovery boards, if not, it will be specified. Actually, libraries should work on STM32F4xx series of microcontrollers if they have peripherals that are need for library. All STM32F4xx MCUs don’t have everything inside. 🙂 Libraries are tested on my 4 STM32F4...

Library 14- Working with SDRAM on STM32F429 Discovery 53

Library 14- Working with SDRAM on STM32F429 Discovery

STM32F429 Discovery board has external 64Mbits or 8MBytes SDRAM chip ISSI IS42S16400. STM32F429 has a FMC (Flexible Memory Control) peripheral to driving external SDRAM with hardware. FMC hardware is able to store up to 32bits variables at same time. External SDRAM capatibilities Variable size Max value Max address Max variables stored 8bit 0xFF 0x7FFFFF 8388608 16bit 0xFFFF 0x7FFFFE 4194304 32bit 0xFFFFFFFF 0x7FFFFC 2097152 Note: This library does not work on STM32F4 Discovery, because this MCU does not have FMC peripheral....

STM32F429I-Discovery board 66

Library 02- STM32F429 Discovery GPIO tutorial with onboard leds and button

Your first blinky project works, but you don’t know how? I will explain GPIO (General Purpose Input/Output) CMSIS Library. This library is used to work with physical pins on microcontroller. You can set pins to input or output, put them low (0 volts) or HIGH (3,3 volts), select pull resistors, choose output type and select clock speed.