Uploaded February 2022 | Updated November 2026, 2 hours ago
Purchase my new book: Arm Microcontroller Programming and Circuit Building Volume 1
amzn.to/3LFRaU5
Let's start communicating!! This video is an introduction to USART (also called UART).
Links to the software:
STM32CubeIDE: st.com/en/development-tools/stm32cubeide.html
STM Studio: st.com/en/development-tools/stm-studio-stm32.html
STM32CubeMonitor: st.com/en/development-tools/stm32cubemonitor.html
Parts you will need in your prototyping environment:
Kits to get you up to speed quickly:
newbiehack.com/Categories/ARM
If you already have the microcontroller, here are some breakout boards to use:
64 pin - amzn.to/3rUXeiq
48 pin and others - amzn.to/3IVkC6D
STM-Link V2 Programmer:
newbiehack.com/categories/newbiehack-development_tools-prototyping-microcontroller-USB-ARM-Programmer-stlinkv2-stm32-stm8
amzn.to/3IIZlgj
Prototyping Breadboards:
newbiehack.com/categories/newbiehack-prototyping-breadboard-opaque-white
amzn.to/3o2Nh1g
Resistor Assortment Kit:
amzn.to/3H4R3ii
Solid core hook-up wire 22 AWG:
amzn.to/3IDGinA
amzn.to/3g5TKUJ
LEDs and Displays:
newbiehack.com/Categories/LCD_Displays_and_LEDs
amzn.to/3Az1zf7
Trimmer potentiometers:
newbiehack.com/Categories/Potentiometers
amzn.to/3H6q067
The Dynamixel servo I will be using in the USART videos:
amzn.to/35s3qHl
Microfarad Capacitor Assortment:
amzn.to/32BIX1G
Capacitors on Newbiehack.com:
newbiehack.com/Categories/capacitors
Electrolytic Capacitor Assortment:
amzn.to/33TtLxt
The cheap oscilloscope that I use (because it's cheap and will work all of the projects in these tutorials): amzn.to/2rSHnBa
A better oscilloscope and the one I would recommend: amzn.to/2qizK5M
The brand of the multimeter that I use and the one I recommend: amzn.to/2qicUez
576861742069732074686520636F6C6F72206F66206D7920636174277320657965733F
Purchase my new book: Arm Microcontroller Programming and Circuit Building Volume 1
amzn.to/3LFRaU5
Let's start communicating!! This video is an introduction to USART (also called UART).
Links to the software:
STM32CubeIDE: st.com/en/development-tools/stm32cubeide.html
STM Studio: st.com/en/development-tools/stm-studio-stm32.html
STM32CubeMonitor: st.com/en/development-tools/stm32cubemonitor.html
Parts you will need in your prototyping environment:
Kits to get you up to speed quickly:
newbiehack.com/Categories/ARM
If you already have the microcontroller, here are some breakout boards to use:
64 pin - amzn.to/3rUXeiq
48 pin and others - amzn.to/3IVkC6D
STM-Link V2 Programmer:
newbiehack.com/categories/newbiehack-development_tools-prototyping-microcontroller-USB-ARM-Programmer-stlinkv2-stm32-stm8
amzn.to/3IIZlgj
Prototyping Breadboards:
newbiehack.com/categories/newbiehack-prototyping-breadboard-opaque-white
amzn.to/3o2Nh1g
Resistor Assortment Kit:
amzn.to/3H4R3ii
Solid core hook-up wire 22 AWG:
amzn.to/3IDGinA
amzn.to/3g5TKUJ
LEDs and Displays:
newbiehack.com/Categories/LCD_Displays_and_LEDs
amzn.to/3Az1zf7
Trimmer potentiometers:
newbiehack.com/Categories/Potentiometers
amzn.to/3H6q067
The Dynamixel servo I will be using in the USART videos:
amzn.to/35s3qHl
Microfarad Capacitor Assortment:
amzn.to/32BIX1G
Capacitors on Newbiehack.com:
newbiehack.com/Categories/capacitors
Electrolytic Capacitor Assortment:
amzn.to/33TtLxt
The cheap oscilloscope that I use (because it's cheap and will work all of the projects in these tutorials): amzn.to/2rSHnBa
A better oscilloscope and the one I would recommend: amzn.to/2qizK5M
The brand of the multimeter that I use and the one I recommend: amzn.to/2qicUez
576861742069732074686520636F6C6F72206F66206D7920636174277320657965733F








![[OLD VERSION - SEE V3] Learn STM32 Microcontroller Programming - Full Course
Link to the new Version 3: https://youtu.be/vKyL43qXPpk
Get the kits to complete these projects here: https://buildyourcnc.com/collections/arm-stm32-microcontroller-kits
Get the companion book here: https://amzn.to/49Bv8QX
If you wish to support me and the efforts in making more content: https://buymeacoffee.com/patrickhooddaniel
Join this channel to get access to perks:
https://www.youtube.com/channel/UCC7ifdmN7ebFo-eXBUZkeiw/join
00:00 Introduction
00:03:35 Introduction to Bare Chip Microcontroller Development
00:06:39 The Prototyping Setup
00:10:22 IDE and Monitoring Software Setup
00:16:03 Getting Familiar with the STM32CubeIDE
00:18:51 Creating a Project in the IDE
00:22:27 Transferring the program to the microcontroller
00:25:20 Monitoring Runtime Data using STMStudio or STMCubeMonitor
00:30:14 Troubleshooting 1: Chip erase using the boot pin
00:31:46 Troubleshooting 2: Chip erase using the reset pic
00:33:02 Troubleshooting 3: Power on AVCC not present
00:37:14 4 Most Important Code Instructions - Changing and testing bits
00:43:15 Project 1: Turning on an LED The Hello World of MCU Projects
01:02:17 Project 2: Receiving Input from a Button
01:18:10 Project 3: Latching an Input
01:32:09 Project 4: Interfacing an LCD Display
02:50:34 Using pointers to construct a string of characters
02:55:51 Project 5: Sending integers to the LCD
03:02:36 Project 6: Send floating point numbers to the LCD
03:07:49 Project 7: Set the location on the LCD
03:17:40 ADC (analog to digital conversion) introduction
03:27:49 Project 8: ADC Conversion (internal temperature sensor)
03:51:39 Project 9: Converting the ADC value to a meaningful number, Temperature
04:00:08 Project 10: Potentiometer as the ADC input
04:07:28 Project 11: Timers and Counters Prescaler (Skip Oscillations)
04:17:34 Project 12: Timers and Counters: ARR (Auto reload register) Top Count Limit
Count Direction Center Aligned Mode (Zig Zag Counting)
04:22:46 Introduction to PWM (Pulse width modulation)
04:30:23 Project 13: PWM (Pulse width modulation)
04:44:51 Project 14: Creating an ADC Header File
04:54:07 Project 15: Control PWM Output with the ADC Attempted to read the PWM with ADC, but
an RC Circuit (to smooth the square wave) is required, so that attempt failed.
05:00:15 Project 16: Control the Dimming of an LED using PWM Controlled by a Potentiometer
Through the ADC
05:01:49 Project 17: Control a Hobby Servo with the PWM Output
05:19:43 Project 18: Control a Hobby Servo with a potentiometer connected to the
ADC which controls the PWM for the Servo
05:25:59 Introduction to Interrupts
05:32:30 Project 19: Using interrupts for ADC Conversion
05:46:23 Project 20: Using interrupts for ADC Conversion 2 Channels
05:56:24 Project 21: Fixing an Artifact on the LCD
06:01:42 Project 22: Push Button Interrupt
06:14:08 Project 23: External Interrupts on two pins
06:18:42 Project 24: Switch output to the STMStudio rather than the LCD
06:26:04 Introduction to the I2C or IIC communication protocol
06:38:13 Project 25: Communicating with the ADXL 345 Accelerometer using the I2C communication protocol Writing a single byte
07:04:19 Project 26: Communicating with the ADXL 345 Accelerometer using the I2C communication protocol Reading a single byte
07:13:38 Introduction to USART and other communication protocols
07:23:41 Project 27: Change the close speed to 48mhz
08:01:01 Project 28: Initialize the USART [OLD VERSION - SEE V3] Learn STM32 Microcontroller Programming - Full Course](https://i.ytimg.com/vi/n3FcSppat68/mqdefault.jpg)

