rombrew / phobia

Phobia Motor Controller
GNU General Public License v3.0
50 stars 21 forks source link

When realese the stabile step/dir? #3

Open artayasa opened 10 months ago

artayasa commented 10 months ago

Hello sir im interestkng with your project. Im still learn how to control pmsm motor with stm32 step/dir interface. And i see your project but on the description said still experimental the step dir sir. When it will realese the stabile??

rombrew commented 10 months ago

I have no test bed with any STEP/DIR interface. But I will keep in mind your request.

artayasa commented 10 months ago

I have no test bed with any STEP/DIR interface. But I will keep in mind you request.

Thank you sir, ihope in the end of this yeqr already fix🙏🙏

artayasa commented 6 months ago

in

Hi mate it posible used stm32 g431??

rombrew commented 6 months ago

Hi mate it posible used stm32 g431??

No, I have not ported pmc code to g431.

Btw, you can try to configure STEP/DIR interface, although it is too early to say it is stable.

artayasa commented 3 months ago

Hi mate it posible used stm32 g431?? No, I have not ported pmc code to g431.

Btw, you can try to configure STEP/DIR interface, although it is too early to say it is stable.

Now already stable? I want to makeit for my pmsm motor 200v 4A sir Is posible to use this sir?? I want to rectifier ac220v and become dc 310v, with pwm around 60% we can get avarage 190vdc out right it posoble. By your frimeware?

And iam planing to used IPM IGBT sir, so can progide 600v 30A max

rombrew commented 3 months ago

Try to test power stages and STEP/DIR interface separately. Do not mix everything together.

artayasa commented 3 months ago

Try to test power stages and STEP/DIR interface separately. Do not mix everything together.

What do u mean sir?? like make the power stage first and test it? After that if work, try the step/dir interface sir??. If yes how to change pwm LIN and HIN for driver mosfet/or IGBT to max 60%duty cycle sir?

And how to know step/rev value? It take from ppr encorder sir??

And also i see folder stm32f4xx. It posoble to used other f4 chip? Like f401, f411??

artayasa commented 3 months ago

Try to test power stages and STEP/DIR interface separately. Do not mix everything together.

IMG_20240717_172751 Hi mate it the step/dir with speed loop?? Not position loop sir?? Because i want to control position motor by step/dir. Same like stepper, i want to use for cnc machine

rombrew commented 3 months ago

There are many options. Typically you should configure in this order: 1) Sensorless motor operation in speed control loop (probe the motor and try to run it); 2) Add encoder feedback, adjust parameters and try to run in speed control loop; 3) Switch to position control loop and try to move the position setpoint from GUI or CLI; 4) Configure input signal interface (STEP/DIR) to map it on the position setpoint; 5) Install the motor to the target environment or testbench with load and disturbances, try to work it.

That note from your img says that 2 should be done before 3.

artayasa commented 3 months ago

There are many options. Typically you should configure in this order: 1) Sensorless motor operation in speed control loop (probe the motor and try to run it); 2) Add encoder feedback, adjust parameters and try to run in speed control loop; 3) Switch to position control loop and try to move the position setpoint from GUI or CLI; 4) Configure input signal interface (STEP/DIR) to map it on the position setpoint; 5) Install the motor to the target environment or testbench with load and disturbances, try to work it.

That note from your img says that 2 should be done before 3.

Oke sir noted. And i have is broken servo drive, i want to used stm32f405 and your frimeware ( also for the curent sense) but my motor is 200v. So how to set that out to motor is 200v?? Because i used ac220v with rectifier become 310v dc. If i can run on max pwm 60% i will get 190v output sir. How to doit on your code?? Because if i run 50v or less, the motor not perform with perfect sir.

rombrew commented 3 months ago

Make sure you hardware measurement range is large enough. Adjust hw description (src/hal/hw/...) in firmware code appropriately (look into many examples). Thus you will be able to manipulate with large voltages in configuration.

artayasa commented 3 months ago

Make sure you hardware measurement range is large enough. Adjust hw description (src/hal/hw/...) in firmware code appropriately (look into many examples). Thus you will be able to manipulate with large voltages in configuration.

Do u mean the curent sense sir?? Iy yes do u have recomended hardware for it?? For other componen i will used broker ac servo drive 220v sir. So i think all will be fine only for curent sense, and bus voltage sense sir i need to coustemit.