34. How to Calibrate the ADC (Analog to Digital Converter) - STM32 ARM Microcontroller - Part 1

preview_player
Показать описание
Purchase my new book: Arm Microcontroller Programming and Circuit Building Volume 1

I recommend using the STM32CubeIDE:

You can still download the CoIDE here:

Please watch: "Buildyourcnc CNC Router on Love Yurts"
Patrick's Tip Jar:
bitcoin:1Gtawd29Sgu5CdvfUnkRg1YBfowCawjFdH
Ether:0xa962365100011B79097A7bb9DD51A53eE98266bb
If you have found this video to be helpful, consider making a tip. Thanks.
►►► Prerequisites ◄◄◄
How to Set Up the IDE (CoIDE):
How to Connect the ST-Link Programmer:

The STM32 ARM Microcontroller comes with a calibration value for the individual chip at the factory and this can be used to calibrate the ADC so the ADC can output an accurate conversion.

● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ●

You can find the Character Displays on Amazon at the following links (all with the HD44780 controller necessary to use with the tutorial):

● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ●

Please consider contributing subtitles in your language to this video:

Purchase the tools necessary to complete these tutorials:

Equipment that I use to make videos:

The way I teach is to understand the fundamentals of production, not Arduino style one-off projects. I urge all Arduino fans that want to develop projects that will be offered to consumers to be production oriented and use the Arduino bare chip to learn how to develop rather than using the Sketch environment and the Arduino boards that contain many passive components that need to be removed during the production development phases.
Рекомендации по теме
Комментарии
Автор

Great series. As you were doubtless aware, since zero means false, you don't actually have to add != 0 to that if statement.

isaacclark
Автор

Great series here, thanks a bunch for the effort!
I'm following along with a STM32F103 and I couldn't set the calibration bit unless the clock source was enable for the ADC and I'm thinking maybe it should have been the first step here also. Doesn't the calibration procedure require the clock source as well?
I've only watched part 1&2 so it might be explained later on, still if someone runs in a similar issue I thought I should mention it.

Jon_G
Автор

So what the result of your calibration?

alvisyah
Автор

Hi, Can I programm a sensor with ADC? how can i do it with a vibration sensor? Thanks. I really have no idea

andresarmijos
Автор

Quick question:
Why do we use ADC1? instead of something like ADC2, 3, etc?
Thanks!

lauro
Автор

to disable the ADC the spec says to set the ADDIS bit and wait until the ADEN bit is cleared.
Which method correct? Yours or the spec?
Regards

philwolstencroft
Автор

Hi Daniel, I love your tutorials to be honest your explanation is very clear, as my English is very poor but still i can understand your explanation very well thanks, now my question is can we do the same thing for PIC micro chip or so.

ghafoorsamadi
Автор

worked perfectly, thanks! btw, your line 8 says "ACD1" instead of "ADC1", fyi.

rudyarzumanov
Автор

(completely unrealted to the video)
BUILD FAILED
Output filename conflict: stm32f4xx_hal_nand.o would be produced from and stm32f4xx_hal_nand.c
Total time: 0 seconds

I have no idea wtf i am doing wrong, i have just created a blank project for a stm32f407vg, i added the stm32f401xc_cmsisboot component thing and i compiled it. I don't know why the component is called 401, i just couldn't find anything else. Maybe it's because i downloaded some weird beta version, but i can't find any other download link on the *AWFUL* coocox website.

the ide also just crashed while i was writing this comment. WTF IS WRONG WITH THIS THING?

edit: i also get an error when i close the project. Fuck this IDE.

slap_my_hand
Автор

Too much speech for so simple operation.

utyff