repetier / Repetier-Firmware

Firmware for Arduino based RepRap 3D printer.
812 stars 734 forks source link

Closed loop with stepper motors #690

Open manuela96c opened 7 years ago

manuela96c commented 7 years ago

Hi! Im working on a cartesian printer with stepper motors and linear optical encoders to close the loop. Im new in all about the firmware, so there are so many files and my issue is to find or create the right files to implement the control. Any idea?

Thanks!

repetier commented 7 years ago

We do not use closed loop systems. These are overly complicated and would most probably also slow down positioning. To use such a pro feature it is more adviseable to outsource this task to s separate cpu board getting the step/dir/enable signals and just ensuring position requested is hold. Or directly use a motor with such support buildin.

In firmware we only have a interrupt to set next step and for missing power we even combin 2 or 4 steps when going fast to get signals send. For a closed loop you would need to also analyse encoder signals fast enough and do the extra steps.