Category: STM32F4 Discovery

ESP8266 AT parser library ALPHA version released 5

ESP8266 AT parser library ALPHA version released

After some time, I have uploaded first release “ALPHA” for testing. Library is not public, but it is precompiled for GCC and MDK-ARM for STM32F4xx only.   To see, how to use library, download my Github repository and open project in keil uVision. If you don’t have it, you can use main.c to see how to use library. Notes HEAP must be at least 16k for proper working at the moment STACK must be at least 1k for proper working I...

AT commands parser for ESP8266 37

AT commands parser for ESP8266

Hello everyone, ESP8266 with AT commands software from Espressif is now more stable than every, so I’m thinking to make a “strong” AT commands parser library for STM32 series of microcontrollers. If there well be an interest, I can do a generic library (like FATFS) to make usable on others microcontrollers too. So I’m thinking about these commands: Basic commands for settings up ESP module, including UART settings, Wifi name and more Basic AT commands for setting up ESP mode...

MPU-6050 6-axes gyroscope and accelerometer 1

HAL Library 30- MPU6050 for STM32Fxxx

After MPU6050 library for STM32F4xx series only based on STM32F4xx Standard peripheral drivers, I’ve redesign this library for HAL support over all STM32 series. It has some more features then my first library. It can now read data from MPU6050 (obvious), set interrupts for data ready and motion detection, read interrupts status, set custom data rate for data ready interrupt and set new gyro and accelerometer sensitivities on the fly. More about lib is describe below and on HAL API site. Library...

HAL Library 29- Analog to Digital converter for STM32Fxxx 1

HAL Library 29- Analog to Digital converter for STM32Fxxx

Analog to digital converter library is out. It was a lot of time before I thought why I don’t have this basic library where anyone would use it. Now i exists. This library works on STM32F0xx, STM32F4xx and STM32F7xx based devices. Library Read more about new HAL libraries Features It uses basic polling for ADC complete Supports VBAT reading Does not get high sampling rates Meant for basic use

HAL Library 28- Digital to Analog converter for STM32Fxxx 1

HAL Library 28- Digital to Analog converter for STM32Fxxx

Here it is. After many email about this library, I’ve finally made it. This library works on STM32F0xx, STM32F4xx and STM32F7xx based devices, where DAC is supported. For example, STM32F401 and STM32F411 does not support DAC. Library Read more about new HAL libraries Features It does not use built-in HAL support for generating signals Output is based on user value Independent 2 DAC channel outputs with 12-bit resolution

How to use scanf with USART 3

How to use scanf with USART

I’ve already posted how to use printf (send data to stream) on STM32Fxxx devices. Recently, I received a comment, how to use scanf function to read strings and convert them from USART. Here is a little bit more to do before it will work correct. When you call scanf function, it calls subfunction fgetc, where you return a character. This function is called until it does not return EOF (-1). And it is called very fast. If you check in this function, if...