Skip to content

Latest commit

 

History

History
61 lines (42 loc) · 2.49 KB

README.md

File metadata and controls

61 lines (42 loc) · 2.49 KB

SPWM motor control with L6234 driver

Smooth FOC like control with torque and speed control.

Information

Install repo

git clone --recurse-submodules git@github.com:kaepek/spwm-motor-control.git
npm run build

Speed control:

Open loop code (no feedback)

Closed loop (AS5147P rotary encoder , Teensy 4.0 microcontroller, l6234 motor driver)

Position control:

Open loop code (no feedback)

Closed loop code (rotary encoder AS5147P)

Controller install

  • cd external/kaepek-io
  • npm install
  • npm link

Credits/Useful links:

How to prepare the Teensy40 platform:

  • Install Arduino IDE v1.8.19
  • Install Teensyduino v2.1.0
  • Install TeensyTimerTool library by opening up Arduino IDE click the "Sketch" menu item, go down to "Include Library" and click "Manage Libraries...". Enter in the filter you search the string "TeensyTimerTool", select the correct version "Version 1.3.0" and click the install button.

General dependancies: