Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When realese the stabile step/dir? #3

Open
artayasa opened this issue Jan 11, 2024 · 12 comments
Open

When realese the stabile step/dir? #3

artayasa opened this issue Jan 11, 2024 · 12 comments
Assignees
Labels
enhancement New feature or request

Comments

@artayasa
Copy link

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
Copy link
Owner

rombrew commented Jan 12, 2024

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

@rombrew rombrew self-assigned this Jan 12, 2024
@artayasa
Copy link
Author

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
Copy link
Author

artayasa commented May 6, 2024

in

Hi mate it posible used stm32 g431??

@rombrew
Copy link
Owner

rombrew commented May 9, 2024

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.

@rombrew rombrew added the enhancement New feature or request label May 9, 2024
@artayasa
Copy link
Author

artayasa commented Jul 17, 2024

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
Copy link
Owner

rombrew commented Jul 17, 2024

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

@artayasa
Copy link
Author

artayasa commented Jul 17, 2024

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
Copy link
Author

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
Copy link
Owner

rombrew commented Jul 20, 2024

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
Copy link
Author

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
Copy link
Owner

rombrew commented Jul 21, 2024

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
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants