Open uVision and click in Project -> Open project, search the folder that you extracted and go to the “MDK-ARM” folder, open the uVision project file “stm32_xinput“ inside this folder. To download the code to the board we will need the IDE uVision 5 from Keil and the driver of the ST-link programmer, I wrote a post showing where to download all softwares needed to work with this dev board.ĭownload the code from GitHub and extract to a folder.
After you download the code to the board, your PC will think that the board is an Xbox 360 controller. We can program the microcontroller to be any device. This project needs a development board that has the function of client USB. Other difficult of this microcontroller is the IDE, it is more complex compare with the Arduino IDE, you need to set all the peripherals by hand. The downside of this microcontroller is the community, it is nothing compared with the Arduino community. Then the group that I work decided to work with this dev board because it is “better” than an Uno, and it has a debugger interface. I always worked with Arduino boards but I was facing some problems. I am working with a low-cost development board based on a STM32F103C8T6. If you want to learn how the controller’s communication works, go to the Littell’s blog where he gives a good explanation of how it works. In a later post, I will talk about the structure.
#Xinput test controller 1 not connected how to
The objective of this post is on how to make the electrical part of the racing wheel. It sends commands from the racing wheel to PC, but it can’t read the commands that comes from PC, like led position or motor rumble.
The HID was a little tricky but is working. I ported his code from a TeensyLC to a STM32F103C8T6 development board. I will suffer a lot without his code because I did not know for where begin. First of all, I would like to say thanks to Zachery Littell for his Fight Stick that helped me with the XInput communication.