Defines

config.ramps.h File Reference

RAMPS Sample Configuration http://reprap.org/wiki/Arduino_Mega_Pololu_Shield. More...

#include "arduino.h"

Go to the source code of this file.

Defines

#define HOST
 This is the motherboard, as opposed to the extruder.
#define MICROSTEPPING_X   16.0
#define MICROSTEPPING_Y   16.0
#define MICROSTEPPING_Z   16.0
#define MICROSTEPPING_E   4.0
#define STEPS_PER_MM_X   (5.023*MICROSTEPPING_X)
#define STEPS_PER_MM_Y   (5.023*MICROSTEPPING_Y)
#define STEPS_PER_MM_Z   (416.699*MICROSTEPPING_Z)
#define STEPS_PER_MM_E   (2.759*MICROSTEPPING_E)
 http://blog.arcol.hu/?p=157 may help with this one
#define MAXIMUM_FEEDRATE_X   200
 used for G0 rapid moves and as a cap for all other feedrates
#define MAXIMUM_FEEDRATE_Y   200
#define MAXIMUM_FEEDRATE_Z   100
#define MAXIMUM_FEEDRATE_E   600
#define SEARCH_FEEDRATE_X   50
 used when searching endstops and as default feedrate
#define SEARCH_FEEDRATE_Y   50
#define SEARCH_FEEDRATE_Z   1
#define SEARCH_FEEDRATE_E   50
#define E_STARTSTOP_STEPS   0
 this is how many steps to suck back the filament by when we stop. set to zero to disable
#define X_MIN   0.0
 Soft axis limits, in mm undefine if you don't want to use them.
#define X_MAX   200.0
#define Y_MIN   0.0
#define Y_MAX   200.0
#define Z_MIN   0.0
#define Z_MAX   140.0
#define ACCELERATION_RAMPING
 acceleration and deceleration ramping.
#define ACCELERATION_STEEPNESS   500000
 how fast to accelerate when using ACCELERATION_RAMPING smaller values give quicker acceleration valid range = 1 to 8,000,000; 500,000 is a good starting point
#define X_STEP_PIN   DIO26
#define X_DIR_PIN   DIO28
#define X_MIN_PIN   DIO3
#define X_MAX_PIN   DIO2
#define X_ENABLE_PIN   DIO24
#define Y_STEP_PIN   DIO38
#define Y_DIR_PIN   DIO40
#define Y_MIN_PIN   DIO16
#define Y_MAX_PIN   DIO17
#define Y_ENABLE_PIN   DIO36
#define Z_STEP_PIN   DIO44
#define Z_DIR_PIN   DIO46
#define Z_MIN_PIN   DIO18
#define Z_MAX_PIN   DIO19
#define Z_ENABLE_PIN   DIO42
#define E_STEP_PIN   DIO32
#define E_DIR_PIN   DIO34
#define E_ENABLE_PIN   DIO30
#define TEMP_HYSTERESIS   20
 TEMP_HYSTERESIS: actual temperature must be target +/- hysteresis before target temperature can be achieved.
#define TEMP_RESIDENCY_TIME   60
 TEMP_RESIDENCY_TIME: actual temperature must be close to target for this long before target is achieved.
#define TEMP_THERMISTOR
 which temperature sensors are you using? (intercom is the gen3-style separate extruder board)
#define DEFINE_TEMP_SENSOR(...)
#define DEFINE_HEATER(...)
#define HEATER_EXTRUDER   HEATER_extruder
 and now because the c preprocessor isn't as smart as it could be, uncomment the ones you've listed above and comment the rest.
#define HEATER_BED   HEATER_bed
#define REPRAP_HOST_COMPATIBILITY   20100806
 RepRap Host changes it's communications protocol from time to time and intentionally avoids backwards compatibility.
#define BAUD   115200
 Baud rate for the connection to the host.
#define MOVEBUFFER_SIZE   8
 move buffer size, in number of moves note that each move takes a fair chunk of ram (69 bytes as of this writing) so don't make the buffer too big - a bigger serial readbuffer may help more than increasing this unless your gcodes are more than 70 characters long on average.
#define REFERENCE   REFERENCE_AVCC
 analog subsystem stuff REFERENCE - which analog reference to use.
#define STEP_INTERRUPT_INTERRUPTIBLE   1
 this option makes the step interrupt interruptible (nested).
#define TH_COUNT   8
 temperature history count.
#define PID_SCALE   1024L
 this is the scaling of internally stored PID values. 1024L is a good value

Detailed Description

RAMPS Sample Configuration http://reprap.org/wiki/Arduino_Mega_Pololu_Shield.


Define Documentation

#define ACCELERATION_RAMPING

acceleration and deceleration ramping.

Each movement starts at (almost) no speed, linearly accelerates to target speed and decelerates just in time to smoothly stop at the target. alternative to ACCELERATION_REPRAP

#define BAUD   115200

Baud rate for the connection to the host.

Usually 115200, other common values are 19200, 38400 or 57600.

#define HEATER_EXTRUDER   HEATER_extruder

and now because the c preprocessor isn't as smart as it could be, uncomment the ones you've listed above and comment the rest.

NOTE: these are used to enable various capability-specific chunks of code, you do NOT need to create new entries unless you are adding new capabilities elsewhere in the code! so if you list a bed above, uncomment HEATER_BED, but if you list a chamber you do NOT need to create HEATED_CHAMBER I have searched high and low for a way to make the preprocessor do this for us, but so far I have not found a way.

#define HOST

This is the motherboard, as opposed to the extruder.

See extruder/ directory for GEN3 extruder firmware

#define MOVEBUFFER_SIZE   8

move buffer size, in number of moves note that each move takes a fair chunk of ram (69 bytes as of this writing) so don't make the buffer too big - a bigger serial readbuffer may help more than increasing this unless your gcodes are more than 70 characters long on average.

however, a larger movebuffer will probably help with lots of short consecutive moves, as each move takes a bunch of math (hence time) to set up so a longer buffer allows more of the math to be done during preceding longer moves

#define REFERENCE   REFERENCE_AVCC

analog subsystem stuff REFERENCE - which analog reference to use.

see analog.h for choices

#define REPRAP_HOST_COMPATIBILITY   20100806

RepRap Host changes it's communications protocol from time to time and intentionally avoids backwards compatibility.

Set this to the date the source code of your Host was fetched from RepRap's repository, which is likely also the build date. See the discussion on the reprap-dev mailing list from 11 Oct. 2010.

Undefine it for best human readability, set it to an old date for compatibility with hosts before August 2010

#define STEP_INTERRUPT_INTERRUPTIBLE   1

this option makes the step interrupt interruptible (nested).

this should help immensely with dropped serial characters, but may also make debugging infuriating due to the complexities arising from nested interrupts

#define TEMP_HYSTERESIS   20

TEMP_HYSTERESIS: actual temperature must be target +/- hysteresis before target temperature can be achieved.

NOTE: format is 30.2 fixed point, so value of 20 actually means +/- 5 degrees

#define TEMP_RESIDENCY_TIME   60

TEMP_RESIDENCY_TIME: actual temperature must be close to target for this long before target is achieved.

temperature is "achieved" for purposes of M109 and friends when actual temperature is within [hysteresis] of target for [residency] seconds

#define TH_COUNT   8

temperature history count.

This is how many temperature readings to keep in order to calculate derivative in PID loop higher values make PID derivative term more stable at the expense of reaction time

 All Data Structures Files Functions Variables Defines