-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathConfiguration.h
94 lines (65 loc) · 2.23 KB
/
Configuration.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
//#define DEBUG
#define GENERIC_POLAR_PAINTER //Comment this line to use etch_a_sketch
#ifndef GENERIC_POLAR_PAINTER
#define ETCH_A_SKETCH
#endif
#ifdef ETCH_A_SKETCH
#define CARTESIAN_PAINTER
#define USE_LCD
// define the parameters of our machine.
#define X_STEPS_PER_INCH 1
#define X_STEPS_PER_MM 12 //7 //19 //multiplicacion por 2,7142
#define X_MOTOR_STEPS 200
#define Y_STEPS_PER_INCH 1
#define Y_STEPS_PER_MM 12 //7 //28
#define Y_MOTOR_STEPS 200
#define ENABLE_INACCURACY_CORRECTION
#define X_MOTOR_INACCURACY_ANGLE 25
#define Y_MOTOR_INACCURACY_ANGLE 25
long x_correction_steps = X_MOTOR_STEPS * ((double)X_MOTOR_INACCURACY_ANGLE / 360);
long y_correction_steps = Y_MOTOR_STEPS * ((double)Y_MOTOR_INACCURACY_ANGLE / 360);
float x_correction_units = x_correction_steps / (float)X_STEPS_PER_MM;
float y_correction_units = y_correction_steps / (float)Y_STEPS_PER_MM;
//our maximum feedrates
#define FAST_XY_FEEDRATE 1000.0 // default: 1000.0
#endif
#ifdef GENERIC_POLAR_PAINTER
#define POLAR_PAINTER
#define USE_INTERNAL_PULLUPS
#define X_STEPS_PER_INCH 1
#define X_STEPS_PER_MM 84 //7 //19 //multiplicacion por 2,7142
#define X_MOTOR_STEPS 1600
#define Y_STEPS_PER_INCH 1
#define Y_STEPS_PER_MM 84 //7 //28
#define Y_MOTOR_STEPS 1600
//our maximum feedrates
#define FAST_XY_FEEDRATE 10000.0 // default: 1000.0
#define ENABLE_SERVO_TOOL
#endif
// Units in curve section
#define CURVE_SECTION_INCHES 0.019685
#define CURVE_SECTION_MM 0.5
/****************************************************************************************
* digital i/o pin assignment
*
* this uses the undocumented feature of Arduino - pins 14-19 correspond to analog 0-5
****************************************************************************************/
//cartesian bot pins
#define X_STEP_PIN 5
#define X_DIR_PIN 6
#define Y_STEP_PIN 7
#define Y_DIR_PIN 8
#define SD_SELECT 10
#define BUTTON1 2
#define BUTTON2 4
//#ifdef ENABLE_SERVO_TOOL
#define TOOL1 18
#define TOOL2 190
#define NO_TOOL 55
#define TOOLS_SERVO_PIN 3
#define SERVO_MIN_US_PER_STEP 5000
//#endif
#define CANVAS_WIDTH 690.0
#define CANVAS_HEIGHT 400.0
#define CANVAS_PADDING 100.0
#define CANVAS_TOP_MARGIN 80.0