STM32 ADC MULTI CHANNEL without DMA || HAL || Poll

  Рет қаралды 42,978

ControllersTech

ControllersTech

3 жыл бұрын

Purchase the Products shown in this video from :: controllerstech.store
________________________________________________________________________________________
To download the code, goto controllerstech.com/stm32-adc...
Check out more VIDEOS on ADC with STM32 • STM32 ADC
________________________________________________________________________________________
****** SUPPORT US BY DONATING*****
paypal.me/controllertech
******Join the Membership******
/ @controllerstech
Join the Discord Server / discord
Join the Telegram Group t.me/controllerstechdiscuss
Follow me on Instagram / controllerstech
For more info, visit www.controllerstech.com

Пікірлер: 53
@OKOK-em4gb
@OKOK-em4gb 3 жыл бұрын
First of all, thank you. There are a lot of STM32 related KZfaq broadcasts, but it was hard to see normal movements. So I think this KZfaq broadcast is the best.
@natanjimenez
@natanjimenez 3 жыл бұрын
gracias exactamente lo que buscaba!
@noweare1
@noweare1 3 жыл бұрын
I was also having problems using dma and doing things in my while loop. DMA will just take over. I could not even end the dma or the adc or the adc in my while loop. So, yes, it was not even getting to the while loop. For polling with multiple channels I start the conversion once and the software converts the 3 channels in a sequence. I only have to poll the EOC bit then save the data for each of the 3 conversions.. I only do the setup of the channels once. I am using a nucleo32 board with STM32L412KB chip. It is the size of an arduino nano footprint but runs at 80MHz and has 40Kbytes of ram, and I think 128Kbytes of ROM, crazy specs compared to AVR 328p. Thank you for your videos. I think this is the best channel on the stm32 on youtube.
@edvinass3804
@edvinass3804 8 ай бұрын
Yeah! It's alive, thanks brother!
@m.nauman7801
@m.nauman7801 3 жыл бұрын
Thank you. 👍
@mustafakemalsagcan2621
@mustafakemalsagcan2621 3 жыл бұрын
Thank u for every videos
@finnyphilipbiju4520
@finnyphilipbiju4520 3 жыл бұрын
Hey, which Nucleo board is the best among, F446, L476, L496 And, which is the best cortex m7 board under a budget of $50. Can you also suggest some discovery board
@mortezamaghrebi9560
@mortezamaghrebi9560 Ай бұрын
Note that the maximum ADC clock is 36 MHz, refer to the datasheet of your microcontroller.
@eduardojreis
@eduardojreis 9 ай бұрын
3:30 why to remove the automatic configuration that STM32 does in the being of the program execution? That kind gets undone as soon as I regenerate the code.
@sakugava
@sakugava 3 жыл бұрын
Thank you
@k.t.d.chathumisamaraweera9477
@k.t.d.chathumisamaraweera9477 2 жыл бұрын
Thank you very much for sharing knowledge with us. code worked nicely...
@imam8646
@imam8646 3 жыл бұрын
thank you, greetings from Indonesia
@thomassubekti5441
@thomassubekti5441 3 жыл бұрын
Saya dari jogja bro, heheh
@gondesasu7229
@gondesasu7229 3 жыл бұрын
Nyimak
@Timkaasjager
@Timkaasjager 3 жыл бұрын
Thank you so much for this! I have a question, how can you call the HAL functions in drop down menu like in @6:13 when you're halfway through typing the name? Would be a great help!
@ControllersTech
@ControllersTech 3 жыл бұрын
Cntrl + space
@ismailkulaber4578
@ismailkulaber4578 3 жыл бұрын
Thank you :)
@guumballl
@guumballl Жыл бұрын
hi, thanks for the video. I got it working on my blackpill but getting big fluctuations in the live expressions. I am trying to run three voltage meters on a single adc channel w a touch gfx display and the progress bars keep flikering. how to keep the input steady?
@ControllersTech
@ControllersTech Жыл бұрын
It mostly happens because of the unstable power supply. I think you can use some capacitors to reduce it. Google it, you will find information about the same.
@vikasbodake5524
@vikasbodake5524 9 ай бұрын
Make video on ADC oversampling
@abdullahcanbaz6429
@abdullahcanbaz6429 3 жыл бұрын
use LM35 ?
@anshbhatnagar557
@anshbhatnagar557 3 жыл бұрын
Hi, I try your concept with stm32 bluepill fir adc continuous conversion without dma it run well but i am not getting the stability for adc as i am using pot for pins but it showning a variation and that is very wide i.e 3204 to 4095 so suggest what could be done here
@prakashpunj421shukla4
@prakashpunj421shukla4 Жыл бұрын
how it runs well can you please share the code
@Gratiman
@Gratiman 10 ай бұрын
Eres el mejor, I love u
@carissalee5748
@carissalee5748 2 жыл бұрын
Hi! I'm new to STM32. Can you do a tutorial on how to use IR sensor on STM32F1 without any ST-LINK etc? Thank you very much!
@ControllersTech
@ControllersTech 2 жыл бұрын
use stm32duino
@AvalancheGameArt
@AvalancheGameArt 4 ай бұрын
On Texas instrument is way easier.. i mean, you just set the adc steps and then it does what you want.. instead of relying on dma that adds additional overhead time..
@tienleminh8129
@tienleminh8129 2 жыл бұрын
why have you set the different Sampling Time for each channel, could I possible choose the same sampling time
@ControllersTech
@ControllersTech 2 жыл бұрын
Yes you can. Basically it sets the sampling frequency.
@shettymalnad1978
@shettymalnad1978 5 ай бұрын
how to trigger multiple channels by using timer without DMA
@coolchriss
@coolchriss 2 ай бұрын
I am using stm32f030k6t6, the adc configuration mode is different, whatever i done to read a joystick module to control 2 servos it ends with failure, I hope you make a video to explain how to configure it 😢
@OKOK-em4gb
@OKOK-em4gb 3 жыл бұрын
Good morning.
@kriskb3
@kriskb3 Жыл бұрын
Thanks for your tutorial. I managed to get it working in my application, but... Why do you modify the MX generated code so drastically (requiring to reedit the MX_ADC1_Init() function everytime you run another MX session. Does the generated MX code not work? Why can't one rely on letting the ADC1 do the sequencing by itself properly?
@ControllersTech
@ControllersTech Жыл бұрын
Of course you can. Let the dma handle the conversion.. there is no issue with that. It's just an alternative in case you want to control what to get the data from and when to get the data.
@kriskb3
@kriskb3 Жыл бұрын
@@ControllersTech Maybe I didn't express myself clearly: I ressorted to your tutorial since I had problems getting DMA working. And my question was , why you end up with modifying the MX generated code . Why is the distinct ADC_Select_Channelxx() necessary at all. I meant letting the ADC doing the sequencing from channel to channel. That's what I think is Scan Conversion Mode for.
@joshuachettiar86
@joshuachettiar86 2 жыл бұрын
What should I do if i have 1 ADC but I need to sample 1 channel at very high speed using DMA and i only need to poll the other channels at fixed intervals I'm stuck
@ControllersTech
@ControllersTech 2 жыл бұрын
You can still use DMA and control sampling rate for each channel in the cubemx. Look in the rank section while setting up the ADC parameters. To understand the sampling rate and time, watch my another video on it. It's in the ADC playlist If that doesn't suit your requirements, you can use 2 ADCs.
@joshuachettiar86
@joshuachettiar86 2 жыл бұрын
@@ControllersTech i will look at the playlist
@francescoc6808
@francescoc6808 3 жыл бұрын
Is it possible to do this with interrupts?
@ControllersTech
@ControllersTech 3 жыл бұрын
Yes ofcourse.. check other videos in the playlist
@qamarhassa
@qamarhassa Жыл бұрын
Hi I'm using stm32h743vit6 MCU. I selected ADC CH 3 and CH 7 but there is only disable option in scan conversion mode. Kindly guide me how to use ADC multi channel in stm32h743vit6 MCU
@imrekoncz7702
@imrekoncz7702 8 ай бұрын
I was facing the same problem on STM32U5. What worked for me is that first u should enable regular conversion (scroll a little bit down) and then set the conversion number (>1). Then the Scan mode will be enabled automatically.
@zeroanueve-reparaciones5189
@zeroanueve-reparaciones5189 5 ай бұрын
@@imrekoncz7702 thank you !!
@joshuachettiar86
@joshuachettiar86 2 жыл бұрын
Hey can i change the wait time from millisecond to microsecond in HAL_ADC_P....
@prakashpunj421shukla4
@prakashpunj421shukla4 Жыл бұрын
yes you can
@prakashpunj421shukla4
@prakashpunj421shukla4 Жыл бұрын
SysTick->LOAD = 400-1; // one MICRO second delay relaod value SysTick->CTRL = 7; ; // enable counter, interrupt and select system bus clock SysTick->VAL = 0; //initialize current value register /* USER CODE END SysInit */ simply put this code your systick changed to 10 micro second as my clock frequency is 40 mhz
@vishaalvishaal2118
@vishaalvishaal2118 3 жыл бұрын
Hello hi I am working on adc multiple channels and what if am using freertos and let's say I have 2 tasks in task 1 I hav 2 channels set that is ch1 ,ch2 and in task 2 ch3,ch4 so for this can I configure each time one channel and get the value ?? Here task switching happens so can I set each time a different channel with out sequence like ch3 then ch4 and then ch2 and ch1.
@ControllersTech
@ControllersTech 3 жыл бұрын
That's exactly what's shown in the video. Converting channels individually... Without sequence
@vishaalvishaal2118
@vishaalvishaal2118 3 жыл бұрын
@@ControllersTech then scanconvmode should be disabled and continuousconvmode also need to be disabled right??
@eneshaliduzulmez3586
@eneshaliduzulmez3586 3 жыл бұрын
ABİMMM ÖZ ABİMM...
@toshibamaster2210
@toshibamaster2210 Жыл бұрын
need MULTI CHANNEL without DMA but with interrupt from timer 3 event!
@prakashpunj421shukla4
@prakashpunj421shukla4 Жыл бұрын
hey actually i am facing the issue the my function of channel is not running initially adc_channel3(); // like this is the function which you made to run the different channel HAL_ADC_Start(&hadc); HAL_ADC_PollForConversion(&hadc ,1); adc_result_DMA[0] = HAL_ADC_GetValue(&hadc); // rawvoltage = (float)read_value*3.3/4096; // current = (rawvoltage-2.5)/0.1; HAL_ADC_Stop(&hadc); delay_us(1);
@piotrwu5285
@piotrwu5285 10 ай бұрын
I love you
Tutorial On ADC MultiChannel Interrupt method.
28:15
PR TechTalk
Рет қаралды 1,5 М.
Tom & Jerry !! 😂😂
00:59
Tibo InShape
Рет қаралды 67 МЛН
I Can't Believe We Did This...
00:38
Stokes Twins
Рет қаралды 82 МЛН
Получилось у Вики?😂 #хабибка
00:14
ХАБИБ
Рет қаралды 7 МЛН
Я нашел кто меня пранкует!
00:51
Аришнев
Рет қаралды 3,9 МЛН
#5. STM32F4 ADC using Registers || Multi Channel Polling
18:11
ControllersTech
Рет қаралды 17 М.
STM32 ADC multiple channels || DMA || True studio || CubeMx
15:47
ControllersTech
Рет қаралды 67 М.
STM32CubeIDE basics - 10 ADC DMA TIM HAL lab
31:32
STMicroelectronics
Рет қаралды 58 М.
STM32 ADC Conversion Time/Frequency Calculation || Internal Temp Sensor
19:28
32. STM32CubeIDE RGB LED. Multi channel ADC with STM32F103C8T6
6:31
MicroPeta by Nizar Mohideen
Рет қаралды 8 М.
stm32 timed multichannel ADC DMA conversions on STM32F030k6
12:06
Custom Keyboard From Scratch Part 2
17:13
Casual Coders
Рет қаралды 35 М.
SMT32 ADC Interrupts with STM32CubeIDE
9:49
Random Rick
Рет қаралды 11 М.
Собери ПК и Получи 10,000₽
1:00
build monsters
Рет қаралды 2,3 МЛН
Hisense Official Flagship Store Hisense is the champion What is going on?
0:11
Special Effects Funny 44
Рет қаралды 2,8 МЛН
Choose a phone for your mom
0:20
ChooseGift
Рет қаралды 6 МЛН
⚡️Супер БЫСТРАЯ Зарядка | Проверка
1:00