cancel
Showing results for 
Search instead for 
Did you mean: 

Mouse interfacing with STM32F072B Discovery

asim khan
Associate III

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

2 REPLIES 2

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
Lead II

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.