blob: d12d49c11e59859d2398308d62499024fcc71797 (
plain)
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
|
#ifndef CONFIGURATION_H
#define CONFIGURATION_H
#define MY_NAME '0' // Two byte string representing the name of this device
#define RS485_MASTER 0 // We are a slave
#define MOTHERBOARD 2
// Temperature measurement
// Uncomment ONE of the next three
//#define USE_THERMISTOR
#define AD595_THERMOCOUPLE
//#define MAX6675_THERMOCOUPLE
// Comment out the next line to give a bang-bang thermostat
// Leave it for PID temperature control
#define PID_CONTROL
// Uncomment the next line to use full-stepping for the extrude motor
// Leave it commented for half stepping
//#define FULL_STEP
//******************************************************************************************************
// Divide by this to correct for the fact that we have
// messed up the timer clock
#define MILLI_CORRECTION 64
// The temperature routines get called each time the main loop
// has gone round this many times
#define SLOW_CLOCK 5000
// Default PWM for the extruder stepper
#define STEP_PWM 150
// Pin defintion section. This is for the RepRap Extruder Controler V2.2
//our RS485 pins
#define RX_ENABLE_PIN 4
#define TX_ENABLE_PIN 16
// Pins to direct-drive the extruder stepper
#define E_STEP_PIN 10
#define E_DIR_PIN 9
#ifdef MAX6675_THERMOCOUPLE
// I2C pins for the MAX 6675 temperature chip
#define SO 18 // MISO
#define SCK 19 // Serial Clock
#define TC_0 17 // CS Pin of MAX6607
#else
#define TEMP_PIN 3
#endif
// Control pins for the A3949 chips
#define H1D 7
#define H1E 5
#define H2D 8
#define H2E 6
// Analogue read of this pin gets the potentiometer setting
#define POT 0
// MOSFET drivers
#define OUTPUT_A 15
#define OUTPUT_B 11
#define OUTPUT_C 12
#define DEBUG_PIN 13
// The LED blink function
extern void blink(bool on);
#endif
|