| KNOWLEDGE BASE

A rich source of expert knowledge

Learn from experts in the world of embedded systems

USE DISCOUNT CODE
LEARN30
TO SAVE $30 USD

STM32 USB HID Custom Joystick/Gamepad - Phil's Lab #149

Firmware tutorial on how to combine custom STM32-based hardware with the USB HID (human interface device) class to emulate a USB joystick or gamepad.
Chapters:
  • 00:00Intro
  • 00:32Design Files
  • 02:29HID Intro
  • 03:11Hardware Overview & HID Use Cases
  • 05:14CubeIDE Basic Config & Pinout
  • 08:11Clock Configuration
  • 08:58ADC + DMA + Timer Set-Up
  • 13:18USB HID Middleware
  • 15:36ADC Code
  • 17:44ADC Test
  • 18?52GPIO Reads
  • 20:09usbd_hid.h/.c
  • 24:04Report Descriptor
  • 30:08Fill & Send Report
  • 33:30Test
  • 35:24Outro