Skip to main content
knidh
Associate II
Oct 27, 2018 9:26 AM UTC
Question

I am using STM32F373VC microcontroller. I want to interface a usb keyboard to toggle led connected on pin by pressing key on keyboard.please help me.

..

    This topic has been closed for replies.

    9 replies

    After Forever
    Senior III
    Oct 27, 2018 9:57 AM UTC

    Do you have a question? Where is your code? Where are you struggling?

    knidh
    knidhAuthor
    Associate II
    Oct 31, 2018 3:18 PM UTC

    thank you sir i got answer i am using wrong micro controller for this purpose.

    waclawek.jan
    Super User
    Oct 27, 2018 11:15 AM UTC

    USB is asymmetric, you have master (Host) and slaves (Devices). Keyboard is a Device. So you'd need the STM32 to act as Host, but the USB in STM32F3xx is Device only.

    So you can't.

    JW

    knidh
    knidhAuthor
    Associate II
    Oct 31, 2018 3:18 PM UTC

    thank you sir

    waclawek.jan
    Super User
    Oct 27, 2018 11:15 AM UTC

    USB is asymmetric, you have master (Host) and slaves (Devices). Keyboard is a Device. So you'd need the STM32 to act as Host, but the USB in STM32F3xx is Device only.

    So you can't.

    JW

    knidh
    knidhAuthor
    Associate II
    Oct 31, 2018 3:18 PM UTC

    thank you sir

    Pavel A.
    Oct 28, 2018 12:00 AM UTC

    But you can connect a PS/2 keyboard to gpio pins of STM32. We did this. Works great.

    -- pa

    knidh
    knidhAuthor
    Associate II
    Oct 31, 2018 3:19 PM UTC

    thank you sir

    knidh
    knidhAuthor
    Associate II
    Oct 29, 2018 8:22 AM UTC

    thank you sir