Driving multiple motors and using esp now with esp32

Hey everyone after quite a lot of difficulties I faced in making a rover with Arduino Uno and esp 32 cam , I have thought of shifting over to esp 32 and ditching the Uno
Can anybody help me with how I can run 4 dc motors , 4 futaba s3003 servos ,1 ultrasonic sensor HC sr 04 , and make this rover communicate with esp32 cam module which detects objects for me and sends it over esp now to esp 32
In short I wanted to know how I can make such a rover with esp32 module and esp32 cam like how should I connect everything and run it

Yes.

Hello jatin096

We need some additional information.

Post your sketch, well formated, with well-tempered comments and in so called code tags "< code >" and schematic to see how we can help.

Have a nice day and enjoy coding in C++.

No sir , I wanted to know how shall I do that , I want an idea for the project how should I go about connecting the parts and running it

sounds a good idea!
have a look at esp32-pinout-reference - it show you have plenty of IO available
the ESP32 uses 3.3V logic so you may have problems if your peripherals use 5V logic - you may need level converters

This is a nice project to get started.

Keep it simple and stupid firstly.
Run some tutorials for the hardware selected.
If you are happy with the results of the tutorials you can merge these to your project.

1 Like

The servos are 5v and I am using a l298N motor driver for the dc motors so that won't be an issue right?
Do I need level convertors for the servos as well ?

Sure sir thanks

3.3V logic should drive peripheral 5V logic devices without problems therefore control signals to servos and motors should be OK - carry out some simple tests
the problem is 5V logic signals input to the 3.3V logic ESP32, e.g. the echo signal from the HC sr 04 would require a potential divder or level converter

1 Like

Oh I get it I'll try with a voltage divider , thank you ,
Other than that any precautions I should take with the voltage current part of it ?
I heard that the servos require an external power source , shall I use a 5v 10000mah powerbank for that (2A max ) ?
As I would be running 2 servos at a time and sometimes 1

You can use 5v 2A power supply for both the servos and motors

Will 2A be enough for 4 servos ?
I am using a powerbank rated at 2.1A(max) 5v but the servo is quite slow and 3 servos together don't work that well

And can you suggest how i shall do that , I have multiple 18650 batteries which are 3.7 v and 2300 mAh

First you need to check if all batteries are working correctly and have 4.2v when fully charged.

If everything is fine then you can use your batteries with bms

  • Is servo shaft connected to some load?
  • The connection may be Loose
  • Post your code. May be your code making it to move slowly

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