STM32F4 Discovery

STM32F4 External interrupts tutorial 122

STM32F4 External interrupts tutorial

Each STM32F4 device has 23 external interrupt or event sources. They are split into 2 sections. First interrupt section is for external pins (P0 to P15) on each port, and other section is for other events, like RTC interrupt, Ethernet interrupt, USB interrupt and so on. October 1, 2014: Added external interrupts library. GPIO as Interrupt Interrupt lines I will show now how to configure GPIO pin to be an interrupt and how to handle it in your code with...

AM2301 Temperature and Humidity sensor 18

Library 25- AM2301 (DHT21) sensor for STM32F4

AM2301 or DHT21 is a digital sensor for measure temperature and humidity. It has temperature resolusion up to .1 degree and accuracy to .5 degree celcius. Humidity has .1% resolution and 3% accuracy. This is quite good. Library Features Read temperature from sensor Read humidity from sensor Dependencies CMSIS STM32F4xx STM32F4xx RCC STM32F4xx GPIO TM TM DELAY TM GPIO defines.h

Library 24- Virtual COM Port (VCP) for STM32F4 477

Library 24- Virtual COM Port (VCP) for STM32F4

This library provides Virtual COM port on USB OTG. This means, that you don’t need external USB->UART converter (like FTDI) to communicate with computer. STM32F4xx will be seen to computer like COM port. Library can be used on all STM32F4xx devices. It has also features to support STM32F4- and STM32F429 Discovery boards. To use USB with HAL, check my HAL USB library. Library Features Enables USB VCP Works in USB FS mode Default for STM32F4-Discovery board Works in USB HS...

RFID 50

Library 23- Read RFID tag with MF RC522 on STM32F4

In this library I’m talking about RFID (Radio-Frequency IDentification). Radio-frequency identification (RFID) is the wireless non-contact use of radio-frequency electromagnetic fields to transfer data, for the purposes of automatically identifying and tracking tags attached to objects. The tags contain electronically stored information. Some tags are powered by and read at short ranges (a few meters) via magnetic fields (electromagnetic induction). Others use a local power source such as a battery, or else have no battery but collect energy from the interrogating EM field,...

Library 22- True random number generator for STM32F4 6

Library 22- True random number generator for STM32F4

STM32F4 devices (in most cases) have True Random Number Generator (or RNG). This peripheral can provide 32bit random number. I made a small library, that you can enable and use it very quickly. RNG on STM32F4 is based on analog circuitry. It makes analog noise and that noice is connected to linear shift register. Analog circuitry is designed from ring oscillators whose outputs are XORed. For RNG circuitry is also separate LFSR clock and is independent from System clock. This...

Library 21- Read SD card with FatFs on STM32F4 562

Library 21- Read SD card with FatFs on STM32F4

Finally I got it working properly. Reading SDcard was very awesome for me for first time, so I decided to make a library for STM32F4xx devices and post it to my website. It’s basically just communication interface between STM32F4 and FatFS library by Chan. It supports SPI or SDIO communication. Library also supports USB communication, but for that purpose you need USB stack too. USB is available here. Below I’m showing how to setup everything with STM32F4 to get SD...