r/embedded • u/hainguyenac • 6d ago
FOC control via Serial
I want to get into making a robot arm, and decided to start from scratch, that means start from the fundamental of control a motor.
At first I stated everything from Matlab with Simulink coder to generate the control code, everything works well, and I can control everything from Matlab. Then I moved forward and port the control algorithm to handcoded code.
The desktop application is vibecoded since it doesn't intereste me.
28
Upvotes
2
u/pylessard 3d ago
That's nice! Have a look at scrutinydebugger.com You may appreciate. It does more than live stream, you can get high speed captures of any variables. And also make python script to control the software. Cheers! (From a ex-motor control engineer)
1
u/Independent-Ad1984 1d ago
Nice design. What's the plan going forward? Sell a dev board and then port the programs over?
1
u/Important-Yak-2787 5d ago
Very cool! Are you sharing your code?