Skip to content

PRO TIP Block youtube.com at the DNS level — Pi-hole, NextDNS or your hosts file — but allow youtube-nocookie.com and i.ytimg.com. These tutorials keep playing; the rabbit hole does not.

Learning without distractions

STM32 Tutorial #68 – USB Custom HID Bi-directional

1.9K views on YouTube

In a previous video (linked below) we created a very basic USB HID device and had working communication from the host to the device. In this video we’re going to expand on this video implementing full bi-directional communications.

Sorry about the wind noise in this one, I forgot to turn away the fan.

First USB HID video: https://www.youtube.com/watch?v=pzgq78VZwCs
STM32World page on Custom HID: https://stm32world.com/wiki/STM32_USB_Custom_HID
STM32World wiki: https://stm32world.com/wiki
Github repository: https://github.com/STM32World/stm32fun
Join our Discord: https://discord.gg/2aQgZ2jeds

#STM32 #GettingStarted #Tutorial #STM32CubeIDE #STM32CubeMX #HID #USB #STM32World

00:00 Intro/recap
03:10 Extending the previous project
04:20 Extending the HID descriptor
06:20 The HID descriptor length and configuring that in STM32CubeMX
07:15 Updating our main.c code to send as well as receive
13:20 Receiving data on the host with the hidapitester
17:30 Two-way HID communication established
20:03 Final remarks