Тёмный
No video :(

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

ControllersTech
Подписаться 40 тыс.
Просмотров 44 тыс.
50% 1

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

Опубликовано:

 

23 авг 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 53   
@OKOK-em4gb
@OKOK-em4gb 3 года назад
First of all, thank you. There are a lot of STM32 related RU-vid broadcasts, but it was hard to see normal movements. So I think this RU-vid broadcast is the best.
@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 10 месяцев назад
Yeah! It's alive, thanks brother!
@mortezamaghrebi9560
@mortezamaghrebi9560 3 месяца назад
Note that the maximum ADC clock is 36 MHz, refer to the datasheet of your microcontroller.
@imam8646
@imam8646 3 года назад
thank you, greetings from Indonesia
@2400MHz
@2400MHz 3 года назад
Saya dari jogja bro, heheh
@disanaadamatahari
@disanaadamatahari 3 года назад
Nyimak
@eduardojreis
@eduardojreis 11 месяцев назад
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.
@m.nauman7801
@m.nauman7801 3 года назад
Thank you. 👍
@natanjimenez
@natanjimenez 3 года назад
gracias exactamente lo que buscaba!
@mustafakemalsagcan2621
@mustafakemalsagcan2621 3 года назад
Thank u for every videos
@coolchriss
@coolchriss 4 месяца назад
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 😢
@AvalancheGameArt
@AvalancheGameArt 5 месяцев назад
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..
@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
@sakugava
@sakugava 3 года назад
Thank you
@guumballl
@guumballl 2 года назад
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 2 года назад
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.
@carissalee5748
@carissalee5748 3 года назад
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
@ismailkulaber4578
@ismailkulaber4578 3 года назад
Thank you :)
@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.
@Gratiman
@Gratiman 11 месяцев назад
Eres el mejor, I love u
@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
@k.t.d.chathumisamaraweera9477
@k.t.d.chathumisamaraweera9477 2 года назад
Thank you very much for sharing knowledge with us. code worked nicely...
@vikasbodake5524
@vikasbodake5524 11 месяцев назад
Make video on ADC oversampling
@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
@shettymalnad1978
@shettymalnad1978 7 месяцев назад
how to trigger multiple channels by using timer without DMA
@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.
@toshibamaster2210
@toshibamaster2210 Год назад
need MULTI CHANNEL without DMA but with interrupt from timer 3 event!
@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 9 месяцев назад
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 7 месяцев назад
@@imrekoncz7702 thank you !!
@abdullahcanbaz6429
@abdullahcanbaz6429 3 года назад
use LM35 ?
@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
@OKOK-em4gb
@OKOK-em4gb 3 года назад
Good morning.
@eneshaliduzulmez3586
@eneshaliduzulmez3586 3 года назад
ABİMMM ÖZ ABİMM...
@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??
@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
@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 11 месяцев назад
I love you
Далее
Tutorial On ADC MultiChannel Interrupt method.
28:15
Просмотров 1,9 тыс.
STM32 + OLED = Display Anything
18:01
Просмотров 19 тыс.
HAL #12: ADC with IT
11:31
Просмотров 17 тыс.
ADC in STM32 || Single Channel || Keil
16:08
Просмотров 33 тыс.