Tagged: microcontrollers

Library 39- Power consumption modes for STM32F4 23

Library 39- Power consumption modes for STM32F4

For library 39, I made a low power modes library. This allows you to simple put STM32F4 into SLEEP, STOP or STANDBY mode. Point of this modes is simple. You want decrease current on device. If you are working on battery project, this will be very helpful. You can set current down to about 2uA with proper low power mode. I will tell you only the highlights of all 3 power down modes in this post. For detailed informations, check ST’s...

USART Library has been updated! 0

USART Library has been updated!

Today I’ve modified USART library. My library uses receive interrupt. After that, it just save data into cyclic buffer. User actually don’t know when that happen. Today, I was working on some project, where I need to know exact time, when data arrived on USART. For that purpose, I’ve modified USART library. To be able to know exact time when data arrived, you have to add defines in your defines.h file:

Then, you have to manually create a function...

ILI9341 LCD on STM32F4 108

Library 18- ILI9341 with LTDC on STM32F429 Discovery

It’s been a while when I first got ILI9341 lcd working on discovery, but without LTDC driver. Yesterday I decided to make a new library. With LTDC, you can actually display movies, because it uses parallel communication and support 2 layers simultaneously what gives you a high refresh rate. I used my old ILI9341 library and just add/modify some things to get LTDC to work. LTDC also supports 2 layers, so this means that while one layer is displayed, other layer...

NRF24L01+ 2.4GHz RF Module 229

Library 17- nRF24L01+ for STM32F4

17th library is here. I will show how to basic communicate with 2 nRF24L01+ RF transceivers. The Nordic nRF24L01+ is a highly integrated, ultra low power (ULP) 2Mbps RF transceiver IC for the 2.4GHz ISM (Industrial, Scientific and Medical) band. With peak RX/TX currents lower than 14mA, a sub μA power down mode, advanced power management, and a 1.9 to 3.6V supply range, the nRF24L01+ provides a true ULP solution enabling months to years of battery life from coin cell...

HD44780 LCD Example 107

Library 16- Interfacing HD44780 LCD controller with STM32F4

16th library is here. We will interfacing HD44780 (and its compatible) driver for alpha-numeric LCDs. Library supports up to 20 x 4 LCD size. It was tested with 20 x 4 (on picture) and with 16 x 2. HD44780 Library Features 4bit operation mode Minimum GPIOs used (6) Supports different LCD sizes Supports up to 8 custom characters Enable/disable cursor blinking Show/hide cursor Shift content in ram left/right Connection pins to board are user selectable Automatically jumps to new line...

DS1307 I2C RTC Clock on STM32F4 33

Library 15- DS1307 Real Time Clock for STM32F4

In my 15th library, I will show you, how to operate with DS1307 Real Time Clock I2C module from maxim integrated. The DS1307 serial real-time clock (RTC) is a lowpower, full binary-coded decimal (BCD) clock/calendar plus 56 bytes f NV SRAM. Address and data are transferred serially through an I2C, bidirectional bus. The clock/calendar provides seconds, minutes, hours, day, date, month, and year information. The end of the month date is automatically adjusted for months with fewer than 31 days, including corrections for leap year. The clock operates in...