I’ve just realized a digital photo frame with the newly-released STM32F7-Discovery board from ST Microelectronics. A lot of software components are used in this project, such as: FreeRTOS, STemWin (with external resource load), LCD interface.
It’s time to write about a more complex but interesting connection with the STM32F4-Discovery board. Since I started developing with electronics, I’ve found a lot of applications in which an LCD is needed or can be an added value, specially if it includes a Touchscreen.
ST has announced a new born in the discovery line, based on STM32F429ZIT6 microcontroller, with 64Mbit SDRAM and a QVGA display on board!
The HC-SR04 ultrasonic sensor uses sonar to determine distance to an object. It offers excellent non-contact range detection with high accuracy and stable readings in an easy-to-use package, from about 3cm to 300cm. Its operation is not affected by sunlight or black material like other kind of sensor, although acoustically soft materials like cloth can be difficult to detect – at least in the far range. It comes complete with ultrasonic transmitter and receiver module.
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!