Help makelangelo with ramps

Shop Forum Makelangelo Polargraph Art Robot Help makelangelo with ramps

Viewing 21 posts - 1 through 21 (of 21 total)
  • Author
    Posts
  • #9370
    Anonymous
    Inactive

    Hi
    I need configure the firmware for ramps, but not have lines for motherboard = 2
    what value i write for mega 2560 + ramps ?

    thanks.

    //#define MOTHERBOARD 1 // RUMBA
    #define MOTHERBOARD 2 // RAMPS

    #if MOTHERBOARD == 1
    #define MOTOR_0_DIR_PIN (16)
    #define MOTOR_0_STEP_PIN (17)
    #define MOTOR_0_ENABLE_PIN (48)
    #define MOTOR_0_LIMIT_SWITCH_PIN (37)

    #define MOTOR_1_DIR_PIN (47)
    #define MOTOR_1_STEP_PIN (54)
    #define MOTOR_1_ENABLE_PIN (55)
    #define MOTOR_1_LIMIT_SWITCH_PIN (36)

    // alternate pins in case you want to do something interesting
    #define MOTOR_2_DIR_PIN (56)
    #define MOTOR_2_STEP_PIN (57)
    #define MOTOR_2_ENABLE_PIN (62)
    #define MOTOR_2_LIMIT_SWITCH_PIN (35)

    #define MOTOR_3_DIR_PIN (22)
    #define MOTOR_3_STEP_PIN (23)
    #define MOTOR_3_ENABLE_PIN (27)
    #define MOTOR_3_LIMIT_SWITCH_PIN (34)

    #define MOTOR_4_DIR_PIN (25)
    #define MOTOR_4_STEP_PIN (26)
    #define MOTOR_4_ENABLE_PIN (24)
    #define MOTOR_4_LIMIT_SWITCH_PIN (33)

    #define MOTOR_5_DIR_PIN (28)
    #define MOTOR_5_STEP_PIN (29)
    #define MOTOR_5_ENABLE_PIN (39)
    #define MOTOR_5_LIMIT_SWITCH_PIN (32)

    #endif

    #if MOTHERBOARD == 2

    #endif

    #10471
    Anonymous
    Inactive

    bonjour

    pour ramp il faut definir les variables a la fin du code

    sinon ca peut pas fonctionner !

    #10472
    Anonymous
    Inactive

    bonjour

    pour ramp il faut definir les variables a la fin du code

    sinon ca peut pas fonctionner !

    la juste les variables pour motherboard1

    utilise les variables du code pour ramp1.4 “polargraph uk

    ca fonctionne a quelques details a modifier

    #10474
    Dan
    Keymaster

    Uh…. if you see MOTHERBOARD=2 then your version of the firmware is very very old.

    RAMPS support has existed in the the Makelangelo firmware for some time now.

    I’m looking in firmware_rumba/configure.h at line ~147

    #if MOTHERBOARD == BOARD_RAMPS
    #define MOTOR_0_DIR_PIN (55)
    #define MOTOR_0_STEP_PIN (54)
    #define MOTOR_0_ENABLE_PIN (38)
    #define MOTOR_0_LIMIT_SWITCH_PIN (3) /* X min */

    #define MOTOR_1_DIR_PIN (61)
    #define MOTOR_1_STEP_PIN (60)
    #define MOTOR_1_ENABLE_PIN (56)
    #define MOTOR_1_LIMIT_SWITCH_PIN (14) /* Y min */

    #11357
    Anonymous
    Inactive

    Hi there,

    I am in urgent need of help with compiling the sketch for Ramps to my mega with RAMPS1.4.

    I am new to arduino and have absolutely no idea what I am doing wrong (believe me I have been scouring tutorials to understand) to get this message each time I verify the sketch:

    Arduino: 1.6.8 (Windows 7), Board: “Arduino/Genuino Mega or Mega 2560, ATmega2560 (Mega 2560)”

    In file included from C:\Users\Home\Documents\Arduino\firmware_rumba\firmware_rumba.ino:13:0:

    sketch\configure.h:106:0: warning: “MOTHERBOARD” redefined [enabled by default]

    #define MOTHERBOARD BOARD_RAMPS

    ^

    sketch\configure.h:100:0: note: this is the location of the previous definition

    #define MOTHERBOARD BOARD_RUMBA

    ^

    collect2.exe: fatal error: cannot find ‘ld’

    compilation terminated.

    exit status 1
    Error compiling for board Arduino/Genuino Mega or Mega 2560.

    I know that this must be a basic problem but I am really struggling with it and hope someone would be kind enough to lend me a hand.

    Thankyou

    Following is my congifure.h file to help:

    #ifndef CONFIGURE_H
    #define CONFIGURE_H
    //——————————————————————————
    // Makelangelo – supports raprapdiscount RUMBA controller
    // [email protected] 2013-12-26
    // RUMBA should be treated like a MEGA 2560 Arduino.
    //——————————————————————————
    // Copyright at end of file. Please see
    // http://www.github.com/MarginallyClever/Makelangelo for more information.

    //——————————————————————————
    // Sanity check
    //——————————————————————————
    #if defined(__AVR_ATmega328P__)
    // wrong board type set
    #error This code is not meant for Arduino UNO boards.
    #endif

    //——————————————————————————
    // CONSTANTS
    //——————————————————————————
    #define MAKELANGELO_HARDWARE_VERSION 3

    //#define VERBOSE (1) // add to get a lot more serial output.
    //#define HAS_SD // comment this out if there is no SD card
    //#define HAS_LCD // comment this out if there is no SMART LCD controller
    //#define USE_LIMIT_SWITCH (1) // Comment out this line to disable findHome and limit switches

    // machine style
    #define POLARGRAPH2 // uncomment this line if you use a polargraph like the Makelangelo
    //#define COREXY // uncomment this line if you use a CoreXY setup.
    //#define TRADITIONALXY // uncomment this line if you use a traditional XY setup.
    //#define ZARPLOTTER // uncomment this line if you use a 4 motor ZAR plotter

    // servo angles for pen control
    #define PEN_UP_ANGLE (90)
    #define PEN_DOWN_ANGLE (10) // Some steppers don’t like 0 degrees

    // for serial comms
    #define BAUD (57600) // How fast is the Arduino talking?
    #define MAX_BUF (64) // What is the longest message Arduino can store?

    #define MICROSTEPS (16.0) // microstepping on this microcontroller
    #define STEPS_PER_TURN (400 * MICROSTEPS) // default number of steps per turn * microsteps

    #define MAX_FEEDRATE (9000.0) // depends on timer interrupt & hardware
    #define MIN_FEEDRATE (100)
    #define DEFAULT_FEEDRATE (6000.0)
    #define DEFAULT_ACCELERATION (250)

    #define STEP_DELAY (50) // delay between steps, in milliseconds, when doing fixed tasks like homing

    #define NUM_AXIES (3) // x,y,z
    #define NUM_TOOLS (6)
    #define MAX_SEGMENTS (32) // number of line segments to buffer ahead. must be a power of two.
    #define SEGMOD(x) ((x)&(MAX_SEGMENTS-1))

    // for arc directions
    #define ARC_CW (1)
    #define ARC_CCW (-1)
    #define SEGMENT_PER_CM_LINE (2) // lines are split into segments. How long are the segments?
    #define SEGMENT_PER_CM_ARC (3) // Arcs are split into segments. How long are the segments?

    #ifdef HAS_LCD
    #define HAS_SD
    #endif

    // SD card settings
    #define SDPOWER -1
    #define SDSS 53
    #define SDCARDDETECT 49

    #define LCD_HEIGHT 4
    #define LCD_WIDTH 20

    #define BLEN_C 2
    #define BLEN_B 1
    #define BLEN_A 0
    #define encrot0 0
    #define encrot1 2
    #define encrot2 3
    #define encrot3 1

    // Board types. Don’t change this!
    #define BOARD_RUMBA 1
    #define BOARD_RAMPS 2
    #define BOARD_SANGUINOLULU 3

    #if MAKELANGELO_HARDWARE_VERSION == 5
    #define USE_LIMIT_SWITCH (1) // Comment out this line to disable findHome and limit switches
    #define MOTHERBOARD BOARD_RUMBA
    #endif
    #if MAKELANGELO_HARDWARE_VERSION == 3
    #undef USE_LIMIT_SWITCH
    #define MOTHERBOARD BOARD_RUMBA
    #endif

    // Your choice of board
    //#define MOTHERBOARD BOARD_RUMBA
    #define MOTHERBOARD BOARD_RAMPS
    //#define MOTHERBOARD BOARD_SANGUINOLULU

    #if MOTHERBOARD == BOARD_RUMBA
    #define MOTOR_0_DIR_PIN (16)
    #define MOTOR_0_STEP_PIN (17)
    #define MOTOR_0_ENABLE_PIN (48)
    #define MOTOR_0_LIMIT_SWITCH_PIN (37)

    #define MOTOR_1_DIR_PIN (47)
    #define MOTOR_1_STEP_PIN (54)
    #define MOTOR_1_ENABLE_PIN (55)
    #define MOTOR_1_LIMIT_SWITCH_PIN (36)

    // alternate pins in case you want to do something interesting
    #define MOTOR_2_DIR_PIN (56)
    #define MOTOR_2_STEP_PIN (57)
    #define MOTOR_2_ENABLE_PIN (62)
    #define MOTOR_2_LIMIT_SWITCH_PIN (35)

    #define MOTOR_3_DIR_PIN (22)
    #define MOTOR_3_STEP_PIN (23)
    #define MOTOR_3_ENABLE_PIN (27)
    #define MOTOR_3_LIMIT_SWITCH_PIN (34)

    #define MOTOR_4_DIR_PIN (25)
    #define MOTOR_4_STEP_PIN (26)
    #define MOTOR_4_ENABLE_PIN (24)
    #define MOTOR_4_LIMIT_SWITCH_PIN (33)

    #define MOTOR_5_DIR_PIN (28)
    #define MOTOR_5_STEP_PIN (29)
    #define MOTOR_5_ENABLE_PIN (39)
    #define MOTOR_5_LIMIT_SWITCH_PIN (32)

    #define NUM_SERVOS (1)
    #define SERVO0_PIN (5)

    #define LIMIT_SWITCH_PIN_LEFT (MOTOR_0_LIMIT_SWITCH_PIN)
    #define LIMIT_SWITCH_PIN_RIGHT (MOTOR_1_LIMIT_SWITCH_PIN)

    // Smart controller settings
    #define BEEPER 44
    #define LCD_PINS_RS 19
    #define LCD_PINS_ENABLE 42
    #define LCD_PINS_D4 18
    #define LCD_PINS_D5 38
    #define LCD_PINS_D6 41
    #define LCD_PINS_D7 40

    // Encoder rotation values
    #define BTN_EN1 11
    #define BTN_EN2 12
    #define BTN_ENC 43

    #endif

    #if MOTHERBOARD == BOARD_RAMPS
    #define MOTOR_0_DIR_PIN (55)
    #define MOTOR_0_STEP_PIN (54)
    #define MOTOR_0_ENABLE_PIN (38)
    #define MOTOR_0_LIMIT_SWITCH_PIN (3) /* X min */

    #define MOTOR_1_DIR_PIN (61)
    #define MOTOR_1_STEP_PIN (60)
    #define MOTOR_1_ENABLE_PIN (56)
    #define MOTOR_1_LIMIT_SWITCH_PIN (14) /* Y min */

    // alternate pins in case you want to do something interesting
    #define MOTOR_2_DIR_PIN (48)
    #define MOTOR_2_STEP_PIN (46)
    #define MOTOR_2_ENABLE_PIN (62)
    #define MOTOR_2_LIMIT_SWITCH_PIN (18) /* Z Min */

    #define MOTOR_3_DIR_PIN (28)
    #define MOTOR_3_STEP_PIN (26)
    #define MOTOR_3_ENABLE_PIN (24)
    #define MOTOR_3_LIMIT_SWITCH_PIN (2) /* X Max */

    #define MOTOR_4_DIR_PIN (34)
    #define MOTOR_4_STEP_PIN (36)
    #define MOTOR_4_ENABLE_PIN (30)
    #define MOTOR_4_LIMIT_SWITCH_PIN (15) /* Y Max */

    #define NUM_SERVOS (4)
    #define SERVO0_PIN (11) /* Servo 1 */
    #define SERVO1_PIN (6)
    #define SERVO2_PIN (5)
    #define SERVO3_PIN (4)

    // Smart controller settings
    #define BEEPER 37 /* Pin on SMART Adapter */
    #define LCD_PINS_RS 16 /* Pin on SMART Adapter */
    #define LCD_PINS_ENABLE 17 /* Pin on SMART Adapter */
    #define LCD_PINS_D4 23 /* Pin on SMART Adapter */
    #define LCD_PINS_D5 25 /* Pin on SMART Adapter */
    #define LCD_PINS_D6 27 /* Pin on SMART Adapter */
    #define LCD_PINS_D7 29 /* Pin on SMART Adapter */

    // Encoder rotation values
    #define BTN_EN1 31 /* Pin on SMART Adapter */
    #define BTN_EN2 33 /* Pin on SMART Adapter */
    #define BTN_ENC 35 /* Pin on SMART Adapter */

    #define KILL_PIN 41 /* Pin on SMART Adapter */
    #endif

    #if MOTHERBOARD == BOARD_SANGUINOLULU
    #define MOTOR_0_DIR_PIN (21)
    #define MOTOR_0_STEP_PIN (15)
    #define MOTOR_0_ENABLE_PIN (14)
    #define MOTOR_0_LIMIT_SWITCH_PIN (18)

    #define MOTOR_1_DIR_PIN (23)
    #define MOTOR_1_STEP_PIN (22)
    #define MOTOR_1_ENABLE_PIN (14)
    #define MOTOR_1_LIMIT_SWITCH_PIN (19)

    // TODO: if ZARPLOTTER & SANGUINOLULU throw a compile error, not enough motors.

    #define NUM_SERVOS (1)
    #define SERVO0_PIN (12)
    #endif

    //——————————————————————————
    // EEPROM MEMORY MAP
    //——————————————————————————
    #define EEPROM_VERSION 7 // Increment EEPROM_VERSION when adding new variables
    #define ADDR_VERSION 0 // 0..255 (1 byte)
    #define ADDR_UUID (ADDR_VERSION+1) // long – 4 bytes
    #define ADDR_PULLEY_DIA1 (ADDR_UUID+4) // float – 4 bytes
    #define ADDR_PULLEY_DIA2 (ADDR_PULLEY_DIA1+4) // float – 4 bytes
    #define ADDR_LEFT (ADDR_PULLEY_DIA2+4) // float – 4 bytes
    #define ADDR_RIGHT (ADDR_LEFT+4) // float – 4 bytes
    #define ADDR_TOP (ADDR_RIGHT+4) // float – 4 bytes
    #define ADDR_BOTTOM (ADDR_TOP+4) // float – 4 bytes
    #define ADDR_INVL (ADDR_BOTTOM+4) // bool – 1 byte
    #define ADDR_INVR (ADDR_INVL+1) // bool – 1 byte
    #define ADDR_HOMEX (ADDR_INVR+1) // float – 4 bytes
    #define ADDR_HOMEY (ADDR_HOMEX+4) // float – 4 bytes
    #define ADDR_CALIBRATION_LEFT (ADDR_HOMEY+4) // float – 4 bytes
    #define ADDR_CALIBRATION_RIGHT (ADDR_CALIBRATION_LEFT+4) // float – 4 bytes

    //——————————————————————————
    // TIMERS
    //——————————————————————————
    // for timer interrupt control
    #define CLOCK_FREQ (16000000L)
    #define MAX_COUNTER (65536L)
    // time passed with no instruction? Make sure PC knows we are waiting.
    #define TIMEOUT_OK (1000)

    // optimize code, please
    #define FORCE_INLINE __attribute__((always_inline)) inline

    #ifndef CRITICAL_SECTION_START
    #define CRITICAL_SECTION_START unsigned char _sreg = SREG; cli();
    #define CRITICAL_SECTION_END SREG = _sreg;
    #endif //CRITICAL_SECTION_START

    //——————————————————————————
    // STRUCTURES
    //——————————————————————————
    // for line()
    typedef struct {
    long step_count;
    long delta; // number of steps to move
    long absdelta;
    int dir;
    float delta_normalized;
    } Axis;

    typedef struct {
    int step_pin;
    int dir_pin;
    int enable_pin;
    int limit_switch_pin;
    int limit_switch_state;
    int reel_in;
    int reel_out;
    } Motor;

    typedef struct {
    Axis a[NUM_AXIES];
    int steps_total;
    int steps_taken;
    int accel_until;
    int decel_after;
    unsigned short feed_rate_max;
    unsigned short feed_rate_start;
    unsigned short feed_rate_start_max;
    unsigned short feed_rate_end;
    char nominal_length_flag;
    char recalculate_flag;
    char busy;
    } Segment;

    //——————————————————————————
    // GLOBALS
    //——————————————————————————

    extern Segment line_segments[MAX_SEGMENTS];
    extern Segment *working_seg;
    extern volatile int current_segment;
    extern volatile int last_segment;
    extern float acceleration;
    extern Motor motors[NUM_AXIES];

    #endif // CONFIGURE_H

    #11358
    Dan
    Keymaster

    collect2.exe: fatal error: cannot find ‘ld’

    is your real problem. I don’t know where that’s coming from. never seen it before.
    The only mention I find online says “try reinstalling arduino IDE”.

    #11370
    Anonymous
    Inactive

    Hi Dan,

    Thanks alot for your help. Seems to be working now- you have saved me a head of hair.

    Can I quickly clarify that currently the RAMPS full graphic smart controller 12864 is still not supported with the current firmware?

    Thanks again for your help 🙂

    #11372
    Dan
    Keymaster

    I’ve never used that controller so I doubt it is supported. As you can see, no one saved me a head of hair. Pay it forward! 🙂

    If you were to send in a pull request to add support we would include it and add you to the makelangelo “about” dialog as a contributor.

    #11386
    Anonymous
    Inactive

    Cool thanks

    I Saw William posted a video of one in action (post #8897), hopefully i can get a reply from him.

    Otherwise could I confirm that the 20×4 LCD Controller works? (with SD card functionality)

    Sorry for the shallow questions, I’m new to this and really appreciate the help.

    Thanks once again

    #11387
    Dan
    Keymaster

    You’d probably need to poke the firmware to tell it there are 4 lines instead of 2.

    While LCD panels *look* the same, the way they turn signals into pictures can be very very different. So… only testing will tell.

    #12181
    Anonymous
    Inactive

    Hey guys new to the Forum. I just tried to upload the new 7.0.0 and can’t get it to verify. I am getting this error message can you please help.

    firmware_rumba.ino: In function ‘float parseNumber(char, float)’:
    firmware_rumba.ino:583:13: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    Error compiling.

    #12543
    Dan
    Keymaster

    are you running the latest firmware and arduino? I’ve seen and fixed this in the past. The code should work but Arduino IDE is being very picky here, so I massaged the code to make Arduino happy.

    #14389
    Anonymous
    Inactive

    Hey guys. Greetings from Indonesia. So i currently making Makelangelo for FabLab Bandung’s project. I set it up using RAMPS on 7.11 Makelangelo Firmware and Software. I can connect the machine to the software and make a simulation without a drawing setup just to test the motors and servo.. But I can’t make the servo turn. I don’t know why, but the servo works fine with the example sketches on Arduino IDE. So help anybody.. Thanks.

    #14390
    Dan
    Keymaster

    check the firmware setting for the pin number. What pin are you connecting the servo? What pin is used in the firmware? They must match.

    #14391
    Anonymous
    Inactive

    #if MOTHERBOARD == BOARD_RAMPS
    #define MOTOR_0_DIR_PIN (55)
    #define MOTOR_0_STEP_PIN (54)
    #define MOTOR_0_ENABLE_PIN (38)
    #define MOTOR_0_LIMIT_SWITCH_PIN (3) /* X min */

    #define MOTOR_1_DIR_PIN (61)
    #define MOTOR_1_STEP_PIN (60)
    #define MOTOR_1_ENABLE_PIN (56)
    #define MOTOR_1_LIMIT_SWITCH_PIN (14) /* Y min */

    // alternate pins in case you want to do something interesting
    #define MOTOR_2_DIR_PIN (48)
    #define MOTOR_2_STEP_PIN (46)
    #define MOTOR_2_ENABLE_PIN (62)
    #define MOTOR_2_LIMIT_SWITCH_PIN (18) /* Z Min */

    #define MOTOR_3_DIR_PIN (28)
    #define MOTOR_3_STEP_PIN (26)
    #define MOTOR_3_ENABLE_PIN (24)
    #define MOTOR_3_LIMIT_SWITCH_PIN (2) /* X Max */

    #define MOTOR_4_DIR_PIN (34)
    #define MOTOR_4_STEP_PIN (36)
    #define MOTOR_4_ENABLE_PIN (30)
    #define MOTOR_4_LIMIT_SWITCH_PIN (15) /* Y Max */

    #define NUM_SERVOS (1)
    #define SERVO0_PIN (11) /* Servo 1 */

    I modify the code, so i am just using pin 11 and i’m connecting the servo to pin 11.. is there any place in the firmware that define the servo pin?

    #14392
    Anonymous
    Inactive

    SOLVED! I think these Chinese RAMPS do not support servo use.. so i move it to endstop pin (i use pin 3).. Thank you for your response.. Hope this will help others with the same problem.. Thank you Dan

    #14639
    clatos2000
    Participant

    Hello everyone, excuse my bad english (google translatoor). I tell them that I am trying to build makelangelo with ramps and reach a dead point from which I can not advance. Install the latest firmware correctly, until everything is correct, the data appear on the LCD screen and read the program from the SD card correctly.
    I could set the ramps in the firmware, and the lcd, also cancel the limit switches (since I do not use them). But when connecting the motors to do some tests the problems began. I try to independently move each of the motors (x, y) but when I move one of them, the other one moves at the same time, I mean, I move “x motor” and move “x + y motors” and the drivers are heated to the extreme. My question is this: will the pins be incorrectly set in the firmware? (This should not be so because they should already be correct since the firmware is for ramps, I’m wrong?

    Please, I need help to continue !!

    I copy the configuration of boards_ramp.h in case someone needs to look at it:

    ————————-
    #ifndef BOARD_RAMPS_H
    #define BOARD_RAMPS_H
    //——————————————————————————
    // Makelangelo – firmware for various robot kinematic models
    // [email protected] 2013-12-26
    // Copyright at end of file. Please see
    // http://www.github.com/MarginallyClever/makelangeloFirmware for more information.
    //——————————————————————————

    #if MOTHERBOARD == BOARD_RAMPS
    // wrong board type set
    #ifndef __AVR_ATmega2560__
    #error “Oops! Make sure you have ‘Arduino Mega 2560’ selected from the ‘Tools -> Boards’ menu.”
    #endif

    #define MAX_MOTORS (5)

    #define MOTOR_0_DIR_PIN (55)
    #define MOTOR_0_STEP_PIN (54)
    #define MOTOR_0_ENABLE_PIN (38)
    #define MOTOR_0_LIMIT_SWITCH_PIN (3) /* X min */

    #define MOTOR_1_DIR_PIN (61)
    #define MOTOR_1_STEP_PIN (60)
    #define MOTOR_1_ENABLE_PIN (56)
    #define MOTOR_1_LIMIT_SWITCH_PIN (14) /* Y min */

    #define MOTOR_2_DIR_PIN (48)
    #define MOTOR_2_STEP_PIN (46)
    #define MOTOR_2_ENABLE_PIN (62)
    #define MOTOR_2_LIMIT_SWITCH_PIN (18) /* Z Min */

    #define MOTOR_3_DIR_PIN (28)
    #define MOTOR_3_STEP_PIN (26)
    #define MOTOR_3_ENABLE_PIN (24)
    #define MOTOR_3_LIMIT_SWITCH_PIN (2) /* X Max */

    #define MOTOR_4_DIR_PIN (34)
    #define MOTOR_4_STEP_PIN (36)
    #define MOTOR_4_ENABLE_PIN (30)
    #define MOTOR_4_LIMIT_SWITCH_PIN (15) /* Y Max */

    #define MAX_BOARD_SERVOS (4)
    #define SERVO0_PIN (11) /* Servo 1 */
    #define SERVO1_PIN (6)
    #define SERVO2_PIN (5)
    #define SERVO3_PIN (4)

    #define LIMIT_SWITCH_PIN_LEFT (MOTOR_0_LIMIT_SWITCH_PIN)
    #define LIMIT_SWITCH_PIN_RIGHT (MOTOR_1_LIMIT_SWITCH_PIN)

    // Smart controller settings
    #define BEEPER 37 /* Pin on SMART Adapter */
    #define LCD_PINS_RS 16 /* Pin on SMART Adapter */
    #define LCD_PINS_ENABLE 17 /* Pin on SMART Adapter */
    #define LCD_PINS_D4 23 /* Pin on SMART Adapter */
    #define LCD_PINS_D5 25 /* Pin on SMART Adapter */
    #define LCD_PINS_D6 27 /* Pin on SMART Adapter */
    #define LCD_PINS_D7 29 /* Pin on SMART Adapter */

    // Encoder rotation values
    #define BTN_EN1 31 /* Pin on SMART Adapter */
    #define BTN_EN2 33 /* Pin on SMART Adapter */
    #define BTN_ENC 35 /* Pin on SMART Adapter */

    #define KILL_PIN 41 /* Pin on SMART Adapter */

    // SD card settings
    #define SDPOWER -1
    #define SDSS 53
    #define SDCARDDETECT 49

    #define LCD_HEIGHT 4
    #define LCD_WIDTH 20

    #define BLEN_C 2
    #define BLEN_B 1
    #define BLEN_A 0
    #define encrot0 0
    #define encrot1 2
    #define encrot2 3
    #define encrot3 1

    #endif

    #endif // BOARD_RAMPS_H
    ——————

    #14642
    clatos2000
    Participant

    I continue with the previous problem. Install the pap drivers as follows. Is it the right truth?
    http://www.ultramar.com.ar/maxresdefault.jpg
    I could not find an image with the indication of the connections in the ramps

    #14653
    clatos2000
    Participant

    Well, I update them. Change the motors and the drivers, they do not heat up anymore and everything seems to be in order. Check all the settings and I think they’re fine. But the motors seem to vibrate from one side to another and do not rotate continuously (for example, when moving the pencil down the two engines should rotate continuously and do not, just move a few steps and return randomly). Also check that the motors are well connected 1B, 1A, 2B, 2A and they are good (check it on other ramps, the one that controls the 3d printer’s motors, move correctly). So I think the problem should be in the freerate, microstepping or acceleration, but I can not make it work as you did.
    Can someone suggest me some advice? Thank you

    #14654
    Dan
    Keymaster

    if your motors vibrate when they should turn then you have one pair of wires crossed on the stepper motor. instead of ABCD try ABDC, ACBD, or BACD. You get the idea.

    #14661
    clatos2000
    Participant

    Ok, I’m going to try it today. The strange thing is that I tried these motors with their cables in the ramps of the 3d printer and they moved correctly (I understand that if they were wrong they would not turn on the 3d printer either). But I’ll try it and then I’ll tell you how it was.

Viewing 21 posts - 1 through 21 (of 21 total)
  • You must be logged in to reply to this topic.