-
Notifications
You must be signed in to change notification settings - Fork 272
Home
Welcome to the LishuiFOC wiki!
Here are the necessary steps to flash the firmware to your controller.
-
Make sure, that your controller uses the STM32FEB KC6T6 processor
-
Make sure, the you can find the three shunts, three halfbridge-drivers and the OP on the PCB. Your PCB can look completely different, it's only important, that you can find the components.
3. Wire the STLink-V2 to the white connector, or directly to the PCB.
-
Download and install the Java Runtime Environment (if not already installed)
-
Download and install the System Workbench for STM32
-
Import the repo in Eclipse by file --> import --> git --> Projects from git --> clone URL. Copy the adress https://github.com/stancecoke/LishuiFOC to the dialog window and choose an empty folder.
-
You have to disable the write protection of the controller once, this will delete the original firmware and can't be undone. You can use the ST-Link utility, see figure 19 of the manual
-
Edit the settings in the config.h according to your needs and then press the "Run" button to compile and flash the firmware.
-
Essential for motors with hallsensors is the setting of SPEC_ANGLE. If you set the Display-Type to "DISPLAY_TYPE_DEBUG" the controller runs a diagnostics procedere to determine the angle at startup. The value is printed via UART. Make sure, that the wheel can turn free without load during the autodetect procedere.
Caution: all of this project is highly experimental and all you are doing is on your own risk!
https://www.youtube.com/embed/iYRHn77PX7U?wmode=opaque&start=0