Sunday, July 17, 2016

http://jds-reprap.blogspot.gr/

http://jds-reprap.blogspot.gr/


 A newbies Reprap blog.

RAMPS 1.4 test code

http://forums.reprap.org/read.php?219,99920


http://reprap.org/wiki/File:RAMPS1.4_TestCode.pde







#define X_STEP_PIN         54
#define X_DIR_PIN          55
#define X_ENABLE_PIN       38
#define X_MIN_PIN           3
#define X_MAX_PIN           2

#define Y_STEP_PIN         60
#define Y_DIR_PIN          61
#define Y_ENABLE_PIN       56
#define Y_MIN_PIN          14
#define Y_MAX_PIN          15

#define Z_STEP_PIN         46
#define Z_DIR_PIN          48
#define Z_ENABLE_PIN       62
#define Z_MIN_PIN          18
#define Z_MAX_PIN          19

#define E_STEP_PIN         26
#define E_DIR_PIN          28
#define E_ENABLE_PIN       24

#define Q_STEP_PIN         36
#define Q_DIR_PIN          34
#define Q_ENABLE_PIN       30

#define SDPOWER            -1
#define SDSS               53
#define LED_PIN            13

#define FAN_PIN            9

#define PS_ON_PIN          12
#define KILL_PIN           -1

#define HEATER_0_PIN       10
#define HEATER_1_PIN       8
#define TEMP_0_PIN          13   // ANALOG NUMBERING
#define TEMP_1_PIN          14   // ANALOG NUMBERING

void setup() {
  pinMode(FAN_PIN , OUTPUT);
  pinMode(HEATER_0_PIN , OUTPUT);
  pinMode(HEATER_1_PIN , OUTPUT);
  pinMode(LED_PIN  , OUTPUT);
  
  pinMode(X_STEP_PIN  , OUTPUT);
  pinMode(X_DIR_PIN    , OUTPUT);
  pinMode(X_ENABLE_PIN    , OUTPUT);
  
  pinMode(Y_STEP_PIN  , OUTPUT);
  pinMode(Y_DIR_PIN    , OUTPUT);
  pinMode(Y_ENABLE_PIN    , OUTPUT);
  
  pinMode(Z_STEP_PIN  , OUTPUT);
  pinMode(Z_DIR_PIN    , OUTPUT);
  pinMode(Z_ENABLE_PIN    , OUTPUT);
  
  pinMode(E_STEP_PIN  , OUTPUT);
  pinMode(E_DIR_PIN    , OUTPUT);
  pinMode(E_ENABLE_PIN    , OUTPUT);
  
  pinMode(Q_STEP_PIN  , OUTPUT);
  pinMode(Q_DIR_PIN    , OUTPUT);
  pinMode(Q_ENABLE_PIN    , OUTPUT);
  
   digitalWrite(X_ENABLE_PIN    , LOW);
    digitalWrite(Y_ENABLE_PIN    , LOW);
    digitalWrite(Z_ENABLE_PIN    , LOW);
    digitalWrite(E_ENABLE_PIN    , LOW);
    digitalWrite(Q_ENABLE_PIN    , LOW);
}





void loop () {
  
  if (millis() %1000 <500) 
    digitalWrite(LED_PIN, HIGH);
  else
   digitalWrite(LED_PIN, LOW);
  
  if (millis() %1000 <300) {
    digitalWrite(HEATER_0_PIN, HIGH);
    digitalWrite(HEATER_1_PIN, LOW);
    digitalWrite(FAN_PIN, LOW);
  } else if (millis() %1000 <600) {
    digitalWrite(HEATER_0_PIN, LOW);
    digitalWrite(HEATER_1_PIN, HIGH);
    digitalWrite(FAN_PIN, LOW);
  } else  {
    digitalWrite(HEATER_0_PIN, LOW);
    digitalWrite(HEATER_1_PIN, LOW);
    digitalWrite(FAN_PIN, HIGH);
  }
  
  if (millis() %10000 <5000) {
    digitalWrite(X_DIR_PIN    , HIGH);
    digitalWrite(Y_DIR_PIN    , HIGH);
    digitalWrite(Z_DIR_PIN    , HIGH);
    digitalWrite(E_DIR_PIN    , HIGH);
    digitalWrite(Q_DIR_PIN    , HIGH);
  }
  else {
    digitalWrite(X_DIR_PIN    , LOW);
    digitalWrite(Y_DIR_PIN    , LOW);
    digitalWrite(Z_DIR_PIN    , LOW);
    digitalWrite(E_DIR_PIN    , LOW);
    digitalWrite(Q_DIR_PIN    , LOW);
  }
  
  
    digitalWrite(X_STEP_PIN    , HIGH);
    digitalWrite(Y_STEP_PIN    , HIGH);
    digitalWrite(Z_STEP_PIN    , HIGH);
    digitalWrite(E_STEP_PIN    , HIGH);
    digitalWrite(Q_STEP_PIN    , HIGH); 
  delay(1);
    
    digitalWrite(X_STEP_PIN    , LOW);
    digitalWrite(Y_STEP_PIN    , LOW);
    digitalWrite(Z_STEP_PIN    , LOW);
    digitalWrite(E_STEP_PIN    , LOW);
    digitalWrite(Q_STEP_PIN    , LOW); 
  
}

Thursday, July 14, 2016

RepRap GCode Cheat Sheet

RepRap GCode Cheat Sheet

Comm. Parameters Description Example

G0 Axis [X/Y/Z] Position Rapid Movement G0 X50
G1 Axis [X/Y/Z/E] Position Feed [F] Controlled Movement G1 F150 X10
G4 Time in ms [P] Dwell / Wait G4 P500
G20 none Set units to inch G20
G21 none Set units to mm G21
G28 <Axis [X/Y/Z]> Home G28 X Y
G90 none Absolute Positioning G90
G91 none Relative Positioning G91
G92 Axis [X/Y/Z/E] Value Set Position to value G92 X5 Y10

Comm. Parameters Description Example
M0 none Stops everything after buffer is empty M0
M17 none Enable all stepper motors M17
M18 none Disable all stepper motors (move freely) M18
M20 none List files at the root folder of the SD Card M20
M21 none Initialise (mount) SD Card M21
M22 none Release (unmount) SD Card M22
M23 Filename Select File for Printing M23 print.gco
M24 none Start / Resume SD Card Print (see M23) M24
M25 none Pause SD Card Print (see M24) M25
M26 Bytes[S] Set SD Position in bytes M26 S12345
M27 none Report SD Print status M27
M28 Filename Write programm to SD Card M28 print.gco
M29 Filename Stop writing programm to SD Card M29 print.gco
M40 none Eject part (if possible) M40
M41 none Loop Programm(Stop with reset button!) M41
M42 none Stop if out of material (if supported) M42
M43 none Like M42 but leave heated bed on (if supported) M43
M80 none Turn on ATX Power (if neccessary) M80
M81 none Turn off ATX Power (if neccessary) M81
M84 none Stop idle hold (DO NOT use while printing!) M84
M92 Steps_per_unit[X] Programm set S steps per unit (resets) M92 X123
M101 none Set extruder 1 to forward (outdated) M101
M102 none Set extruder 1 to reverse (outdated) M102
M103 none Turn all extruders off (outdated) M103
M104 Temperature[S] Set extruder temperature (not waiting) M104 S100
M105 none Get extruder Temperature M105
M106 <PWM Value[S 0-255]> Set Fan Speed to S and start M106 S123
M107 none Turn Fan off M107
M108 none Set extruder speed (outdated) M108
M109 Temperature[S] Set extruder Temperature (waits till reached) M109 S123
M110 Line Number[N] Set current line number (next line number = line no. +1) N123 M110
M111 Debug Level [S] Set Debug Level M111 S6
M112 none Emergency Stop (Stop immediately) M112
M113 <PWM [S]> Set Extruder PWM to S (or onboard potent. If not given) M113 S0.7
M114 none Get Current Position M114
M115 none Get Firmeware Version and Capabilities M115
M116 none Wait for ALL temperatures M116
M117 none Get Zero Position in steps M117
M119 none Get Endstop Status M119
M126 Time[P] Open extruder valve (if available) and wait for P ms M126 P500
M127 Time[P] Close extruder valve (if available) and wait for P ms M127 P500
M128 PWM[S] Set internal extruder pressure S255 eq max M128 S123
M129 Time[P] Turn off extruder pressure and wait for P ms M129 P500
M140 Degrees[S] Set heated bed temperature to S (not waiting) M140 S55
M141 Degrees[S] Set chamber temperature to S (not waiting) M141 S30
M142 Pressure[S] Set holding pressure to S bar M142 S1
M143 Degrees[S] Set maximum hot-end temperture M143 S275
M160 No.[S] Set number of materials extruder can handle M160 S4
M203 Offset[Z] Set Z offset (stays active even after power off) M203 Z-0.1
M226 none Pauses printing (like pause button) M226
M227 Steps[P/S] Enables Automatic Reverse and Prime M227 P1500 S1500
M228 none Disables Automatic Reverse and Prime M228
M229 Rotations[P/S] Enables Automatic Reverse and Prime M229 P1.0 S1.0
M230 [S] Enable / Disable wait for temp.(1 = Disable 0 = Enable) M230 S1
M240 none Start conveyor belt motor M240
M241 none Stop conveyor belt motor M241
M245 none Start cooler fan M245
M246 none Stop cooler fan M246
M300 Freq.[S] Duration[P] Beep with S Hz for P ms M300 S300 P1000

T No. Select extruder no. (starts with 0) T1

Wednesday, July 13, 2016

Prusa i3 Rework Firmware

Prusa i3 Rework Firmware

 

 http://reprap.org/wiki/Prusa_i3_Rework_Firmware

 

 

Introduction | Bill of materials | Y-axis assembly | X-axis assembly | Connecting X-axis and Z-axis | Motor assembly
X and Y-axis motions | Heated bed assembly | Extruder assembly | Electronics and wiring |Marlin Firmware



 

Sprinter Firmware Guide

 Youtube video

Still Extruding: Configuring Sprinter Firmware

 

 

The incomplete RepRap Prusa Mendel beginner's guide

 

 

  

 

 

Custom Buttons in Pronterface: An Intro to GCode

  Sprinter kliment Firmware for RepRap printers and similar devices

 

 

Troubleshooting Reprap Prusa Arduino 2560 + RAMPS 1.4

 

 

nextdayreprap


 Next Day Reprap Prusa Mendel 3D Printer Kit

http://www.nextdayreprap.co.uk/