Uploaded December 2016 | Updated November 2026, 8 hours ago
Purchase my new book: Arm Microcontroller Programming and Circuit Building Volume 1
amazon.com/dp-B09PHBT859/dp/B09PHBT859
I use the STM32CubeIDE in the book!
Get your STM32 kits at Newbiehack.com
I recommend using the STM32CubeIDE:
st.com/en/development-tools/stm32cubeide.html
You can still download the CoIDE here:
sourceforge.net/projects/coide
This is part 1 in a multipart series on interfacing a 16x2 LCD to an ARM STM32F030 Microcontroller.
● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ●
You can find the Character Displays on Amazon at the following links (all with the HD44780 controller necessary to use with the tutorial):
16x2 LCD: amzn.to/2rbQmvX
20x4 LCD: amzn.to/2t0ocFw
These displays are also available at newbiehack.com
● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ●
Please consider contributing subtitles in your language to this video:
youtube.com/timedtext_video?ref=share&v=micDbBN9s9k
Visit the Newbiehack.com website:
newbiehack.com
Purchase the tools necessary to complete these tutorials:
newbiehack.com/Categories/ARM
Equipment that I use to make videos:
Canon EOS Rebel: amzn.to/2rJSeh0
Macro Lens: amzn.to/2qaSKmK
Microphone: amzn.to/2qO2RB4
3D Mouse to rotate/zoom/move the object (Must have for CAD!!!): amzn.to/2ruFnSn
The drafting pencil I use on these videos: amzn.to/2qioYg2
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 multimeter that I use and the one I recommend: amzn.to/2qicUez
Want to have your own Patreon campaign? patreon.com/invite/wpllxz
Purchase my new book: Arm Microcontroller Programming and Circuit Building Volume 1
amazon.com/dp-B09PHBT859/dp/B09PHBT859
I use the STM32CubeIDE in the book!
Get your STM32 kits at Newbiehack.com
I recommend using the STM32CubeIDE:
st.com/en/development-tools/stm32cubeide.html
You can still download the CoIDE here:
sourceforge.net/projects/coide
This is part 1 in a multipart series on interfacing a 16x2 LCD to an ARM STM32F030 Microcontroller.
● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ●
You can find the Character Displays on Amazon at the following links (all with the HD44780 controller necessary to use with the tutorial):
16x2 LCD: amzn.to/2rbQmvX
20x4 LCD: amzn.to/2t0ocFw
These displays are also available at newbiehack.com
● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ●
Please consider contributing subtitles in your language to this video:
youtube.com/timedtext_video?ref=share&v=micDbBN9s9k
Visit the Newbiehack.com website:
newbiehack.com
Purchase the tools necessary to complete these tutorials:
newbiehack.com/Categories/ARM
Equipment that I use to make videos:
Canon EOS Rebel: amzn.to/2rJSeh0
Macro Lens: amzn.to/2qaSKmK
Microphone: amzn.to/2qO2RB4
3D Mouse to rotate/zoom/move the object (Must have for CAD!!!): amzn.to/2ruFnSn
The drafting pencil I use on these videos: amzn.to/2qioYg2
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 multimeter that I use and the one I recommend: amzn.to/2qicUez
Want to have your own Patreon campaign? patreon.com/invite/wpllxz

![[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)





![[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
If you wish to support me and the efforts in making more content: https://buymeacoffee.com/patrickhooddaniel
Get the companion book here: https://amzn.to/49Bv8QX
Join this channel to get access to perks:
https://www.youtube.com/channel/UCC7ifdmN7ebFo-eXBUZkeiw/join
00:00 Introduction
00:04:32 Introduction to Bare Chip Microcontroller Development
00:07:36 The Prototyping Setup
00:11:19 IDE and Monitoring Software Setup
00:17:00 Getting Familiar with the STM32CubeIDE
00:19:48 Creating a Project in the IDE
00:23:23 Transferring the Program to the Microcontroller
00:26:17 Monitoring Runtime Data (STMStudio / CubeMonitor)
00:31:11 Troubleshooting 1 – Boot Pin Chip Erase
00:32:43 Troubleshooting 2 – Reset Pin Chip Erase
00:33:59 Troubleshooting 3 – AVCC Not Present
00:38:10 4 Most Important Code Instructions
00:44:12 Project 1 – LED (Hello World)
01:03:14 Project 2 – Button Input
01:19:07 Project 3 – Latching Input
01:33:06 Project 4 – LCD Interface
02:51:31 Pointers and String Construction
02:56:48 Project 5 – Integers to LCD
03:03:32 Project 6 – Floating Point to LCD
03:08:46 Project 7 – LCD Cursor Position
03:18:37 ADC Introduction
03:28:45 Project 8 – ADC Internal Temperature Sensor
03:52:35 Project 9 – Temperature Conversion
04:01:04 Project 10 – Potentiometer ADC
04:08:25 Project 11 – Timers Prescaler
04:18:31 Project 12 – Timers ARR, Direction, Center-Aligned
04:23:43 PWM Introduction
04:31:20 Project 13 – PWM
04:45:48 Project 14 – ADC Header File
04:55:03 Project 15 – ADC to PWM (RC Filter Required)
05:01:12 Project 16 – PWM LED Dimming via ADC
05:02:46 Project 17 – Hobby Servo PWM
05:20:40 Project 18 – Servo + Potentiometer
05:26:56 Interrupts Introduction
05:33:27 Project 19 – ADC Interrupt
05:47:19 Project 20 – ADC Interrupt (2 Channels)
05:57:21 Project 21 – LCD Artifact Fix
06:02:39 Project 22 – Button Interrupt
06:15:05 Project 23 – External Interrupts
06:19:39 Project 24 – Output to STMStudio
06:27:01 I2C / IIC Introduction
06:39:10 Project 25 – ADXL345 Write (I2C)
07:05:15 Project 26 – ADXL345 Read (I2C)
07:14:35 USART Introduction
07:24:38 Project 27 – 48 MHz Clock
08:01:58 Project 28 – USART Init
08:46:08 Project 29 – USART Receive Character
08:55:26 Project 30 – USART Transmit (CubeMX + HAL)
09:11:21 Project 31 – USART Interrupt TX/RX
09:27:11 Project 32 – KiCad PCB from FTDI Diagram
Get our Merch to support the channel: https://www.etsy.com/shop/BuildYourCNC [OLD VERSION - SEE V3] Learn STM32 Microcontroller Programming - Full Course](https://i.ytimg.com/vi/oD1qRFDBN74/mqdefault.jpg)


