How to use ADC in STM32 Microcontroller- Read Analog Sensor Value

preview_player
Показать описание
Learn how to use ADC in STM32 Microcontroller. The ADC (analog to digital converter) is 12-bit in STM32 MCU. We’ll program ADC to read analog sensor. This example project uses a single channel ADC in polling method. We’ll use LDR (Light Dependent Resistor) to measure the light intensity.

[SUPPORT]

►► Try Altium Student Lab! You get FREE access to Altium Designer and Altium 365

[RESOURCES]

[TIMESTAMPS]
00:00 Introduction
00:22 Altium Free Trial
00:54 Create STM32 Project
01:48 Configure ADC1 of STM32
04:20 Configure UART in stm32
05:42 Generate code
07:36 Program to read ADC Pin
11:45 Connect Sensor and STM32
13:02 Read Analog Sensor Data
16:20 Control LED using LDR Sensor
16:56 outro
Рекомендации по теме
Комментарии
Автор

Very straight forward video :-) Thank you!

tomskyElo
Автор

This is a really good example starter. Thanx much

SparrowHawkPilot
Автор

Thank you for so much explanation, I saw 2 other videos that looked similar but one of them had no explanation and the other one had textual explanation.

UserName-cbjz
Автор

Thanks for the wonderful explanation.
And please upload the multiple channels ADC video quick 😊.
I'm waiting for that.

Pk-swip
Автор

What a great tutorial. Thank you for sharing. Really like your style!

mortenlund
Автор

Thank you so much for making this video; it has been incredibly helpful to me. I really appreciate it.😭

keroroex
Автор

Hey bro thanks so much for your wonderful lession. please make a using sychronus type UART communication protocol

Saravananfe
Автор

Can you explain the relation between the resolution ADC cycles and sampling cycle time more explicitly with an example??

VedantNaik
Автор

Do you happen to have any idea on interfacing DFRobot sensors using STM32? They usually use arduino boards but I have a project and I need to use an STM32.

Anupol_
Автор

Thanks for the vide
how to save data acquire in a csv file in the computer?

LaboussoleNano
Автор

listening to indian or pakistan bloggers blows my mind

User
Автор

I have done the same steps as you but there is no output in putty. I have the NUCLEO-U575ZI-Q and i have used the equivalent pins as you did. Can you help me?

stavroulasifaki
Автор

I'm using STM32 NUCLEO-F411RE chip... Can you help me write a code to make it capture an image using OV2640 and store it in pc folder?

MohammedAltowayti
Автор

Sir please provide video on how to develop drivers 92c deover for sensors.

AlexReynold-sy
Автор

Sir make videio using input adc lookuptable...

sugiyartosugiyarto
Автор

thanks for the video. how to print this in terms of value (0-3.3v to 0-4095)..

tmuralikrishna
Автор

Good video, but always use a current limiting resistor with an LED

therealg
Автор

hello, how did you know that the usart2 is associated with the usb port on the STM32?

yosrakaroui
Автор

what if you use an extra ADC (seperate from the stm32 MCU)? i think the communication between the ADC and the MCU is similar to this but it turns out to be quite difficult. Do you have any video or blog suggestions for such a task?

minenwerfer
Автор

why didn't we put a driver for ldr, how does it work ?? i don't if it's on the STM itself or what u've done on this video, waiitng for your explenation, i have a projectt please <3

galalmohammed
visit shbcf.ru