MarlinFirmware / Marlin

Marlin is an optimized firmware for RepRap 3D printers based on the Arduino platform. Many commercial 3D printers come with Marlin installed. Check with your vendor if you need source code for your specific machine.
https://marlinfw.org
GNU General Public License v3.0
16.29k stars 19.24k forks source link

Regarding Brushless Motor #26607

Closed s145854 closed 10 months ago

s145854 commented 10 months ago

Is your feature request related to a problem? Please describe.

No response

Are you looking for hardware support?

No response

Describe the feature you want

Marlin firmware - CNC

Additional context

Hello, so this is how I want to create a CNC machine with brushless motors instead of stepper motors, I have the motors, they also have a driver that I can configure its firmware for, that means I have the source code of the driver

I have hall effect sensors And also an option for FOC or Six-Step

And I want to use Marlin firmware only I know that Marlin firmware supports stepper motors

The brushless motors I have and the drivers are really high quality and the power of the motor is 40 volts 750 watts

Of course I don't use more than 200 watts

And the motors in a closed loop, most things are already prepared in the motor driver code

The only thing left for me to know is how I can configure the Marlin firmware for the same brushless motor and by the way I have the source code of the driver of the motor

I would be happy to help and I'm even willing to pay money to the Marlin company to contact me and do it in a more private and careful manner, thank you very much!

EvilGremlin commented 10 months ago

Impossible with any CNC firmware - you must use step/dir interface or write whole new planner/motion code from scratch. So, no matter what your motors are, your drivers must use step/dir input. Closed loop with position encoders is supported, but this code is orphaned and i don't know anyone using it. And i suspect it allow for position overshoot. You're on your own there.

This Issue Queue is for Marlin bug reports and development-related issues, and we prefer not to handle user-support questions here. (As noted on this page.) For best results getting help with configuration and troubleshooting, please use the following resources:

After seeking help from the community, if the consensus points to a bug in Marlin, then you should post a bug report.

s145854 commented 10 months ago

So you actually mean that it is impossible to use brushless motors instead of stepper motors in Marlin firmware?

When I say brushless motor instead of stepper motor I mean machine axes X, Y, Z And ETC...

EvilGremlin commented 10 months ago

Well steppers are brushless motors. Point is control type, must be same step pulses. What you actually spin with these pulses in not firmware's buisiness, bit motor driver's one. There are plenty servo drives that se step/dir input but actual motor is 3-phase BLDC or even AC induction one.

s145854 commented 10 months ago

The type of my motor is 3 Phase BLDC And Voltage is DC

And i have 3 Phase brushless motor driver

I just need to know from you if it will fit me with Marlin firmware or if it doesn't fit that's what I need to know?

EvilGremlin commented 10 months ago

Again, it's all about motor driver. How's you driver is controlled? If it's not step/dir - then no, not a chance.

s145854 commented 10 months ago

Basically I can edit the pins of the motor driver through software

There is UART data transfer

Still, I'm sending you 2 pictures and a PDF. Look at it for a moment, please!

Because I know that a stepper motor works on discrete steps, on the other hand, 3 Phase brushless works continuously, you understand me, I understood that something with PWM is also needed 1 2 um2850-getting-started-with-the-evspin32g4-evspin32g4nh-stmicroelectronics.pdf

EvilGremlin commented 10 months ago

Nope, impossible. This is not motion controller at all, this is simple speed controller, completely irrelevant

github-actions[bot] commented 8 months ago

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.