Joystick module with STM32 || ADC || Multi Channel || HAL

  Рет қаралды 22,942

ControllersTech

ControllersTech

Күн бұрын

Purchase the Products shown in this video from :: controllerstech.store
________________________________________________________________________________________
Interface Joytick with STM32F103 using ADC multi channels.
To download the code, goto controllerstech.com/joystick-...
Check out more VIDEOS on MODULES/SENSORS with STM32 • STM32 and SENSORS/MODULES
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

Пікірлер: 33
@fatihaydemir466
@fatihaydemir466 2 жыл бұрын
if you doesnt work code, you select enable "DMA Continuous Requests". this is working guys. Thanks a lot for everything. Controllers Tech
@zeynepmiracol7159
@zeynepmiracol7159 2 жыл бұрын
Son sürümde bulamıyorum "DMA Continuous Requests" var mı acaba?
@fatihaydemir466
@fatihaydemir466 2 жыл бұрын
@@zeynepmiracol7159 Merhaba Zeynep , Eğer verileri okuyorsa buna gerek yok. Eğer okuyamıyorsan ve buradaki gibi ise farklı bir hata yapıyor olabilirsin daha detaylı bakmanı tavsiye ederim.Cycle hızını fazla yaptığındada verileri okuyamaya biliyor. Önceden böyle bir hatayla karşılaşmıştım. Umarım yardımcı olabilmişimdir. İyi günler.
@zeynepmiracol7159
@zeynepmiracol7159 2 жыл бұрын
Sorun karta kodu yüklememle ilgiliymiş, teşekkür ederim
@fatihaydemir466
@fatihaydemir466 2 жыл бұрын
@@zeynepmiracol7159 Rica ederim. Debıg için live expressions u araştırmanı tavsiye ederim. İyi çalışmalar.
@zeynepmiracol7159
@zeynepmiracol7159 2 жыл бұрын
@@fatihaydemir466 çok teşekkürler, size de iyi çalışmalar.
@alexandrecrt
@alexandrecrt 3 жыл бұрын
Fantastic. Simple and objective. Congrat's !!!
@ArsenMikitov
@ArsenMikitov 3 жыл бұрын
Супер! Всё кратко и всё понятно. Спасибо!
@MKinventionsMadhanChiruguri
@MKinventionsMadhanChiruguri 4 жыл бұрын
Thank you sooo much for the video sir.🤘😇
@adigyran
@adigyran 4 жыл бұрын
big sampling time makes conversion not faster, but slower and more precise
@bennguyen1313
@bennguyen1313 4 жыл бұрын
You mention that the HAL_ADC_Start must be outside of the while(1), but it seems to work fine when you graph it in STM-Studio-Stm32? Also, you mention you want to do the conversion as fast as possible, but doesn't the sampling time refers to how long it takes to do one conversion? Wouldn't going from 1.5cycles to 239.5 make it slower? Since the numbers are fractional.. I assume it doesn't refer to the number of conversions per loop? On the DMA, how is the default "normal" mode different from "circular"? Is it possible to DMA the data to Flash or another peripheral (UART or CAN-bus)?
@rorygerrie4555
@rorygerrie4555 Жыл бұрын
Hello Im using STM32L476, I have copied this as far as I can convert for a different board but my joystic values seem to go extremely high when running as release but sit around 2040+/- 5 in debugger. Would you have any clue why this is?
@TheAmmOmatic
@TheAmmOmatic 3 жыл бұрын
thank you for the tutorial really helped a lot, but i'm having a problem that after a while some of the pots start outputting wrong voltages, not ADC's fault but the pots themselves act strange, i will try different wiring configurations.
@greeshmasusanjohn4416
@greeshmasusanjohn4416 Жыл бұрын
Were you able to figure out why this is happening? I am facing the same issue now
@davidbalog1014
@davidbalog1014 3 жыл бұрын
I have 3158 values instead of 2147. What is my fault?
@yingfan4207
@yingfan4207 4 жыл бұрын
thank you for your video.I want ask some question.If I add "HAL_ADC_START_DMA" in the code,while(1) can't operation.
@babaroro5942
@babaroro5942 4 жыл бұрын
yeah, same for me
@kamilkaya5367
@kamilkaya5367 3 жыл бұрын
Hello Sir. Is it possible to use two analog sticks and 4 buttons using the same stm32 model that you use in this video? Are there enough pins for that?
@ControllersTech
@ControllersTech 3 жыл бұрын
Yes 1adc have around 14 channels, so you can control 14 analogue pins with just 1 adc. Plus this board have 2 ADCs.. you do the math 🙂
@stm32user
@stm32user 4 жыл бұрын
Nice
@MrHause13
@MrHause13 4 жыл бұрын
Do you use ST-LiNK V2 ? If yes, have you got some good tuttorial how to configure eclipse to flash with st-link? Unfortunately I got some errors..
@ControllersTech
@ControllersTech 4 жыл бұрын
What errors ? I never did any configuration. Leave everything to default and it works as expected
@MrHause13
@MrHause13 4 жыл бұрын
@@ControllersTech I do: run->debug as->stm32 cortex. And then I get: Error in final launch sequence: Error in initializing ST-LINK device. Reason: (18) Could not verify ST device! Abort connection Sorry for my mistake, I use STM32CubeIDE to do it. I try to install sw4stm.
@ControllersTech
@ControllersTech 4 жыл бұрын
You build the project for your MCU right? Or are you trying to debug my project?
@MrHause13
@MrHause13 4 жыл бұрын
I always build my own projects. I didn't get error when I use st-link utillity. But in CubeIDe I get error. I installed sw4stm but I can't change toolchain. It's not available. Mb I skiped sth. I will solve it. Thank you again for answer.
@BudiKustamtomo
@BudiKustamtomo 4 жыл бұрын
Why is importing use dma to multi chanel adc mr?
@ControllersTech
@ControllersTech 4 жыл бұрын
Can't do multichannel adc without dma in newer versions of cubemx
@bambangsubagyo1700
@bambangsubagyo1700 4 жыл бұрын
Could you share how the code if using wireless joystick PS2 with STM32F103C8?
@ControllersTech
@ControllersTech 4 жыл бұрын
Don't have the device, so can't do it..
@lizardspherestudio
@lizardspherestudio 6 ай бұрын
What i need for my OS see my STM32 board as a gamepad?
@ControllersTech
@ControllersTech 6 ай бұрын
Usb hid.
@rumpelstiltskin449
@rumpelstiltskin449 Жыл бұрын
1:15 - you did quite the opposite to "make conversion fastest possible"
Interface ST7920 GLCD with STM32 || Serial Mode || F103 || CubeMX || HAL
18:04
stm32 timed multichannel ADC DMA conversions on STM32F030k6
12:06
Me: Don't cross there's cars coming
00:16
LOL
Рет қаралды 13 МЛН
ИРИНА КАЙРАТОВНА - АЙДАХАР (БЕКА) [MV]
02:51
ГОСТ ENTERTAINMENT
Рет қаралды 13 МЛН
THEY made a RAINBOW M&M 🤩😳 LeoNata family #shorts
00:49
LeoNata Family
Рет қаралды 29 МЛН
STM32 ADC multiple channels || DMA || True studio || CubeMx
15:47
ControllersTech
Рет қаралды 67 М.
Store data into SD CARD || FreeRTOS || STM32 || ADC || DHT
17:16
ControllersTech
Рет қаралды 30 М.
Set up multiple ADCs on STM32 microcontrollers using DMA
8:43
Random Rick
Рет қаралды 35 М.
Hands-On with STM32 Timers: Trigger Periodic ADC Conversions
13:27
STMicroelectronics
Рет қаралды 26 М.
Blue Mobile 📲 Best For Long Audio Call 📞 💙
0:41
Tech Official
Рет қаралды 1 МЛН
ОБСЛУЖИЛИ САМЫЙ ГРЯЗНЫЙ ПК
1:00
VA-PC
Рет қаралды 1,2 МЛН
В России ускорили интернет в 1000 раз
0:18
Короче, новости
Рет қаралды 1,8 МЛН
Как слушать музыку с помощью чека?
0:36
Самый дорогой кабель Apple
0:37
Romancev768
Рет қаралды 296 М.
⚡️Супер БЫСТРАЯ Зарядка | Проверка
1:00