Live data from Hacker News

STM32 Blue Pill as an Hid USB Keyboard

instructables.com

21–30 of 34 posts

Re: STM32 Blue Pill as an Hid USB Keyboard

#22
post #8
post #2

The 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.

I ordered a NUCLEO-G474RE directly from ST yesterday. I could only add one to the cart, whereas I wanted two. When I recently bought two NUCLEO-F334R8 I didn't encounter this. 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 fo…

You can purchase some of their boards via Mouser directly who is the one fulfilling orders on STs behalf.

Re: STM32 Blue Pill as an Hid USB Keyboard

#23
post #6
post #3

Can someone explain what this is actual for? Is this just a tutorial for creating your own DIY USB client device?

Yes, it looks like it's "just" a tutorial. 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 DX

?

Re: STM32 Blue Pill as an Hid USB Keyboard

#24

Earlier quoted context omitted.

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…

Windows will try to use the VendorID/ProductID pair on the device to look up which driver to load, but if there isn't any then a regular USB-HID device will default to using the generic HID driver. You'd get assigned a VendorID if you have a USB license: That is a USB-IF thing, not a Microsoft thing. Then each licensee gets to assign its own ProductIDs. There is no authentication in the core USB protocol: A device ca…

If your project is open source, you can get a PID for free. [1]

I received one for a virtual usb keyboard [2] that I made to work alongside a desktop app. Having a dedicated VID/PID makes detecting the presence of the device easy.

[1] https://pid.codes/

[2] https://github.com/veyh/AutoPTT-sidekick/

Re: STM32 Blue Pill as an Hid USB Keyboard

#25
post #23
post #6

Earlier quoted context omitted.

Yes, it looks like it's "just" a tutorial. 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 DX ?

Developer Experience.

Re: STM32 Blue Pill as an Hid USB Keyboard

#26
post #2

The 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.

I can buy pill for $3 and nucleo for $50. I guess it depends on location, but for me nucleo is like a luxury item.

Re: STM32 Blue Pill as an Hid USB Keyboard

#27
post #3

Can someone explain what this is actual for? Is this just a tutorial for creating your own DIY USB client device?

Yeah it’s just a tutorial. I don’t really have any kind of platform for saving links I find useful so figured I’d post it here to save it for myself and maybe someone else would like it. I expected it to be completely ignored.

Re: STM32 Blue Pill as an Hid USB Keyboard

#28
post #3

Can someone explain what this is actual for? Is this just a tutorial for creating your own DIY USB client device?

Blogspam. One of many Bluepill + DIY keyboard articles.

Are howto articles considered spam? I found it useful and wanted to share it as well as save the link so I could find it later. If this post violates some code of etiquette I’ll not do it again.

Re: STM32 Blue Pill as an Hid USB Keyboard

#29
post #4
post #3

Can 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.

Could this be used as a rubber ducky type device? I remember last I researched making a DIY rubber ducky it was quite difficult for some reason.
Post reply on HN