cancel
Showing results for 
Search instead for 
Did you mean: 

How can we connect PS5 controller with STM32 Controller using USB HID?

HiraniBhavik
Associate

Hello STM community,

 

I am currently working on a project that involves connecting a PS5 controller to an STM32 microcontroller. I would like to inquire about the feasibility and potential approaches for achieving this integration.

 

Specifically, I am interested in:

 

Whether the STM32 microcontroller supports USB host mode and is capable of communicating with USB HID (Human Interface Device) peripherals such as the PS5 controller.

Any available libraries, examples, or resources that could help with implementing USB host communication and interfacing with the PS5 controller on the STM32 platform.

Any considerations or challenges to be aware of when connecting and communicating with the PS5 controller, such as protocol compatibility, power requirements, and data handling.

If anyone has experience or insights regarding this topic, I would greatly appreciate your input and guidance.

 

Thank you in advance for your assistance.

 

Best regards,

Hirani Bhavik.

2 REPLIES 2
HiraniBhavik
Associate

We are working with Nucleo-L476RG and PS5. we got a library for Arduino and it's working properly, But we need to setup with stm32 microcontroller..

Andrew Neil
Evangelist III

@HiraniBhavik wrote:

Whether the STM32 microcontroller supports USB host mode and is capable of communicating with USB HID (Human Interface Device) peripherals such as the PS5 controller..


"STM32" is a huge family of many microcontrollers - some of them do, indeed, have USB Host, and could do HID.

Explore the family here:

https://www.st.com/en/microcontrollers-microprocessors/stm32-32-bit-arm-cortex-mcus.html

 


@HiraniBhavik wrote:

 

We are working with Nucleo-L476RG and PS5. we got a library for Arduino and it's working properly.


You mean it's working on the Nucleo, or on something else?

Look at the library documentation to see if it supports any STM32 - if not, you'll have to port it.

Note that there's an Arduino Core available for STM32:

https://community.st.com/t5/stm32cubeide-mcus/library-and-example-experience-comparible-to-the-arduino-ide/m-p/658827/highlight/true#M26010