STM32 Nucleo - Keil 5 IDE with CubeMX: Tutorial 3 - ADC Single mode multi-channel

preview_player
Показать описание

Рекомендации по теме
Комментарии
Автор

My past experience has been in electronics design, but my current role involves writing firmware for STM32 MCUs - your videos have been incredibly helpful, thank you!!

MclarenFrocket
Автор

When you are working with cubemx, after changing something in cube and regenerating the project don't forget to delete sConfig declaration from MX_ADC1_Init function. Because even it keeps your global variable but also generating it in MX_ADC1_Init scope. So you'll have 2.

artsrunmargaryan
Автор

At 3:17, the term "sampling time" is misleading. This is actually referring to sample & hold (S&H) time of ADC's front-end . S&H time allows the S&H circuit to charge up the internal capacitor (usually in few pf) as much as possible to minimize amplitude error. The time required is usually 10x to 20x of RC time constant, where R is the external source impedance and C is the internal S&H capacitance. Whereas the ADC Clock cycles are referring to number of cycles required for the ADC logic to convert the analog value of capacitor to digital value. For SAC (successive approximation converter) it is at least 1 cycle per bit. So, sampling time and ADC cycles are two different concepts.

mc
Автор

Audio on max, headfones on loud and it is still quiet compared to other YouTube videos. Great what you can hear

Graham
Автор

super helpful - got my ADC up and running in no time, thanks !!

MclarenFrocket
Автор

thanks this series has been really helpful! do you have any idea how to 'watch' variables in the new version?

joshuaplank
Автор

Thanks so much Mr. Muhammad you save my life by this video

fxasusnotebook
Автор

Thank you Sir for some really great building blocks!!!

justintaylor
Автор

Very nice explanation. Please keep it up. And thank you so much for sharing your knowledge. It really helps a lot.

silsilah-naqshband
Автор

I did same, first Chanel is ok, when I add second Chanel, both Chanel get same data with first Chanel pot

mekbots
Автор

I am so happy that I learnt a lot from it. Thank You so very much

anannyaguha
Автор

YOU JUST EARNED YOURSELF ANOTHER SUBSCRIBER. HAHA, IM STIL IN CAPS FROM TYPING ALL OF THE HAL_ FUNCTIONS.

ElectricMilesLLC
Автор

STM G4 chip has OPAMP. Have you done any intro of combining OPAMP with ADC?

dajianghe
Автор

Hello MYaqoob, first of all thank you very much for this detailed tutorial.


I am using a STM32 Nucleo F446RE and a joystick module to test the ADC functionality.
The code works fine for me with no warnings or errors. However I have a doubt which I hope you could clarify.


While debugging, I've added both adcVal0 & adcVal1 to watch windows 1 & 2 respectively. Now when I operate
the thumb of the joystick both windows display the same values in whichever direction the thumb is moved. But in
your case while you were demonstrating I observed that values were not the same.
Why do both my Watch Windows show the same values?


Thanks once again & awaiting your reply.
Gautam

GD_
Автор

YOUR VIDEOS ARE QUITE AWESOME I LEARNED A LOT. CAN U PLEASE TELL ME WHICH PINS TO CONNECT TO JOYSTICK AND IF JOYSTICK IS NOT AVAILABLE WHAT ELSE CAN I USE IN ITS PLACE

shujaulhind
Автор

can you give source code too only the main block...thanks for the tutorials

ashwin
Автор

Thanks for this video. However, I believe the Joystick you used is a 5vdc. The STM32 is 3.3v. Won't this cause a damage? Have you used a voltage divider?

haiderattar
Автор

Hey, if you dont mind, id have a question concerning this topic. Currently i am working on a project using stm32 and an ADS131 ADC (TexasInst). After developing and designing a pcb for this project i have to code the communication between ADC and MCU. I have basic C knowledge and very very basic (barely no xd) knowledge in programming MCUs. if you generate code from cubeMX, many files (main.c, stmxy.c, main.h, etc.) are created. It is pretty hard for me to see through this. I have some specific expectations for the communication (e.g. 10Hz, i want a timestamp (if possible?)). So, maybe you have any suggestions or help for me to get the software done.

m-jtcd
Автор

This same method does not seem to work on STM32L701

lukaspetrikas
Автор

I am getting "target is not responding, retrying " i am using stm32cubeide and my board is stm32l152c

sinha....