1. Got a question or need help troubleshooting? Post to the troubleshooting forum or Search the forums!

Differential IR height sensor, Attemptin' Clone....ain't sure of success...now stage 10

Discussion in 'Mods and Upgrades' started by jim3Dbot, Aug 25, 2015.

  1. WheresWaldo

    WheresWaldo Volunteer ( ͠° ͟ʖ ͡°)
    Staff Member

    Joined:
    Feb 18, 2015
    Messages:
    5,864
    Likes Received:
    3,560
    Yep best way to do this, A second just as good, is storing the value in EEPROM. You will need to make sure EEPROM writing is enabled, and it should be. It is in the newest Robo firmware.
    Code:
    #define EEPROM_SETTINGS
    #define EEPROM_CHITCHAT
    It is just under Additional Features about line # 470 in Configuration.h
     
  2. jim3Dbot

    jim3Dbot Active Member

    Joined:
    Jun 1, 2015
    Messages:
    246
    Likes Received:
    123
    Mark, forgot to say thanks for the heads-up, easy to overlook code stuff for us code-challenged.......Yeah I see, anyways, think I see......my X axis is fine........the Y is offset by 25mm, (my mount) due to the physical mounting of the mini IR. That will have 'auto level' recording measurements about an +inch in the Y from its actual location, nine different places........
     
  3. mark tomlinson

    mark tomlinson ༼ つ ◕_ ◕ ༽つ
    Staff Member

    Joined:
    Feb 21, 2013
    Messages:
    21,524
    Likes Received:
    7,061
    Exactly. It is not a huge deal, but details matter :)

    I was working with another auto-level probe someone else had done here and it likewise had to have those numbers tweaked just abit since the probe was slightly offset from the nozzle...

    I waffled and ultimately just went with the same rig that the R1 uses on both of mine. This has potential though :) Good luck.
     
    jim3Dbot likes this.
  4. Patrick Elliott

    Joined:
    Feb 20, 2013
    Messages:
    35
    Likes Received:
    8
    I can't seem to figure out the Z offset settings.. I have everything connected and working in the right directions. I can send a G28 X0 Y0 Z0 and then a G29, the printer goes about it's business with the probing, When I tr to actually print something, it prints in mid air looks to be approx the z offset too high...
     
  5. jim3Dbot

    jim3Dbot Active Member

    Joined:
    Jun 1, 2015
    Messages:
    246
    Likes Received:
    123
    Did you use a negative number?
     
  6. Patrick Elliott

    Joined:
    Feb 20, 2013
    Messages:
    35
    Likes Received:
    8
    yep..

    under firmware Z can be negative is checked,
    In the Eeprom settings : z homing offset -1.7
    here's the latest
    ->N14 G28 X0 Y0 Z0*109 [364.206]
    <-ok [368.698]
    ->N15 M114*19 [368.700]
    <-X:0.00 Y:0.00 Z:-3.44 E:49.42 Count X: 0.00 Y:0.00 Z:-3.44 [368.713]
    <-ok [368.713]
    ->N16 M105*16 [368.714]
    <-ok T:207.3 /207.0 B:76.1 /75.0 T0:207.3 /207.0 @:62 B@:0 [368.723]
    ->N17 G29*36 [368.728]
    <-Bed x: 15.00 y: 20.00 z: -3.11 [377.063]
    <-Bed x: 82.00 y: 20.00 z: -1.81 [380.118]
    <-Bed x: 149.00 y: 20.00 z: -0.82 [383.222]
    <-Bed x: 150.00 y: 85.00 z: -0.65 [386.479]
    <-Bed x: 83.00 y: 85.00 z: -1.72 [389.998]
    <-Bed x: 16.00 y: 85.00 z: -3.02 [393.561]
    <-Bed x: 15.00 y: 150.00 z: -3.01 [396.850]
    <-Bed x: 82.00 y: 150.00 z: -1.75 [399.902]
    <-Bed x: 149.00 y: 150.00 z: -0.76 [403.007]
    <-Eqn coefficients: a: 0.02 b: 0.00 d: -3.32 [403.019]
    <-planeNormal x: -0.02 y: -0.00 z: 1.00 [403.019]
    <-ok [403.023]
    <-echo:endstops hit: Z:-0.76 [403.023]
     
    #66 Patrick Elliott, Oct 6, 2015
    Last edited: Oct 6, 2015
  7. jim3Dbot

    jim3Dbot Active Member

    Joined:
    Jun 1, 2015
    Messages:
    246
    Likes Received:
    123
    Does the Mini's Led flash twice when you power-up, you may have to shut-off the AC power via the switch & pull the USB, wait 5 seconds...then just plug-in the USB...no need to turn rear power switch on....wait for board to blink twice.
    What's your results?

    That will tell us the mini has power & mini's firmware has detected the ramps low value resistor, placed the mini into Digital Mode.
     
  8. danzca6

    danzca6 Well-Known Member

    Joined:
    Jul 27, 2015
    Messages:
    2,161
    Likes Received:
    1,074
    Did you put it the z offset in the firmware and the slicer? Only should be in one of course. Odd that you are up too high by the z height value.
     
    jim3Dbot likes this.
  9. Patrick Elliott

    Joined:
    Feb 20, 2013
    Messages:
    35
    Likes Received:
    8
    I think that's my issue. it's in both.
    I just set it to zero in the firmware, and to -0.7 in the slicer. trying again.
     
  10. jim3Dbot

    jim3Dbot Active Member

    Joined:
    Jun 1, 2015
    Messages:
    246
    Likes Received:
    123
    Good Call Danz
     
  11. Patrick Elliott

    Joined:
    Feb 20, 2013
    Messages:
    35
    Likes Received:
    8
    yes, it's getting power, and blinking, the auto level routine is working, Just printing too high...
     
  12. jim3Dbot

    jim3Dbot Active Member

    Joined:
    Jun 1, 2015
    Messages:
    246
    Likes Received:
    123
    Good, Did Danz comment help?
     
  13. jim3Dbot

    jim3Dbot Active Member

    Joined:
    Jun 1, 2015
    Messages:
    246
    Likes Received:
    123
    Does it seem to be only a mm or 2 too high?

    My Z offset required -1.75 to print 1st layer solid.........
     
  14. Mowi

    Mowi New Member

    Joined:
    Oct 5, 2015
    Messages:
    5
    Likes Received:
    1
    Hi Puff, could you also post a picture of the backside of this prototype? just curious ;)
     
  15. Mowi

    Mowi New Member

    Joined:
    Oct 5, 2015
    Messages:
    5
    Likes Received:
    1
    Hi Puff, If you use marlin firmware you can also do the Z_MIN_PROBE_REPEATABILITY_TEST by sending M48. it will give you a mean and a standard deviation.
    according to a post in the forum on 3dprintboard you can also set xy coordinates, number of samples and some other stuff.

    you need to make sure this line is not commented out in configuration.h:

    #define Z_MIN_PROBE_REPEATABILITY_TEST // If not commented out, Z-Probe Repeatability test will be included if Auto Bed Leveling is Enabled.
     
    Mike Kelly likes this.
  16. Patrick Elliott

    Joined:
    Feb 20, 2013
    Messages:
    35
    Likes Received:
    8
    Where in the Firmware does one set the offset? I tried without any luck. I can set it in Mattercontrol successfully, getting very close to the perfect z height. I love the ease of setting it 0.01mm at a time.

    also lifted one side of the bed about 1/2 inch and was still able to get a decent print.
     
  17. Puff

    Puff New Member

    Joined:
    Sep 4, 2015
    Messages:
    10
    Likes Received:
    8
    This is the version working on both my printers.
    [​IMG]

    The ones on the right are the fixed version.
    [​IMG]


    Sent from my iPhone using Tapatalk
     
    Mowi likes this.
  18. jim3Dbot

    jim3Dbot Active Member

    Joined:
    Jun 1, 2015
    Messages:
    246
    Likes Received:
    123
     
  19. jim3Dbot

    jim3Dbot Active Member

    Joined:
    Jun 1, 2015
    Messages:
    246
    Likes Received:
    123
    Thanks to Mark T, Mike K, Waldo for their input, ( Hey! Marlin needs to know you are not Z probin' at the nozzle )

    I revised these statements as well:

    // these are the offsets to the probe relative to the extruder tip (Hotend - Probe)
    #define X_PROBE_OFFSET_FROM_EXTRUDER 0
    #define Y_PROBE_OFFSET_FROM_EXTRUDER -25 //(revised from 0, my mini IR is mounted 25mm from nozzle)
    #define Z_PROBE_OFFSET_FROM_EXTRUDER 0

    also revised the instruction line,

    #define Z_SAFE_HOMING // This feature is meant to avoid Z homing with probe outside the bed area.
    // When defined, it will:
    // - Allow Z homing only after X and Y homing AND stepper drivers still enabled
    // - If stepper drivers timeout, it will need X and Y homing again before Z homing
    // - Position the probe in a defined XY point before Z Homing when homing all axis (G28)
    // - Block Z homing only when the probe is outside bed area. ( the probe is the mini IR )
     
    danzca6 and mark tomlinson like this.
  20. mark tomlinson

    mark tomlinson ༼ つ ◕_ ◕ ༽つ
    Staff Member

    Joined:
    Feb 21, 2013
    Messages:
    21,524
    Likes Received:
    7,061
    You should consider joining the Marlin group... no, on second thought I wouldn't wish that chaos on anyone. ;)
    They do eventually get their act moving and make progress, but man it can be a bit of a scrum behind the scenes.
    Seriously anyone with the time to add value should consider it.

    There are a lot of features in there that are not leveraged.
     
    jim3Dbot likes this.

Share This Page