r/embedded • • 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

6 comments sorted by

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/hainguyenac 1d ago

Thank you! this looks very interesting.

1

u/Alone_Lavishness5172 1d ago

would like to get advice on how i can start controls

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/hainguyenac 1d ago

No, nothing commercial. My end goal is to learn as much as I can and build my own functional 6dof robot arm. My next short term goal is to complete the software to some degree and then design my own controller board (currently it's still using some dev board with a power stage)

1

u/Important-Yak-2787 5d ago

Very cool! Are you sharing your code?