2017年2月23日 星期四

[Auto level][Prusa I3][3DP] 自動檢調實作



Download Repetier-Host

Connect to 3D printer.

Connect object to right place

Seeing the picture can know two pin connect together. (5v connect to Vcc)
Flowowing the instruction connect the SG90 into the board.
The signal of endstop connect to Z(micro switch).



SG90 have three line.
Orange one is signal line.
Red one is power line.
Brown one is ground line.


Input Gcode command at Repetier-Host
M280 P0 S{angle}
So input "M280 P0 S60", SG90 will turn 60 degree.


Upload Marlin Code to the board

Please download prusa_i3 from github and git checkout to Auto_leveling, find out what diff in Configuration.h.

Start to test the function of auto leveling.

If upload firmware is done.
Start to test the function.

KISSlicer
M104 S<TEMP>; Start to preheat the header
G92 Z0;  Set the current z postion as origin
G1 Z10;  Move Z axis up to 10mm avoid probe bang the platform. 
G28 Y;   Y axis return to zero.
G28 X;   X axis return to zero.
G1 X100 Y100 F6000;   Header move to center of platform
M401;  Put the probe down
G28 z;  Z axis return to zero.
G29;             Platform leveling correction dectective
G1 Z5 F3000 ; move z axis up to 5mm 
M109 S<TEMP>;  Wait for temperature up to working temperature.
M82;   E axis use absolute coordinate

Reference:

沒有留言:

張貼留言