Measurement Applications
Accelerometer using STM32 Nucleo

Table of contents1 What is an Accelerometer?2 About Gravity and Acceleration3 Application using acceleration sensors What is an Accelerometer? Among various sensors, accelerometers are often used in invisible places in products, so many people may not know what they are, despite their high utilization. For example, it is used in smartphones to change the orientation […]

Read more
Measurement Applications
Thermometer using STM32 Nucleo

I will create an application to realize a thermometer using an inexpensive thermistor as a sensor element with an STM32 MCU (Nucleo board). It is a simple program, but it can be developed into various other arithmetic applications using floating point arithmetic with the Cortex-M3 core MCU. Colum The STM32F103RB in the NUCLEO-F103RB is a […]

Read more
Measurement Applications
Heart rate monitor using pulse sensor and STM32 Nucleo

Try an application that counts the pulse, which is a slow pulse, and displays the heart rate per minute. Table of contents1 Creating a pulse rate sensor using a photo reflector and operational amplifier2 Connect pulse sensor signal and LED for output monitoring to MCU3 Program Description4 Pulse sensor input5 LED and monitor outputs Creating […]

Read more
ADC Applications
Multi-channel continuous ADC (DMA) application [ADC of STM32]

This is a practical application that automatically converts multiple channels of analog signals in succession on an STM32 MCU and retrieves them into memory. Please understand it completely and make use of it by all means.  To convert the analog conversion values of two channels to memory by DMA:  Prepare variables (memory) to store AD […]

Read more
ADC Applications
Continuous ADC application with completion interrupt [ADC of STM32]

This program is an introduction to the combination of AD conversion and interrupts; interrupts are supposed to be generated each time AD conversion is completed, and as it is, the frequency of interrupts is too high to be practical, but please understand interrupts as a learning tool. Execution Example of Interrupt Status if(ADC_GetITStatus(ADC1, ADC_IT_EOC) != […]

Read more
ADC Applications
Continuous ADC application [ADC of STM32]

This program automatically and continuously converts and displays the 1-channel analog input signal from STM32 ADC. Since this is a continuous conversion mode, once set, the conversion value can be obtained at any desired timing.

Read more
ADC Applications
On demand ADC application [ADC of STM32]

This program displays the data acquired by manually starting AD conversion of the 1-channel analog input signal of the STM32 ADC each time it is needed.

Read more
Details of each peripheral
DMA (Direct Memory Access) [DMA details of STM32]

Although DMA is not an essential skill for beginners or novice users, it may be required in practice because DMA reduces the CPU load, allowing CPU capacity to be used for other processing and contributing to power savings. In this chapter, I explain how to use DMA to transfer multiple channels of data from an […]

Read more
Details of each peripheral
AD converter [ADC details of STM32]

Because the STM32 MCU's AD converters are so sophisticated, it is recommended that beginners step up to them, starting with the simplest ones and understanding them in turn. This chapter describes the single-mode conversion method, in which a single channel analog input is manually acquired only when necessary, to the method in which multiple channels […]

Read more