Hi I am trying to make a device that uses esp32 (arudino R4 wifi, but will change to esp32 later) to connect to a HC-05 via bluetooth how would I do this.
(I originally posted another form trying to connect HC-05 to HC-05 but it never worked so I am trying this method as well)
Please explain more about the overall goal of your project.
Why do you need to use an HC05 and not just two esp32 units communicating with BT.
The fact that you failed in your earlier attempts to get two HC05's attached to Arduinos connected and communicating (which is a well documented frequent application) does not bode well for your project.
An alternative to Bluetooth would be using two WiFi-enabled modules, such as the ESP32, without dealing with external modules, such as the HC-05. Bluetooth, in general, is a pain in the rear to understand, and BLE is much worse than classic Bluetooth.
Ok so at the moment I am trying to make a car that is controlled wirelessly via bluetooth.
I was initially watching a tutorial on how to do this, but the way the tutorial does it it connects a phone to the hc05 and the phone would send commands to the hc05 (via some app you download) but I wanted to do it differently where I would make my own controller (so that's where the hc05 - hc05 idea came from also why I am using a hc05 in the first place)
at the moment I have an arduino with a sensor shield and that is connected to a motor driver (connected to 4 other motors), an ultrasonic sensor, a servo and the hc05 which would be used to receive commands from the phone. I have tested (individually so I understand how they work) the ultrasonic sensor and servo and just have the hc05 and motor driver to go. I was doing research today and found out about the ESPNOW which seems very useful. The main reason I did not try esp32 to esp32 is because initially I wasn't planning on making a controller.
Using an Android phone with an HC05 is the most simple and reliable method for a "controller".
but the way the tutorial does it it connects a phone to the hc05 and the phone would send commands to the hc05 (via some app you download) but I wanted to do it differently where I would make my own controller
There are several apps available to control an arduino BT car. Which ones did you try, and what functions were missing?
If there is not an existing app which does what you want to do, then creating a custom app using MIT App Inventor is another option.
Using an Android phone with an HC05 is the most simple and reliable method for a "controller".
hmm ok, Ill try get that working then attempt the HCC05 to HC05. I really want to do something like this so I can make a PCB out of it.
Iv like wasted 16+ hours trtying to fix this stupid bugs idk why it even happens in the first place. ty tho ill try that first- controller app