Using batteries like a supply for arduino

IMG_9977
IMG_9978
How to connect them as a supply for Arduino Nano and Esp32(not NanoEsp32)?
I didn’t find information for last photo

5x1.5V = 7.5V.
Connect black to gnd and red to Vin

Watch batteries will not supply enough current.

The classic Arduino Nano will be fine with 7.5V on Vin / GND
I would recommend to make sure beforehand that 7.5V is admissible for you specific model of ESP32

Indeed: in case of esp, 5 batteries is not the optimum...

For the Nano ESP32 the 5 cell pack will be fine. Connect the red wire to Vin and black to ground. The other battery will not work.

@build_1971, @jim-p But I don't understand how to connect if its wires are different from the Arduino wires, and the second one doesn't have one at all.

The NanoESP32 does not have wires. Exactly which Arduino are you using?
Can you show a picture or a link to the webpage?

and the second one doesn't have one at all.

As I said that will not work

if that were to work with your Arduino, you would have to solder wires to the pads

There is one for the + and one for the - somewhere like

When I wrote Nano/ESP32, I meant usual Arduino Nano and ESP32, not the model NanoESP32, if I can’t use the second, then how do we use this:

?

Using a battery to power a Nano or ESP32 has nothing to do with using a motor with either one.
Maybe you should explain exactly what you are trying to do.

you power your motor separately from the Arduino, not through the arduino.
Some motor drivers will let you build the 5V you need for the Arduino from the motor power

for example like this

source ➜ Arduino Nano - DC Motor | Arduino Nano Tutorial

your battery pack would be the black power adapter in this circuit

1 Like

Yes, but I don’t have wires that connected to motor and battery compartment
And in this you have wires but I do not know how to connect and even recharge(according to the internet I need a special module)

You can't connect the motor directly to the battery if you want to control the motor. you'll need a driver of some sort

To recharge the battery you'll need indeed a specific component - see Overview | Adafruit Powerboost 1000C | Adafruit Learning System for example

You'll need to add wires and solder stuff

as @jim-p said

Looks like you are in over your head at the moment. I would suggest you start slow...

1 Like

@jim-p , @build_1971, I wrote about the battery compartment, then I mentioned the motor, because I thought they had the same contacts. I'm trying to power the ESP32 and Arduino from the battery and control the motor through the driver, but these things don't have wires, and I don't understand how to connect them

for the 3rd time ...

2 Likes

And that type of battery might run the arduino (for a while) but nit the motor...

Do you have a soldering iron?

Yes

OK, so solder wires onto the motor contacts like this
image

1 Like

Thank You, I understand, and also @build_1971, @J-M-L, I need to clarify, I am a newbie(not complete, but still newbie) in soldering, so what wires do I need to use and why this battery pack has three contacts?
I think these wires do not fit:


:joy:
(And I was not going to connect baterry to the motor directly)