This tutorial is a part of series of tutorials on pwm(pulse width modulation) signal generation with stm32f103 microcontroller. Previously we looked upon how to generate pwm signal with stm32 microcontroller using keil uvision 5 ide and stm32cubemx code configurator. We moved forward on generating variable pwm signal using internal timers of stm32f103 microcontroller. We studied about generating pwm, now…
Driving relays with stm32f103 microcontroller using uln2003 relay driver
In this tutorial i am going to teach you how to interface relays with stm32f103 microcontrollers. Stm32 microcontrollers works on 3.3 volt TTL logic. Where as electrical relays minimum take +5 volts to make a regular connection. We must need an external circuit to drive relays with stm32 microcontrollers. This post is about teaching you…
Stm32f103 microcontroller controlling stepper motor by A4988 stepper motor driver module
Stepper motors as the name depicts moves in steps. They are popular in industry due to their ability to rotate their shaft at an accurate location and outputting high torque at low angel movements. One can also control the stepper motor step speed and angle accurately with out the need of feed back mechanism. Though they…
Interfacing 7 segment display with stm32f103 microcontroller
This tutorial is about interfacing 7 segment led display with stm32 microcontroller using keil arm mdk 5 with stm32 HAL libraries for code compilation. Stm32cubemx is used to initialize the stm32f103c8t6 microcontroller peripherals/variables pins, operating frequency, oscillator selection etc. Stm32cubemx initialized settings are then imported to keil mdk arm 5 project. Stm32cubemx automatically generates code for…
Stm32f103 microcontroller Led on/off control with Push Button as Input
The post explains about how to use stm32 pins as input using keil and stmcubemx ide. A simple led on/off tutorial with push button as input is made to explain the coding and working. When a push button is pressed the led turns on and when push button is released the led turns off. The…
Stm32f103 Pwm(Pulse width modulation) signal generation using internal timers, keil MDK-ARMv6 and Stmcubemx Ide
This tutorial is about generating pwm (pulse width modulation) signal with stm32f103 microcontroller using its internal hardware timers. Stm32f103 microcontroller components/peripherals initialization code is generated using stmcubemx ide and code is written and compiled in keil MDK-ARMv6 ide. A simple led is derived on a fixed pwm signal output. Led dims and blinks according to the duty cycle and frequency…
Dc motor speed and direction control with stm32f103 microcontroller and l293d motor driver
In this tutorial i am going to teach you how to control speed of dc motor using stm32 microcontroller and l293d half h bridge control ic. Dc motors are common motors you see in your houses(DC water pumps, DC fans), toys etc. DC motors rotate at a constant speed but their speed can be varied…
Clap sensor using STM32 MCU
Security systems work by measuring different physical parameters. One such parameter is sound. Every moving object produces sound and vibrations. These sounds and vibrations can be sampled, and the object can be identified. Sampling sound waves and training the system to distinguish between objects requires plenty of time. For this tutorial, let’s take a simple…