# Connecting PS5 controller and ImSwitch

**URL:** <https://openuc2.discourse.group/t/connecting-ps5-controller-and-imswitch/43>\
**Category:** Support and Help Desk\
**Tags:** imswitch\
**Created:** [June 20, 2024, 1:25pm UTC](https://openuc2.discourse.group/t/connecting-ps5-controller-and-imswitch/43 "2024-06-20T13:25:38Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Yuhao](https://avatars.discourse-cdn.com/v4/letter/y/c68b51/32.png) [@Yuhao](https://openuc2.discourse.group/u/Yuhao)\
**Post date:** [June 20, 2024, 1:25pm UTC](https://openuc2.discourse.group/t/connecting-ps5-controller-and-imswitch/43/1 "2024-06-20T13:25:38Z")

</div>

Dear Bene,

Thanks a lot for developing this cool technology, ! I plan to use my PS5 controller to manipulate the microscope in XYZ level. Based on your PS4/PS3 tutorial, currently, I have some issues in connecting PS5 and the ImSwitch.

The PS5 was paired with the Windows laptop via bluetooth. I installed the Arduino 18.18 and the ESP32 module. But I am stuck on the step of ["Test the code using the Arduino Serial](https://github.com/openUC2/UC2-REST/?tab=readme-ov-file)". It is my first time to use this software and don’t understand its grammar, especially for how to insert the code of ‘Identify the Board’, ‘Turn on the laser’ etc. Besides, I don’t know if the PS5 controller is successfully connected to the microscope. I think it is better to reminder users the state of PS controller on the Imswitch UC2 confia panel.

Could you give me some suggestions to solve these issues? Thank you in advance!

Best,  
Yuhao

---

<div class="post-metadata">

**Author:** ![Yuhao](https://avatars.discourse-cdn.com/v4/letter/y/c68b51/32.png) [@Yuhao](https://openuc2.discourse.group/u/Yuhao)\
**Post date:** [June 21, 2024, 9:41am UTC](https://openuc2.discourse.group/t/connecting-ps5-controller-and-imswitch/43/2 "2024-06-21T09:41:21Z")

</div>

Reminded by benedick, I follow [this tutorial](https://openuc2.github.io/docs/Electronics/PS4-Controller/) to connect the PS5 and the microscope. When I l flash the firmware, I received the bug (below) during a long time waiting for downloading the UC2-ESP. Could you please give me some clues to solve it? @benedictdied

 ![ps5_error](https://global.discourse-cdn.com/free1/uploads/openuc2/original/1X/0501a045f71dfb9f6944eca5316b1d83a68cbff6.jpeg)

Best,  
Yuhao

---

<div class="post-metadata">

**Author:** ![benedictdied](https://avatars.discourse-cdn.com/v4/letter/b/96bed5/32.png) [@benedictdied](https://openuc2.discourse.group/u/benedictdied)\
**Post date:** [June 21, 2024, 10:19am UTC](https://openuc2.discourse.group/t/connecting-ps5-controller-and-imswitch/43/3 "2024-06-21T10:19:23Z")

</div>

Thanks for reporting this issue @Yuhao! First of all, you should select the firmware UC2\_3 (I see you selected UC2\_WEMOS) on the website. This - however - has only an effect on the pins, not the way of flashing it. Reasons why this installation may fail is that you have opened the device in another application or you have some virus scanner installed on your computer that may prevent you from using the online tool.

The tool also suggests you to push the BOOT button. In case installing the firmware does not work on your current computer you could access this button by opening the assembly like so:

> **[openUC2 FiveD v3 | openUC2 Documentation](https://openuc2.github.io/docs/Investigator/XYZMicroscope/FiveD_v3/)**
>
> Design Files

I hope this helps.

PS: How did you upload the other firmware? Usually you don’t need firmware updates…

---

<div class="post-metadata">

**Author:** ![Yuhao](https://avatars.discourse-cdn.com/v4/letter/y/c68b51/32.png) [@Yuhao](https://openuc2.discourse.group/u/Yuhao)\
**Post date:** [June 21, 2024, 12:05pm UTC](https://openuc2.discourse.group/t/connecting-ps5-controller-and-imswitch/43/4 "2024-06-21T12:05:10Z")

</div>

Hi Benedict!

Thanks for your quick reply and useful suggestions. You are right, I opened both the ImSwitch and the webserial. My problem was solved by restarting the microscope and closed the ImSwitch. So if anyone has similar issues, it would be good to have a try on restarting it.

Best,  
Yuhao

---

<div class="post-metadata">

**Author:** ![benedictdied](https://avatars.discourse-cdn.com/v4/letter/b/96bed5/32.png) [@benedictdied](https://openuc2.discourse.group/u/benedictdied)\
**Post date:** [June 21, 2024, 1:18pm UTC](https://openuc2.discourse.group/t/connecting-ps5-controller-and-imswitch/43/5 "2024-06-21T13:18:31Z")

</div>

Great! Thanks a lot for your patience! 🙂

---

<div class="post-metadata">

**Author:** ![MakerTobey](https://yyz2.discourse-cdn.com/free1/user_avatar/openuc2.discourse.group/makertobey/32/49_2.png) [@MakerTobey](https://openuc2.discourse.group/u/MakerTobey)\
**Post date:** [July 26, 2024, 3:37pm UTC](https://openuc2.discourse.group/t/connecting-ps5-controller-and-imswitch/43/6 "2024-07-26T15:37:54Z")

</div>

The tutorial is based on the original PS5 controller, but it seems what I bought is a no-name product: [https://articulo.mercadolibre.cl/MLC-1409092371-2joystick-mando-gamepad-inalambrico-para-pc-emuelec-tv-box-\_JM?quantity=1&variation\_id=178375429554](https://articulo.mercadolibre.cl/MLC-1409092371-2joystick-mando-gamepad-inalambrico-para-pc-emuelec-tv-box-_JM?quantity=1&variation_id=178375429554)  
Do you think that could also be used, or should we try to get the original for compatibility?  
We would be grateful for any tips.

---

<div class="post-metadata">

**Author:** ![benedictdied](https://avatars.discourse-cdn.com/v4/letter/b/96bed5/32.png) [@benedictdied](https://openuc2.discourse.group/u/benedictdied)\
**Post date:** [August 16, 2024, 9:06pm UTC](https://openuc2.discourse.group/t/connecting-ps5-controller-and-imswitch/43/7 "2024-08-16T21:06:05Z")

</div>

Hey @MakerTobey, thanks for reaching out. Right now, the Firmware only supports PS3/PS4 controllers, but I would recommend you to use PS4 controllers. Fake ones should work just fine.

---

<div class="post-metadata">

**Author:** ![benedictdied](https://avatars.discourse-cdn.com/v4/letter/b/96bed5/32.png) [@benedictdied](https://openuc2.discourse.group/u/benedictdied)\
**Post date:** [August 16, 2024, 9:06pm UTC](https://openuc2.discourse.group/t/connecting-ps5-controller-and-imswitch/43/8 "2024-08-16T21:06:57Z")

</div>

The one you linked looks like PS3, no?

 ![image](https://global.discourse-cdn.com/free1/uploads/openuc2/original/1X/634720711ab7b6fbcb248d8db43573ca8ea201a0.jpeg) with a dedicated usb dongle. This won’t work unfortunately.
