Welcome! Log In Create A New Profile

Advanced

Problems with Gen 6 Electronics

Posted by km28104 
Problems with Gen 6 Electronics
March 12, 2013 02:43PM
I've recently uploaded the latest version of Marlin FW to replace the sprinter FW on my Prusa Mendel 3d printer

using gen 6 electronics with opto end stops.

Neither FW would move the axises in the correct directions when using pronterface. Jogging in the plus direction on each axis moves axises towards the endstop - direction. Can't move them in the plus direction at all.

I've tried making changes in Config.H, but see no effect. Extruder moves in both directions.

I have no idea what to test next....Help!

Ken
Re: Problems with Gen 6 Electronics
March 13, 2013 03:31AM
Quote
km28104
I've tried making changes in Config.H, but see no effect
And did you UPLOAD the firmware to your controller after changing Config.H?

Quote
km28104
Extruder moves in both directions.
Well that is because the extruder does not have end stops.

Quote
km28104
Jogging in the plus direction on each axis moves axises towards the endstop - direction. Can't move them in the plus direction at all.
X, Y and Z use end stops so if they are not connected, connected wrong, or configured wrong in the firmware then you will only be able to move in one direction. You should be able to inverse the direction also in the firmware.


Bob Morrison
Wörth am Rhein, Germany
"Luke, use the source!"
BLOG - PHOTOS - Thingiverse
Re: Problems with Gen 6 Electronics
March 14, 2013 07:46AM
Initially I did not upload the firmware after making changes to configuration.h but have done so since and still the same results.

The opto endstops are keyed so they can only go on the controller one way.

Is there a way to eliminate the end stops to test the direction of movement in all three axixes? I feel that if the axises do move in both directions without being affected by endstops, then I know where to start looking for the problem.

Ken
Re: Problems with Gen 6 Electronics
March 14, 2013 08:23AM
Configuration.h:
// Gen6 = 5
// Gen6 deluxe = 51
#ifndef MOTHERBOARD
#define MOTHERBOARD 5
#endif
#define INVERT_X_DIR true    // for Mendel set to false, for Orca set to true
#define INVERT_Y_DIR false    // for Mendel set to true, for Orca set to false
#define INVERT_Z_DIR true     // for Mendel set to false, for Orca set to true
Any of the axis going the wrong way toggle the value, i.e. if true make false, if false make true.

Pins.h:
/****************************************************************************************
* Gen6 pin assignment
*
****************************************************************************************/
#if MOTHERBOARD == 5 || MOTHERBOARD == 51
#define KNOWN_BOARD 1

#ifndef __AVR_ATmega644P__
#ifndef __AVR_ATmega1284P__
#error Oops!  Make sure you have 'Sanguino' selected from the 'Tools -> Boards' menu.
#endif
#endif

//x axis pins
    #define X_STEP_PIN      15
    #define X_DIR_PIN       18
    #define X_ENABLE_PIN    19
    #define X_MIN_PIN       20
    #define X_MAX_PIN       -1
    
    //y axis pins
    #define Y_STEP_PIN      23
    #define Y_DIR_PIN       22
    #define Y_ENABLE_PIN    24
    #define Y_MIN_PIN       25
    #define Y_MAX_PIN       -1
    
    //z axis pins
    #define Z_STEP_PIN      27
    #define Z_DIR_PIN       28
    #define Z_ENABLE_PIN    29
    #define Z_MIN_PIN       30
    #define Z_MAX_PIN       -1
    
    //extruder pins
    #define E0_STEP_PIN      4    //Edited @ EJE Electronics 20100715
    #define E0_DIR_PIN       2    //Edited @ EJE Electronics 20100715
    #define E0_ENABLE_PIN    3    //Added @ EJE Electronics 20100715
    #define TEMP_0_PIN      5     //changed @ rkoeppl 20110410
    #define TEMP_1_PIN      -1    //changed @ rkoeppl 20110410


    #define TEMP_2_PIN      -1    //changed @ rkoeppl 20110410
    #define HEATER_0_PIN    14    //changed @ rkoeppl 20110410
    #define HEATER_1_PIN    -1
    #define HEATER_2_PIN    -1
    #if MOTHERBOARD == 5
    #define HEATER_BED_PIN  -1    //changed @ rkoeppl 20110410
    #define TEMP_BED_PIN    -1    //changed @ rkoeppl 20110410
    #else
    #define HEATER_BED_PIN   1    //changed @ rkoeppl 20110410
    #define TEMP_BED_PIN     0    //changed @ rkoeppl 20110410
    #endif
    #define SDPOWER          -1
    #define SDSS          17
    #define LED_PIN         -1    //changed @ rkoeppl 20110410
    #define FAN_PIN         -1    //changed @ rkoeppl 20110410
    #define PS_ON_PIN       -1    //changed @ rkoeppl 20110410
    //our pin for debugging.
    
    #define DEBUG_PIN        0
    
    //our RS485 pins
    #define TX_ENABLE_PIN	12
    #define RX_ENABLE_PIN	13

    
#endif

Change in pins.h lines 501, 508 and 515:

    #define X_MIN_PIN       20
    #define Y_MIN_PIN       25
    #define Z_MIN_PIN       30

TO:
    #define X_MIN_PIN       -1
    #define Y_MIN_PIN       -1
    #define Z_MIN_PIN       -1

NOW your MIN endstops are disabled!


Bob Morrison
Wörth am Rhein, Germany
"Luke, use the source!"
BLOG - PHOTOS - Thingiverse
Re: Problems with Gen 6 Electronics
March 15, 2013 08:28AM
Ok, made the changes you suggested and was able to see the endstops disabled.

Still motors were not acting right.

Motors moving in the right direction, + direction away from endstops.

Could move motors in the + direction several steps, but would only move in the minus direction the same number of steps and move no further.

Looking more like a problem with the Gen6 board...

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

Click here to login