FOC_KING - 84V 150A, open source vesc6 board V2.0.1. JLCPCB order

So I have done my best coding the addition of the BMI323 IMU to the VESC codebase, and I have made a PATCH with all the additions (attached to this post - if you want to check it out). It compiles and builds, but I don’t know yet if it is bug-free - I will have to test with new hardware.

On a linux system you can apply the patch in the following way:

  1. Get the latest VESC source code from Vedder github
  2. unzip the patch
  3. On command line run “patch -p1 -d bldc-master < foc_king_bmi323.patch”

“bldc-master” is the vesc source code directory.

You will find all the updates in the “imu” directory + hwconf/FOC_KING.
foc_king_bmi323.zip (92.5 KB)

6 Likes

You should make a pull request into the master repository.

4 Likes

that looks amazing! So your motors are already running?

Sound interesting. If it works with this IMU that could be a good solution!

Hey shambler00117 and sat-be…

Maybe you could guide me to your specific posts about what I need to update on the board?

So the Motor Temperature is not working, which is a hardware issue… A 10k resistor and small capacitor is missing. I will fix…

Is this post still relevant?

What else?

And obviously, the IMU and the Momentary Switch… I have updated my schematic for these two issues.

And I already changed IMU communication from I2C to SPI, which updates 5 times faster. No push to repository yet…

2 Likes

Difficult to spot the difference, but it is an updated PCB…

2 Likes

This does not require any change in your design. If the ppm input is used for lights, the cap has to be removed.
There is also a new solution for lights, connect them to vescexpress with Float Accessories packge. With this solution there is no led pin needed on the vesc and the lights can be connected to dedicated pins for front/back/status, no need to chain them.

You also needed this “1k pullup to 5v” to make lights work right?

1 Like

Did you make any changes to e.g. “hw_FOC_KING_core.h” to make lights work?

I have compiled a short feature list which would be nice to have, if there will be a new version of the free drive:

  1. There needs to be a solution to fix the Push button
  2. I made a VESCExpress from a ESP32-c with a small CAN-bus breakout board. If we could make some room where this could be added directly on the free drive (maybe as option if you like to have this feature) it would be great.
    ( ESP32-C3, TJA1050 (CANBUS-shield))
  3. Motor Temp needs to be fixed
  4. Different IMU (not EOL)

Markus

1 Like

I mean we could fix the LED Stuff directly but if we use an VESCExpress (Its a good Idea cause we could use an ESP32 Remote over WIFI and also use BT for APP / Watch Stuff).

Markus

1 Like

Yes, I did.

No, I just built a no HW_limit binary to allow 20S, no changes in hwconf or package_firmware.py

Still I would recommend people to use Machine Pin Headers for your builds. You can get them on Aliexpress (link).

Hello Jens, good morning. I’m beginning to build my first 5 bldc controllers, and I started with your wonderful project. I know it is a long way with a lot of challenges, but I am happy to get your project as a guide!!!
I ordered 5 PCB as recommended in the github repository. I think you have changed a little the PCBs, but I want to learn the hard way :smiley: . I received yet the 5 PCBs and looks good. I had to pay the supplement for 3 designs and I was not able to convince them that it was only one :frowning:
I have to order the transistors and everything else, and I have some doublts. I’ve made a simple calculation (don’t know if correct), so with only one transistor the maximum current in continous would be around 20 Amps. Is it correct? If this is so, I have to order 12 transistors.
Also, in the instructions I could not find where to put the mica isolators. Can you give some advice on that?
Also, as the assembly instructions are a little outdated, it is difficult to me see how parts are assembled. In the picture you have just sent, the power board seems pretty clear how it is assembled, and finally I understand the two squares on the main board. The MCU also seems clear how it is connected, but then I can not see how the JST connectors are installed. Can you also give some advice on that.
Thanks a lot for your work and give us the opportunity to start building these pieces of hardware!!! Cheers

In the “release” version of the design (you probably have an older version) I have in fact exposed the PB6 pin with the name “led data”. The idea was that you could use this pin for your lights, instead of the “ppm” (PB7).
Yes I know that PB6 on the FOCKING is used for the “fault” LED, but I just thought that if it was allocated for Light, the fact that the Fault LED would “flicker” would not effect the signal. Though, I am not sure that my assumption about this is correct (??).
If anyone has an opinion on this, please share it.
image

2 Likes

OMG, you had to pay for 3 designs. Others have gone through as One design only. Initially, they complain, but when sending in the second time it goes through.

You mean a pull up to VCC (3.3V) right??? (The signal is 3.3V so 5V seems odd)

And what about the 1K? Could it be 5K or 10K instead? Or should it be strictly 1K?