I am building a hobby car project that uses esp32c3 mini board and HBridge (L289). Previously, I was powering the HBridge board separately from the microcontroller using 4 AA batteries connected in series. The esp32 board was powered with 2AA batteries from another battery box.
This setup worked relatively well, however I was quite upset because of the fact that batteries did not last long :(.
Now I am thinking of trying using a powerbank as a source of supply, that would be connected to the esp32 board directly via the USB inlet. And the question is, can I connect the HBridge from the 5V output, without a risk of damaging the board?
can I connect the HBridge from the 5V output, without a risk of damaging the board?
It's questionable if that is a good idea. The ESP32-C3-DevKitM-1 has a diode between the USB input and the 5V output. It may be able to handle the current but will certainly further reduce the voltage to the motors.
If you use two 3.7V Li-ion batteries in series to give you 7.4V and connect that to the L298 input, then you can use the L298 5V output to power the ESP.
so as I understand the idea I am connecting the power bank to H~Bridge and contoller at the same time (e.g. as I am removing the 5V jumpter, I guess it just forwards 5V to controller)?
In the future, when creating a topic please take the time to pick the forum category that best suits the subject of your question. There is an "About the _____ category" topic at the top of each category that explains its purpose.
They will last a lot longer if you use a modern MOSFET motor driver, rather than that 1970s dinosaur. The L298 wastes a huge fraction of the battery power as heat.
I am a bit new to this topic, so I just googled for H_Bridge and got this one. But don't I understand it correctly that most of the power is consumed by motors at the end of the day? What 2-channel Hbridge model should I look for instead?
Yeah, it has. But it has a special feature that allows to be disabled it for small (wearable devices for 2 hours). I am using powerbanks, because I am a bit afraid of 18650-type devices. Mostly scared of possible fires etc. I wonder if there is safe reliable option among these batteries to try?
No, not with that H-bridge. Depending on the motor power source voltage and motor current draw, as much as 40% of the battery power is wasted as heat in the H-bridge chip. The L298 or L293 H-bridges are suitable only for very small, low power toy motors.
Yes, I agree. It's a hobby at the end of the day. I want to learn with my son, ideally in the safe way. Maybe in future we will get to real batteries, but I would want to know for sure what I am doing when I start with them. Right now it's more like reading, trying, fixing, reading again! Thanks for wise advise and support!