SimpleFOC step/direction test

preview_player
Показать описание
SimpleFOC step direction test

Edit (November 26, 2021)

- Hardware

Motor: Ipower GM5208-24
Encoder: CUI devices AMT102-V
Driver: SimpleFOC shield v2.0.3

- Software

After this video was posted, I took a break on working with the simpleFOC/BLDC motor control and eventually stared a new project, mainly focusing on HMI/GUI. By the time editing the description, I'm having a hard time recalling what edits I've made to the code. However, the main source of the code was pulled from simpleFOC Docs.

I used a function generator to generate an arbitrary square wave pulses for 'step pin' and an arduino to toggle a pin, high or low for 'direction pin'.

I bet these parameters are no different from the code on simpleFOC Docs, but just in case someone needs them, here they are.

motor.PID_velocity.P = 0.2;
motor.PID_velocity.I = 20;
motor.PID_velocity.D = 0;

motor.LPF_velocity.Tf = 0.01;
motor.P_angle.P = 10;
Рекомендации по теме
Комментарии
Автор

Nice, I just did the same in one of my shorts. But I did the foc myself

SalimsWorkshop
Автор

Good start.
Some information would be great.
What are you using.
Thanks

simonlaker
Автор

Hi, as your said, we can using extenal square pulse generator to control step pin and using arduino to control dir pin, this one can or can not? Thanks

hoangkhuong
Автор

Any problem you have with ac cupling of that rigol scope?

siavasharash
Автор

You and I are the same age and into the same shit. Maybe you and I could collab or some?

treasuretotrash