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.