Skip to main content
asim khan
Associate II
August 22, 2018
Question

Mouse interfacing with STM32F072B Discovery

  • August 22, 2018
  • 2 replies
  • 618 views

Hi ..I want to control movements of a robot arm with mouse cursor and buttons connected to STM32F072B discovery board..I am using CubeMx to initialize the peripherals.While in CubeMx i realized that this board has only Usb-device mode(not a host).So my question is whether i can use this board to read the mouse movements which is connected to mini user usb on the board or should i change it to f4 0r f7 which has also a Usb-host mode options

    This topic has been closed for replies.

    2 replies

    waclawek.jan
    Super User
    August 22, 2018

    If you want to use an USB mouse, you have to go for 'F4 or 'F7.

    Another option would be to use a PS/2 mouse.

    JW

    Khouloud GARSI
    Technical Moderator
    August 23, 2018

    Hello @asim khan​ ,

    The STM32F072 can not be configured as a host, it embeds only a USB 2.0 FS device interface.

    So, you should choose another STM32 MCU which provides host capabilities (such as STM32F4 and F7)

    Khouloud.