Ps5 controller for rc car via BT

If you want to skip the details the next paragraph sums it up. So as the title says, trying to get a ps5 controller to control motors and such with a 2560 mega board and I am not getting anything to work. I looked around and found a few ppl did it but none of these are close enough to my project for me to follow along. I see many use a usb shield. I want to avoid this because I have an Ethernet shield I want to use because it also has an sd card slot for expansion and I would like to maybe someday get a Ethernet connected hot spot to connect over towers and use an app to control it but that will be later once I get things going better. So I have an HM-19 with 5.0 BT and it is connected and I can connect with BT scanner app but it doesn't ask for a password and when I try connecting with my phones BT it says an app is needed. I also followed a guide to be able to turn on and off the onboard LED by sending 1 or 0 with the write option on the BTScanner app but that did not work either. So maybe I need a more up to date guide. I believe i have some HM-10 in storage but thats BT 4.0 and I just wanted to have the most up to date module attached which is why I am doing this with the HM-19. It is connected to RX1 and TX1 (19, 18) Any advice, guides, and code would be great.

To sum it up, I want to use an Elegoo Mega 2560 R3, attach servos and HM-19, and connect the PS5 controller in a way that others cant boot me off or take control with their controllers. Weather it needs a password thru an app or just a manual button press to pair. From there have the controller input operate the rc car motors. I feel like it shouldn't be too hard.

Someone has figured out how to connect a PS5 controller to an ESP32.
Connect the servos to an ESP32 and save the Mega for something else. Or connect an ESP32 to the Mega.

1 Like

If thats my only oprion ill have to resort to it but the reason i want to stick to the mega is because there are a lot more things to it. I already have the mega doing a lot and it will be doing a lot more. Like i said i am using an ethernet shield for hot spot connection. And ive seen people connect controllers to the mega via hm-10 but those vids/guides are old to begin with.

I appreciate the input and will look into that if i have to. It would work. Just be extra parts and wires and space to an already hectic prototype lol.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.