Close



Results 1 to 10 of 89

Hybrid View

  1. #1
    Super Moderator Roxy's Avatar
    Join Date
    Apr 2014
    Location
    Lone Star State
    Posts
    2,182
    The problem is his Z_PROBE_OFFSET is positive. The firmware doesn't expect the case where you drive the nozzle into the bed to take a measurement. So we need to make a few tweaks to the firmware! I can hardly wait!!!

  2. #2
    Technician
    Join Date
    Oct 2013
    Location
    South Australia
    Posts
    50
    Quote Originally Posted by Roxy View Post
    The problem is his Z_PROBE_OFFSET is positive. The firmware doesn't expect the case where you drive the nozzle into the bed to take a measurement. So we need to make a few tweaks to the firmware! I can hardly wait!!!
    OK, I have downloaded the latest version of Marlin and prepared it as I think is correct for my machine.
    When I go to compile it I get an error.
    Maybe I did something wrong in the pins.h


    In file included from /Marlin.h:23,
    from BlinkM.cpp:5:
    /pins.h:1:1: error: unterminated #ifndef


    This is what I changed in pins.h

    #if MOTHERBOARD == 8 || MOTHERBOARD == 81
    #define KNOWN_BOARD 1
    #define AT90USB 1286 // Disable MarlinSerial etc.


    #ifndef __AVR_AT90USB1286__
    #error Oops! Make sure you have 'Teensy++ 2.0' selected from the 'Tools -> Boards' menu.
    #endif


    #define LARGE_FLASH true


    #define X_STEP_PIN 0
    #define X_DIR_PIN 1
    #define X_ENABLE_PIN 39


    #define Y_STEP_PIN 2
    #define Y_DIR_PIN 3
    #define Y_ENABLE_PIN 38


    #define Z_STEP_PIN 4
    #define Z_DIR_PIN 5
    #define Z_ENABLE_PIN 23


    #define E0_STEP_PIN 6
    #define E0_DIR_PIN 7
    #define E0_ENABLE_PIN 19


    #define HEATER_0_PIN 21 // Extruder
    #define HEATER_1_PIN -1
    #define HEATER_2_PIN -1
    #define HEATER_BED_PIN 20 // Bed
    #define FAN_PIN 22 // Fan
    // You may need to change FAN_PIN to 16 because Marlin isn't using fastio.h
    // for the fan and Teensyduino uses a different pin mapping.


    #if MOTHERBOARD == 8 // Teensylu
    #define X_STOP_PIN 13
    #define Y_STOP_PIN 14
    #define Z_STOP_PIN 15
    #define TEMP_0_PIN 7 // Extruder / Analog pin numbering
    #define TEMP_BED_PIN 6 // Bed / Analog pin numbering
    #else // Printrboard
    #define X_STOP_PIN 35
    #define Y_STOP_PIN 37
    #define Z_STOP_PIN 36
    #define TEMP_0_PIN 1 // Extruder / Analog pin numbering
    #define TEMP_BED_PIN 0 // Bed / Analog pin numbering
    #endif


    #define TEMP_1_PIN -1
    #define TEMP_2_PIN -1


    #define SDPOWER -1
    #define SDSS 8
    #define LED_PIN -1
    #define PS_ON_PIN -1
    #define KILL_PIN -1
    #define ALARM_PIN -1


    #ifdef NUM_SERVOS
    #define SERVO0_PIN 11
    #define Z_MIN_PIN 30 //needs to be updated to what ever wire is used.


    #if NUM_SERVOS > 1
    #define SERVO1_PIN 6
    #endif


    #if NUM_SERVOS > 2
    #define SERVO2_PIN 5
    #endif


    #if NUM_SERVOS > 3
    #define SERVO3_PIN 4
    #endif
    #endif


    #ifndef SDSUPPORT
    // these pins are defined in the SD library if building with SD support
    #define SCK_PIN 21 // 9
    #define MISO_PIN 22 //11
    #define MOSI_PIN 23 //10
    #endif


    /************************************************** **************************************
    * Brainwave 1.0 pin assignments (AT90USB646)
    * Requires hardware bundle for Arduino:
    https://github.com/unrepentantgeek/brainwave-arduino
    Last edited by regpye; 04-27-2014 at 08:31 PM. Reason: addition

  3. #3
    Super Moderator Roxy's Avatar
    Join Date
    Apr 2014
    Location
    Lone Star State
    Posts
    2,182
    Tell you what... I've attached my Pins.h I have my Y-Axis limit switch on the E-Limit switch. So, you can either move your connector to the same spot on your PrintrBoard, or you can change the pin numbers back for the Y-Limit switch. (The reason is there is a conflict with the SD-Memory card pins. Moving to the E-Limit switch resolves the issue)

    Specifically... I have my Y_STOP_PIN set as 37. You would change this line to be like this if you don't want to move the connector to the E-Limit location:

    #define Y_STOP_PIN 8


    That should get us past the compile issue.... However... The strange thing is I don't think you need to mess with the Pins.h file typically. I had to edit some stuff in there to get my servo pins defined. But you aren't going to have a servo, so it seems strange that Pins.h had to be modified from its original state.
    Attached Files Attached Files
    Last edited by Roxy; 04-27-2014 at 09:29 PM.

  4. #4
    Technician
    Join Date
    Oct 2013
    Location
    South Australia
    Posts
    50
    Quote Originally Posted by Roxy View Post
    Tell you what... I've attached my Pins.h I have my Y-Axis limit switch on the E-Limit switch. So, you can either move your connector to the same spot on your PrintrBoard, or you can change the pin numbers back for the Y-Limit switch. (The reason is there is a conflict with the SD-Memory card pins. Moving to the E-Limit switch resolves the issue)

    Specifically... I have my Y_STOP_PIN set as 37. You would change this line to be like this if you don't want to move the connector to the E-Limit location:

    #define Y_STOP_PIN 8


    That should get us past the compile issue.... However... The strange thing is I don't think you need to mess with the Pins.h file typically. I had to edit some stuff in there to get my servo pins defined. But you aren't going to have a servo, so it seems strange that Pins.h had to be modified from its original state.
    I also have my Y on the E stop and my Y_STOP_PIN set as 37
    I changed the pins.h just in case I stuffed up somewhere else, however I am still getting the same error message.



    In file included from /Marlin.h:23,
    from BlinkM.cpp:5:
    /pins.h:1:1: error: unterminated #ifndef

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •