-
Notifications
You must be signed in to change notification settings - Fork 271
Home
Welcome to the LishuiFOC wiki!
-
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. Start Eclipse once to extract the compiler. (in path C:\Ac6\SystemWorkbench\eclipse.exe by default)
-
Download the repo from github and extract it.
-
Doubleclick on JavaConfigurator.jar to open the configuration tool.
-
click on "unlock controller" once, to disable the read/write protection. Caution, the original firmware is deleted and can't be undone!
-
Adjust your settings for the parameters, then click on "compile & flash". Don't touch the parameters in the "advanced" tab, if you don't know what you are doing!
- 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. In eclipse, you have to adjust the reset setting:
- 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
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