STM32 Blue Pill as an Hid USB Keyboard
instructables.com
STM32 Blue Pill as an Hid USB Keyboard
1–10 of 34 posts
Re: STM32 Blue Pill as an Hid USB Keyboard
#2I think it is better to use the Nucleo series of evaluation boards from ST now as they have first party support from ST.
Re: STM32 Blue Pill as an Hid USB Keyboard
#3Re: STM32 Blue Pill as an Hid USB Keyboard
#4Can someone explain what this is actual for? Is this just a tutorial for creating your own DIY USB client device?
Re: STM32 Blue Pill as an Hid USB Keyboard
#5Can someone explain what this is actual for? Is this just a tutorial for creating your own DIY USB client device?
Re: STM32 Blue Pill as an Hid USB Keyboard
#6Can someone explain what this is actual for? Is this just a tutorial for creating your own DIY USB client device?
As someone who recently started dabbling into MCU programming, I can tell you that a tutorial that shows you all the steps, and has an end result that works and can still be tweaked, is valuable. The DX you may be used to in modern programming is something you can only dream of in the embedded world. Every manufacturer has their own bespoke frameworks, tools, and conventions. The development loop is long: you have to build the thing, flash it to the firmware, reboot the device... You're dealing with raw bytes 99% of the time, so compiler type safety is little help in checking that your program will behave as expected and mistakes are frequent. The global state is huge, and with so little computing/memory resources, you're discouraged from introducing complex abstraction that would help clarify the code or avoid mistakes.
Re: STM32 Blue Pill as an Hid USB Keyboard
#7Can someone explain what this is actual for? Is this just a tutorial for creating your own DIY USB client device?
I don't know all the details, but as I understand it, you don't necessarily need a USB License ($5000/year membership fee) to have a microcontroller running USB-HID across Windows.
Though I haven't figured out all the details of how all the mechanics work, its still interesting to work through even the most "toy" example of the USB-HID stack.
Re: STM32 Blue Pill as an Hid USB Keyboard
#8The F103 microcontroller on the blue pill is the epicenter of price hiking during the semiconductor shortage. I've seen prices upwards of 35 USD for each chip. It was more expensive to get one of these chip than to get a Raspberry Pi. I think it is better to use the Nucleo series of evaluation boards from ST now as they have first party support from ST.
So apparently there is limited stock, and someone else that wants one can get it despite me. That's fine; I'll go back later and get another. It's great to see at least one damn company thinking this way.
BTW, they're providing free shipping for a limited time!
Re: STM32 Blue Pill as an Hid USB Keyboard
#9Can someone explain what this is actual for? Is this just a tutorial for creating your own DIY USB client device?
Windows HID interface is very flexible IIRC, and even added I2C support to the HID module or something... in Windows 8 or so? I don't know all the details, but as I understand it, you don't necessarily need a USB License ($5000/year membership fee) to have a microcontroller running USB-HID across Windows. Though I haven't figured out all the details of how all the mechanics work, its still interesting to work through…
I think if someone wanted to have a very simple interface to control I²C devices over USB, it looks like there's plenty of cheap chips around that expose an I²C bus as a simple USB serial port to your computer.
Re: STM32 Blue Pill as an Hid USB Keyboard
#10Can someone explain what this is actual for? Is this just a tutorial for creating your own DIY USB client device?
One example might be bridging an old dumb keyboard into working as a usb keyboard.