Welcome! Log In Create A New Profile

Advanced

Running stepper motors with encoders with RAMPS

Posted by Pawan 
Running stepper motors with encoders with RAMPS
April 29, 2016 09:47AM
Is it possible to control stepper motors with encoders in closed loop with RAMPS 1.4?
Re: Running stepper motors with encoders with RAMPS
April 29, 2016 09:55AM
For closedd loop you need a processor with enough power to run the various loops. The Mega256 just doesn't cut the cake here, you would need an ARM based 32 Bit board and of course a firmware and shield that supports the encoders and loops.
I am not aware of any commonly available 3D printer electronics that offers this.


[www.bonkers.de]
[merlin-hotend.de]
[www.hackerspace-ffm.de]
Re: Running stepper motors with encoders with RAMPS
April 29, 2016 11:12AM
The Mod-T printer uses DC motors with encoders, this was mentioned in the ServoLolu thread, but I don't know what electronics is used.


What is Open Source?
What is Open Source Hardware?
Open Source in a nutshell: the Four Freedoms
CC BY-NC is not an Open Source license
Re: Running stepper motors with encoders with RAMPS
April 29, 2016 11:31AM
I basically want to make an automation equipment (not 3D printer) using 5 encoded stepper motors. I was thinking if I can use RAMPS plus MEGA with writing my own little code. Any clues if possible with RAMPS?
Re: Running stepper motors with encoders with RAMPS
April 29, 2016 12:11PM
The mega is to small and the ramps has no options to connect the encodrs, so no


[www.bonkers.de]
[merlin-hotend.de]
[www.hackerspace-ffm.de]
VDX
Re: Running stepper motors with encoders with RAMPS
April 29, 2016 12:43PM
... I've done this for a test with an ArduinoDUE, soldering a plug for the encoder on a prototyping shield.

The standard arduino servo-libraries aren't very fast - IIRC I've got below 200kHz 'reaction' time ... needed more than 300 eye rolling smiley

So if oyu want a 5-axis encoding/controlling software, you'll have to write it from scratch to get usefull speeds even with the Due ...


Viktor
--------
Aufruf zum Projekt "Müll-freie Meere" - [reprap.org] -- Deutsche Facebook-Gruppe - [www.facebook.com]

Call for the project "garbage-free seas" - [reprap.org]
Re: Running stepper motors with encoders with RAMPS
April 29, 2016 01:39PM
Teensy 3.2 with SPI controlled encoders may be fast enough.
Re: Running stepper motors with encoders with RAMPS
April 30, 2016 11:32AM
Running stepper motors closed-loop is more complicated than simply adding more steps if you get out of position. This is because when moving at higher speeds, simply adding more steps will just cause the motor to keep skipping steps. Instead, most closed-loop stepper controllers commutate the steppers like you would a brushless DC servo motor, and then run a PID servo control loop that modulates the drive current to the motor to control the position. This is what the Leadshine and Quicksilver closed-loop stepper systems do. The commutation process is a lot more demanding, computationally, than just doing PID servo control.

You might also be interested in this closed-loop stepper controller that I worked on for a bit, but abandoned for lack of interest.
Re: Running stepper motors with encoders with RAMPS
April 30, 2016 11:39AM
Quote
bobc
The Mod-T printer uses DC motors with encoders, this was mentioned in the ServoLolu thread, but I don't know what electronics is used.

The MOD-t uses conventional DC motors and encoders rather than closed-loop steppers, and it uses a proprietary controller board and firmware. In the Servolulu thread, I replaced the MOD-t controller board with a Teensylu board and 4 of my Servolulu drivers.
Re: Running stepper motors with encoders with RAMPS
April 30, 2016 12:03PM
Quote
LoboCNC
Quote
bobc
The Mod-T printer uses DC motors with encoders, this was mentioned in the ServoLolu thread, but I don't know what electronics is used.

The MOD-t uses conventional DC motors and encoders rather than closed-loop steppers, and it uses a proprietary controller board and firmware. In the Servolulu thread, I replaced the MOD-t controller board with a Teensylu board and 4 of my Servolulu drivers.

Right. Can you tell what CPU/DSP is used on the original board, or have they scrubbed the markings?


What is Open Source?
What is Open Source Hardware?
Open Source in a nutshell: the Four Freedoms
CC BY-NC is not an Open Source license
Re: Running stepper motors with encoders with RAMPS
April 30, 2016 12:39PM
Quote
bobc
Right. Can you tell what CPU/DSP is used on the original board, or have they scrubbed the markings?

The board has an STM32F103 processor.
Sorry, only registered users may post in this forum.

Click here to login