You are here

Custom VESC4.8 short circuit error

5 posts / 0 new
Last post
b4zz
Offline
Last seen: 3 years 3 months ago
Joined: 2018-12-17 10:12
Posts: 4
Custom VESC4.8 short circuit error

I'm in the process of designing my own dual motor vesc. Currently it is just a slightly modified copy of the VESC4 copied twice on a single board and with NTMFS5C645NL fets, instead of IRFS7530. Also the PWR_COMM and servo output have been removed. 

I was able to program the board correctly and everything seems fine in the Vesc-tool. A problem occurs when I'm trying to drive a motor. When pressing a key forward/backward/left/right or sending a current or speed command to the vesc, I hear a loud bang from the motor, like it is trying to start up and than immediately being halted. Also the red light blinks and the Vesc is indicating a low voltage error. I'm getting the idea that there is a short circuit when driving the motor. I've set the max amps to 5 amp and the max battery amps tot 5 amp as well. 

Even though the amps are set quite low, after a while one of the fets blew up and needed replacement. What could be the issue, and how could this be resolved?

When I'm not driving the motors the fets don't get warm and the current draw is <100mA so that should be fine. It is just when driving the motors that the error occurs. This is on both the motor controllers. 

 

DUAL_MOTOR_CONTROLLER_V0.1 2.png

DUAL_MOTOR_CONTROLLER_V0.1 2 2.png

Screenshot 2018-12-17 at 10.29.21.png

b4zz
Offline
Last seen: 3 years 3 months ago
Joined: 2018-12-17 10:12
Posts: 4

Well a day of trials later and still no success. However after resoldering a couple of fets namely Q3 and Q4, where I think only Q3 was broken, and the DRV8302, I can drive the motor a little bit. But it halts when applying a little force, going into over current. The current limits are +/-30Amps for the motor and +/-20amps for the battery. The motor I'm using is a hoverboard wheel. 

This are some screenshots of what happens when the motor is spinning:

Screenshot 2018-12-18 at 10.18.28.png

Here the erpm seems to be detected ok, and kept at a constant speed. 

Screenshot 2018-12-18 at 10.18.17.png

But looking at the current graph doesn't give a good image. 

 

IMG_2273_0.jpg

Looking at one of the phases gives me the above result. This is the same for all phases. 

Does anyone know what the problem could be?

b4zz
Offline
Last seen: 3 years 3 months ago
Joined: 2018-12-17 10:12
Posts: 4

It may have been that I have swapped the SENSE or pins. Currently SENSE1, SENSE2, SENSE3 are connected to pin16, 15, 14 on the mcu, is this correct? And if not how can this easilly be changed in the software?

TechAUmNu
Offline
Last seen: 2 days 11 hours ago
VESC Free
Joined: 2017-09-22 01:27
Posts: 575

This is the correct wiring as of VESC6 firmware for using external gate drivers.

b4zz
Offline
Last seen: 3 years 3 months ago
Joined: 2018-12-17 10:12
Posts: 4

Thanks but I'm using a VESC4 with DRV8302 driver. 

I got a wheel to spin today, but it sounded really janky and when I tried to accelerate quickly it stalls. Also it keeps ~95% duty cycle even when no sending any commands as I get above 50% dutycycle.