Cheap FOCer 2 (Open-source, Low-cost, VESC 6 based ESC) (v0.9 Release. Beta testing ongoing)

The v1.0 will likely do better in your stress testing. I’ve added PNP transistors to the gates of the MOSFETSs to provide a Miller clamp. Helps keeps the MOSFET off when it’s supposed to be off and prevent MOSFET shoot through (can easily kill MOSFETs)

I’ve also added a shottky diode to prevent large negative voltage stress on the DRV and also dialed in the gate resistors and capacitor values to be more effective as well.

These improvements have made a significant impact when putting the CFOC2 through high stress situations.

10 Likes

Mostly with 5.01, but have tried 3.62 and 4.02. Having seen that other people are able to get it working is encouraging, going to revisit my wiring and see if anything is off there. I also tried to use usb-serial converter to connnect to vesc-tool it didn’t work which is odd, but I need to double check the baud rates etc.

image
image we need to get this number
image to be more like this number.

I would donate more but I want to have money ready to order v1 CFOCers and Serious FOCers

5 Likes

Are you using the 5.X firmware on the FOCer? I thought I had read that the davega didn’t support it.

Edit: turns out I was misrecalling the davegaX not working with 5.1:

New question: the OG davega supports 5.xx FW? Or is that’s what your code alterations add support for? (I didn’t see anything that popped out immediately)

1 Like

Thanks! Every bit helps. Now I need to stop procrastinating on v1.0!

3 Likes

No. Up to v3.60 is supported by the OS DAVEGA. The DAVEGA X supports VESC FW 5.1 since v2.0.4. Let’s not derail this thread though. If you have any more DAVEGA questions please ask in one of these threads:

6 Likes

Does this FOCer support firmware v3.60? I would be interested in using a Davega with it but I can’t afford a Davega X right now.

3 Likes

image

I’ve got 3.62 in the repository. Does that work?

3 Likes

Uhh, thats not going to work. Only 3.42/3.48-3.60 is going to work

1 Like

So I was stress testing the Little FOCer in a similar fashion to what you were doing. Unloaded motor. 5uH (killer) at 72V. Was going full throttle with keyboard at 60A and switching directions at max rpm. Got some interesting results.

Nothing died. Most of the time the Little FOCer was fine with it. As I went up in max motor current, I would start to get over-voltage faults. The bus was exceeding 95V. Seems like the back EMF at from the motor at high rpm was coming into play and dumping a bunch of energy into the bus when I suddenly switched directions. My gate drive solution is robust enough to handle it and the MCU alerts on it like it should.

The same thing is probably happening to you with the CFOC2 but the DRV isn’t surviving when it gets the >60V from the back EMF of the motor. I wonder if you lower the battery to 10s if you would stop blowing DRVs.

2 Likes

Ok. You’ll have to snag the firmware(s) from those versions, add the CFOC2 relevant files, make sure the CFOC2 is the enabled hardware, and compile.

1 Like

Alright! I will see what I can do. I will write here if I will have questions.

2 Likes

You’ll also have to use the DRV8301.h and .c files from my code. There’s some unique functions in there that’s not in the vanilla VESC code. Only applicable to CFOC2 v0.9 btw.

2 Likes

Okay. How much will hardware change to v1 btw? Will we be able to do some upgrades to get closer to v1?

3 Likes

Damn I also planned to use Davega (open source) for an escooter project. Didn’t know it won’t work. I mean firmare 3.6 was already working good for me but it’s a pity that the newer version are not compatible.

1 Like

I will try to do it, but I am not sure whether I will succeed. I will post a link here to my google drive with the firmware if I succed.

1 Like
2 Likes

Thst would be great. I know some changes are needed but no idea which ones

1 Like

I can’t believe I missed this post… Here you go haha

3 Likes

It sounds plausible. I actually had a TVS diode on that focer but perhaps it wasn’t enough to keep the voltage down.

10S is not an option since it is a hub motor. I need the speed… would get late to work… at least until we have field weakening in the software :grin:

I thought this issue was related to the DRV reseting the registers. After every such such event, the motor would cog violently. When it happend it was always just after the direction change from reverse to forward.

Perhaps too many of these events with the wrong gate drive setting will break down the DRV eventually and that is what could have happened when the drv decided to fart :fire: :man_shrugging:

The pin PVDD1 burnt off completely. (power supply pin for gate driver, current shunt amplifier, and SPI communication)

I will do my first road tests tomorrow with the focer in the scooter. Should be fine as long as I keep myself from going full reverse 60kph to full forward :grin:

3 Likes