Cheap FOCer! (VESC compatible 4.12 redesign) (Tested and Functional)

Okay guys , problem solved. Its just a missed cable and my fault for didnt install the STM32 St-Link program. Now its flashing 2 Leds, red and blue from ST-Link.
I connected the ST-Link, but now I need the File to make the Bootloader, its the same file from CF V2 ? Because I didnt find from the GitHub CF v1.

1 Like

Purely guessing here… probably the same bootloader, but not the same firmware since v2 is a VESC 6 redesign. Shaman?

1 Like

Me too. I put the same bootloader, but I dont know which is the best FW for CF Vesc4 , will keep with 3.4x ?
If yes, where I can find ?
Im trying to find, but I found the FW 3.62 , 4.02 and 5.01 from the files of CF Vesc6.

I have a newbie questions,
When I will use the PRGM \ DEBUG port ?
For ST-Link Bootloader the STM32 and what else ?

When I will use the USB port ?
Vesc-tool for Config, update …

@Martim

The Cheap FOCer 1 can be treated like a regular vesc hw4.12 and uses the same firmware. There are tons of articles and threads out there for getting you started with hw4.12

Do not use firmware that is meant for the Cheap FOCer 2. It is a different design

2 Likes

How would those of us that live in this crazy country known as America acquire 3 of these updated FOCer VESC’s?

1 Like

Build them :slight_smile:

1 Like

have i somehow overlooked that location where I am able to locate the wiring diagrams?

2 Likes

Let’s get you over here. Cheap FOCer 2 is the latest. Everything is in the GitHub. Links in the first post!

1 Like

thank you very much! will likely be incorporating these into my DIY onewheel! will update if it comes to fruition.

3 Likes

Good day guys ! I got some problems, faults. About FOC Brakes.

BLDC its ok, working very well, no problems.
I solved a problem with the GND cable, probably touching the positive and the BLDC motor starts to accelerate. I redid the solder, no more problems.

So, I changed the BLDC to FOC ( before and after the problems with GND cable).

FOC without Sensor Hall:
Brakes fail with 0 RPM or low speed when I Brake 100% or close of it.

I choose other Vesc FOCer, and change it to FOC and got the same problems with brakes.

I received,
Fault : FAULT_CODE_DRV
Current : -207.5
Current filtered : -22.1
Voltage : 30.29
Duty : 0.000
RPM : 255.6
Tacho : 7992
Cycles running : 903
TIM duty : 0
TIM val samp : 2
TIM current samp : 4200
TIM top : 8400
Comm step : 2
Temperature : 31.00

Fault : FAULT_CODE_DRV
Current : -50.2
Current filtered : -4.1
Voltage : 30.29
Duty : 0.000
RPM : 193.6
Tacho : 8010
Cycles running : 1152
TIM duty : 0
TIM val samp : 2
TIM current samp : 4200
TIM top : 8400
Comm step : 2
Temperature : 30.97

Fault : FAULT_CODE_DRV
Current : 324.1
Current filtered : 32.7
Voltage : 30.29
Duty : 0.000
RPM : 559.4
Tacho : 8042
Cycles running : 5
TIM duty : 0
TIM val samp : 2
TIM current samp : 4200
TIM top : 8400
Comm step : 2
Temperature : 30.97

Fault : FAULT_CODE_DRV
Current : -212.7
Current filtered : -22.6
Voltage : 30.29
Duty : 0.000
RPM : 325.7
Tacho : 8058
Cycles running : 907
TIM duty : 0
TIM val samp : 2
TIM current samp : 4200
TIM top : 8400
Comm step : 2
Temperature : 31.00

Fault : FAULT_CODE_DRV
Current : -190.8
Current filtered : -20.1
Voltage : 30.29
Duty : 0.000
RPM : 147.3
Tacho : 8076
Cycles running : 1822
TIM duty : 0
TIM val samp : 2
TIM current samp : 4200
TIM top : 8400
Comm step : 2
Temperature : 31.00

Fault : FAULT_CODE_DRV
Current : 206.8
Current filtered : 20.2
Voltage : 30.29
Duty : 0.000
RPM : 122.9
Tacho : 8089
Cycles running : 368
TIM duty : 0
TIM val samp : 2
TIM current samp : 4200
TIM top : 8400
Comm step : 2
Temperature : 31.00

Fault : FAULT_CODE_DRV
Current : 133.1
Current filtered : 13.6
Voltage : 30.29
Duty : 0.000
RPM : 64.7
Tacho : 8113
Cycles running : 11019
TIM duty : 0
TIM val samp : 2
TIM current samp : 4200
TIM top : 8400
Comm step : 2
Temperature : 31.00

I changed the motor, a motor with Sensor Hall.

FOC with Sensor Hall
Same problems with brakes. But not the same numbers, look to Current.
Fault : FAULT_CODE_DRV
Current : 0.6
Current filtered : 0.7
Voltage : 30.27
Duty : 0.000
RPM : 309.0
Tacho : 7412
Cycles running : 983
TIM duty : 0
TIM val samp : 2
TIM current samp : 4200
TIM top : 8400
Comm step : 4
Temperature : 31.64

Fault : FAULT_CODE_DRV
Current : -1.1
Current filtered : -1.3
Voltage : 30.26
Duty : 0.000
RPM : 241.4
Tacho : 7485
Cycles running : 17994
TIM duty : 0
TIM val samp : 2
TIM current samp : 4200
TIM top : 8400
Comm step : 4
Temperature : 31.69

Fault : FAULT_CODE_DRV
Current : -1.4
Current filtered : -1.2
Voltage : 30.27
Duty : 0.000
RPM : 0.0
Tacho : 7521
Cycles running : 6100
TIM duty : 0
TIM val samp : 2
TIM current samp : 4200
TIM top : 8400
Comm step : 4
Temperature : 31.69

Fault : FAULT_CODE_DRV
Current : -1.3
Current filtered : -1.4
Voltage : 30.26
Duty : 0.000
RPM : 141.3
Tacho : 7617
Cycles running : 24164
TIM duty : 0
TIM val samp : 2
TIM current samp : 4200
TIM top : 8400
Comm step : 4
Temperature : 31.69

I changed and tested the Bat Reg. The problem keeps.

60A
-60A
130A
60A
-12A

I saw some guys with the same problem solving add a Capacitor or changing it.

Dont run FOC on 4.12 HW, it will break.

Also, I think the trial run of cheap FOCer 1 resulted in that a redesign was needed.
V2 I think shaman got the kinks out tho.

This isn’t really completely true

It runs perfectly on original focboxes as well as the makerx gofoc retro

And unity/xenith

1 Like

Tell that to stack of broken unity/focboxes I have, they might be bit more reliable even great in conservative setups. But compared to a 3shunt design they’re still shite

2 Likes

Sure I mean compared to 3 shunt for FOC

You obviously have not had a good experience haha I will say I haven’t blown anything running FOC on 4.12 12s yet for over 3 years

I used alot vedders own 4.12 HW. Lets just say if any of them where to blow one more time they’d be beyond repair :man_shrugging:

Hi, I’m building some cheap FOCers, and have a couple of questions: Hope I’ve posted correctly!

1: Is it safe to use a 0-5v analogue throttle connected to SERVO as the STM32 is 3.3v?

2: I’m testing using Ackmaniac on a Mac, using the arrow keys I can only get my hub motor to spin fairly slowly, how could I increase the speed please?

Many thanks

from what I understand the ADC1/2 pin is only 3.3v tolerant however someone looked up the pinout and technical sheet of the STM32 and some pins are 5V tolerant but to be on the safeside, just use 3.3v.

The problem with the arrow keys is probably only visible on the bench with no load. But I would double check ERPM limits and control mode ie: current/hyst/duty cycle %.

Thank you, I’ll use a voltage divider to step my thumb throttle down to max 3.3v.

1 Like

Power the throttle with 3.3V. Then the signal with be compliant. Yes ADC1 or ADC2 are what you need to use for analog throttles

1 Like