What i need for my OS see my STM32 board as a gamepad?
@ControllersTech
7 ай бұрын
Usb hid.
@rumpelstiltskin449
Жыл бұрын
1:15 - you did quite the opposite to "make conversion fastest possible"
@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?
@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
2 жыл бұрын
Son sürümde bulamıyorum "DMA Continuous Requests" var mı acaba?
@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
2 жыл бұрын
Sorun karta kodu yüklememle ilgiliymiş, teşekkür ederim
@fatihaydemir466
2 жыл бұрын
@@zeynepmiracol7159 Rica ederim. Debıg için live expressions u araştırmanı tavsiye ederim. İyi çalışmalar.
@zeynepmiracol7159
2 жыл бұрын
@@fatihaydemir466 çok teşekkürler, size de iyi çalışmalar.
@ArsenMikitov
3 жыл бұрын
Супер! Всё кратко и всё понятно. Спасибо!
@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
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 🙂
@davidbalog1014
3 жыл бұрын
I have 3158 values instead of 2147. What is my fault?
@alexandrecrt
3 жыл бұрын
Fantastic. Simple and objective. Congrat's !!!
@TheAmmOmatic
4 жыл бұрын
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
Жыл бұрын
Were you able to figure out why this is happening? I am facing the same issue now
@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
4 жыл бұрын
yeah, same for me
@MKinventionsMadhanChiruguri
4 жыл бұрын
Thank you sooo much for the video sir.🤘😇
@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
4 жыл бұрын
What errors ? I never did any configuration. Leave everything to default and it works as expected
@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
4 жыл бұрын
You build the project for your MCU right? Or are you trying to debug my project?
@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.
@bambangsubagyo1700
4 жыл бұрын
Could you share how the code if using wireless joystick PS2 with STM32F103C8?
@ControllersTech
4 жыл бұрын
Don't have the device, so can't do it..
@stm32user
4 жыл бұрын
Nice
@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)?
@adigyran
4 жыл бұрын
big sampling time makes conversion not faster, but slower and more precise
@BudiKustamtomo
4 жыл бұрын
Why is importing use dma to multi chanel adc mr?
@ControllersTech
4 жыл бұрын
Can't do multichannel adc without dma in newer versions of cubemx
Пікірлер: 33