Welcome! Log In Create A New Profile

Advanced

RAMPS 1.4 running Teacup. Pin assignment issue

Posted by wangfei 
RAMPS 1.4 running Teacup. Pin assignment issue
March 25, 2014 02:27AM
Hi there.

I have purchased a RAMPS 1,4 board + Arduino MEGA 2560 R3. I have uploaded Teacup firmware. Heatbed and Extruder heater seems to heat and temp reading seams about to be right. Extruder motor works right. BUT none of my X,Y or Z axis are moving at all. ( I have checked the different motors by hooking them up to the extruder and they all work, so it is not a matter of wrong cable connection.) So i started looking a little at the pin assignment. I think i have wrong pin assignment. I see pin 54 for the x axis, when i look at the RAMPS wiki, but on the Teacup is shows DIO01.

How to assign pins ?

Any help appreciated

Wang Fei

PS : I did post this some hrs. ago, but it kind of positioned it self in General !!! sorry for that
Re: RAMPS 1.4 running Teacup. Pin assignment issue
March 25, 2014 03:09AM
The pins are correct, just a different naming convention. (as I understand it)

Ramps has individual enable line for the stepper drivers

Those are commented out by default in config.ramps-v1.3.h

Enable all the stepper enable pins

Edited 1 time(s). Last edit at 03/25/2014 03:11AM by Dust.
Re: RAMPS 1.4 running Teacup. Pin assignment issue
March 25, 2014 04:04AM
Quote
Dust
Ramps has individual enable line for the stepper drivers

Those are commented out by default in config.ramps-v1.3.h

Enable all the stepper enable pins

Is this something matching for all RAMPS boards? Is it sufficient to simply remove the comment //'s? I'd make this permanent, then.


Generation 7 Electronics Teacup Firmware RepRap DIY
     
Re: RAMPS 1.4 running Teacup. Pin assignment issue
March 25, 2014 04:36AM
Hi Dust,

I did comment out as suggested. But no change as to movement.

I am carefully adding one connection at the time to check out everything is working before adding new steppers, fans etc.

I did not yet connect any endstops. Does that have an influence on the movement (in Repetier host) by +1mm or -1mm ?

Please see below part of my Config.h if i did it right :

This is for the RAMPS v1.3 shield
*/
// TODO: 20110813 SJL - the following two are not yet used&verified for RAMPS1.3
//#define TX_ENABLE_PIN DIO12
//#define RX_ENABLE_PIN DIO13

#define X_STEP_PIN AIO0
#define X_DIR_PIN AIO1
#define X_MIN_PIN DIO3
//#define X_MAX_PIN DIO2
#define X_ENABLE_PIN DIO38
//#define X_INVERT_DIR
//#define X_INVERT_MIN
//#define X_INVERT_MAX
//#define X_INVERT_ENABLE

#define Y_STEP_PIN AIO6
#define Y_DIR_PIN AIO7
#define Y_MIN_PIN DIO14
//#define Y_MAX_PIN DIO15
#define Y_ENABLE_PIN AIO2
#define Y_INVERT_DIR
//#define Y_INVERT_MIN
//#define Y_INVERT_MAX
//#define Y_INVERT_ENABLE

#define Z_STEP_PIN DIO46
#define Z_DIR_PIN DIO48
#define Z_INVERT_DIR
#define Z_MIN_PIN DIO18
//#define Z_MAX_PIN DIO19
#define Z_ENABLE_PIN AIO8
//#define Z_INVERT_MIN
//#define Z_INVERT_MAX
//#define Z_INVERT_ENABLE

#define E_STEP_PIN DIO26
#define E_DIR_PIN DIO28
#define E_ENABLE_PIN DIO24
//#define E_INVERT_DIR
#define E_INVERT_ENABLE

//#define PS_ON_PIN xxxx
//#define PS_MOSFET_PIN xxxx
//#define STEPPER_ENABLE_PIN xxxx
//#define STEPPER_INVERT_ENABLE

Wangfei
Re: RAMPS 1.4 running Teacup. Pin assignment issue
March 25, 2014 05:17AM
e works and E_INVERT_ENABLE is set

so try X_INVERT_ENABLE, Y_INVERT_ENABLE and Z_INVERT_ENABLE
Re: RAMPS 1.4 running Teacup. Pin assignment issue
March 26, 2014 08:01AM
Quote
wangfei
I did not yet connect any endstops. Does that have an influence on the movement (in Repetier host) by +1mm or -1mm ?

No, endstops don't influence movements. Except when homing (G28). And the host sending a G0 or G1 doesn't matter either.

Which brings me to another matter: using a host for such low level debugging isn't a good idea. Hosts can have all sorts of issues if things go unexpected. Using a serial terminal like PuTTY, GtkTerm, CoolTerm is much better.


Generation 7 Electronics Teacup Firmware RepRap DIY
     
Re: RAMPS 1.4 running Teacup. Pin assignment issue
March 27, 2014 10:17PM
That did the trick !!! Now i can move the axis as expected. Tks for advice.

But i was wondering about the connection between :

These ports numbers :

#define X_STEP_PIN AIO0
#define X_DIR_PIN AIO1
#define X_MIN_PIN DIO3
//#define X_MAX_PIN DIO2
#define X_ENABLE_PIN DIO38

and

// For RAMPS 1.4
#define X_STEP_PIN 54
#define X_DIR_PIN 55
#define X_ENABLE_PIN 38
#define X_MIN_PIN 3
#define X_MAX_PIN 2

wangfei
Sorry, only registered users may post in this forum.

Click here to login