8000 control DC motors by PID · Issue #34 · naikymen/klipper-for-cnc · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
control DC motors by PID #34
Open
Open
@PaddyCube

Description

@PaddyCube

Is your feature request related to a problem? Please describe.
As in my other request stated, I'm building an embroidery machine. The needle gets controlled by a DC motor which runs at a given speed. The motor has been equipped with speed sensor at motor shaft. To reach a given speed as stitches/min, motor must run with a calculated speed.

I need a speed controller with PID which can be used to PWM the DC motor at the given speed. It must handle speed limits and acceleration. Also it must stop motor only (set speed 0), if a endstop (needle sensor) triggers.

Describe the solution you'd like
Maybe we can adjust the heatbed PWM code to run a DC motor? Instead of target temp, we can set target ticks of speed sensor (motor shaft)

Describe alternatives you've considered
Alternatively, we might can use code for closed loop stepper drivers?

Additional context
If I stop a motor (set speed to 0), it must be ensured that the motor always stops at a given position. In my case, needle must be always in upper most position (i.e. endstop must be reached)

For both requests I'm willing to contribute. At least I'm not familiar with code of klipper firmware so if someone can advise where to place it, I'll do this and send a PR for.

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0