Skip to main content
Visitor II
February 20, 2025
Solved

Nucleo-F103rb Keyboard

  • February 20, 2025
  • 2 replies
  • 1062 views

I'm new to fiddling with MCUs, so I'm looking for some advice, I'm working on a project for my class and I'm trying to emulate a keyboard using the nucleo-F103rb. I have my code written out, I have a usb cable with D+ Connected to PA12 and D- to PA11, GND to GND and VCC to E5V all within CN5. Despite having all the headers in place, my computer doesn't detect any connection whatsoever. If anyone could suggest anything that may help it'd be really appreciated. 

    This topic has been closed for replies.
    Best answer by Logan_

    I have not, albeit I have looked at the ST videos based on "stm32 usb training", ill check this out too as well as trying with a 1.5 kOhm pullup and update this post when I do. Much appreciated.

    2 replies

    Super User
    February 20, 2025

    Do you have a 1.5 kOhm pullup on USB_DP?

    Logan_Author
    Visitor II
    February 21, 2025

    I currently do not, I'm a little new to this so excuse my lack of knowledge, would any 1.5 kOhm resistor from amazon or whatnot work fine?

    Super User
    February 21, 2025

    Yes, any resistor should work.

    The STM32F1 is very old. Newer families have an integrated pullup that is activated when the USB is used. I'd recommend switching to a newer family if you can.

    Introduction to USB hardware and PCB guidelines using STM32 MCUs - Application note

    Technical Moderator
    February 20, 2025

    Hi @Logan_ 

    I'd add another question apart the hardware check suggested by @TDK 

    Have you tried the example provided for a mouse?

    STM32CubeF1/Projects/STM32F103RB-Nucleo/Applications/USB_Device/HID_Standalone at master · STMicroelectronics/STM32CubeF1

    Logan_AuthorAnswer
    Visitor II
    February 21, 2025

    I have not, albeit I have looked at the ST videos based on "stm32 usb training", ill check this out too as well as trying with a 1.5 kOhm pullup and update this post when I do. Much appreciated.