DavidBertet / PowerJeep

A Ryobi Battery Conversion for Ride on Cars
MIT License
63 stars 7 forks source link

Should the motor driver run on 5v instead of 3.3v? #8

Closed derekclawson closed 4 months ago

derekclawson commented 4 months ago

In looking at the datasheet for the motor driver, it is specifying 5v be the supply voltage. Have you tested feeding the esp32 5v on the VIN pin and to the IBT_2 Motor driver, then using the 3.3 v pin on the ESP32 to run through the pedal and the switch for the signaling? Would this make any difference or does the motor driver run fine on 3.3v?

thatdecade commented 4 months ago

It should work as you want. The BTS 7960 datasheet, section "Electrical Characteristics - Control and Diagnostics", give an examples of typical VINH and VINL values and are not dependent on the VCC voltage. Same with the 74HC244D buffer chip. If you are worried, the 3V3 pin on the ESP32 dev board is a 3.3V input & output. You can input 5V to VIN and output 3.3V to the motor driver.

The parts that worry me are:

derekclawson commented 4 months ago

@thatdecade I appreciate the explanation. I did try running the ESP32 and IBT_2 motor driver on 5v. It works, but there is no change to the issue I was having of the driver shutting off on load. I am currently wiring up 2 drivers in parallel (one for each motor) to see if that helps.

DavidBertet commented 4 months ago

Agreed with @thatdecade. While 5V should work, there is not much benefit.

The IBT_2 is known to overheat. I went with thermal paste, but seems like you found a solution by using 2 of them.

I'll try to update the README accordingly, thanks for sharing!