HC-05 only works nearby

Your project is not working, and the reasons for that are completely obvious: you are following very bad advice.

I understand that you don't want to hear this, but the standards on this technical forum are much higher than what you are used to seeing on Youtube.

1 Like

What can I use instead of the 18650?
It has to be small to fit in the truck cabin

Use shielded cable; that's the most straightforward solution.

You could use an 18650 with a boost converter to step up its output to 5V. Or 2x 18650 in series with a step-down converter. Or one of the many box-shaped battery packs that come in various dimensions and volumes (and capacities), again combined with a step-up or step-down converter to get the required voltage out of it.

I've already tried this. Two 18650 with a 5v ams1117, it was the same results. But I'm gonna try it again

My 18650 are from china, they have less than 1Ah, I think that's the problem

Updates: tested it again, with the wire antenna I managed to get ≈ 3,6m away, without the wire antenna it was less than 1,5m. With the AMS the servo didn't restarted the Arduino.

And if I cover my phone's Bluetooth with my hand it also doesn't work

Did you go the 'MRE' route yet - nothing but the HC-05 (go/no-go) ?

Can you explain it for me? I didn't understand

A circuit composed of "the Arduino", the battery, the TP4056 and the HC05/06 together with a simple sketch (SoftwareSerial) - all of which with you would validate, test, assess, the Bluetooth operation.

I think that's what he reported on in #16.

If that's so, assuming "No.6" is it - then that's what must be better understood, investigated - as it's the keystone so far as this project going forward (or not).

I think he needs both the servo and the H-bridge for his DC motor, so the final option would probably be no.1 or no.2, but with improvements so that the range approaches that of no.6 and no.7. My interpretation of #16 was that the H-bridge was the main problem, so I took it from there. Better / other ideas are surely quite welcome, though!

Guys should I try to place the HC05 it further away from the other components? To reduce the interference

That's a good idea as well.

I did get more range, but it's far away from 10m

Also when I use the servo and the motor at the same time they keep moving even when I already stopped them with my phone

Blutooth may not be the best option for longer ranges. In an indoor environment, a few meters is really all you can expect.
If you take it out into the yard with no walls, trees/shrubs between receiver and transmitter, so a free line of sight, then you can probably eek out 10m. But you'll have to ditch the breadboard setup as it'll be inherently noise. You'll only get decent performance if you build the rest of the circuit as compact as possible, and position the bluetooth module advantageously in relation to the rest of the system. Even then, the noise from the motors and motor drivers will affect range strongly.

Could be a code problem, or a problem with failed bluetooth communication; hard to tell from a distance.

What kind of range do you need?

The range of HC-05 is approximately 100m. As your module is not working from more than 1.5m range, I believe you should bring a new one.

Please provide a source for this claim. All product descriptions I see mention ranges of 10-max. 30m, and those are the optimistic figures. I'd love to see your setup and experimental data for realizing a 100m range with HC-05.

6~7 meters is enough for me

Maybe something like NRF24. Easily achieves that range, also in an indoor environment, especially if you use modules with a screw-on antenna.

Probably my next project will use a NRF24, but if I use it, I will have to build a entire remote control from scratch, and where I live, the parts I will use are quite expensive.

I'm giving up on the HC-05 . I'm gonna build a rc remote control using nrf24l01.

If I finish in less than 6 months, I will share photos of it