|
@@ -34,10 +34,10 @@
|
34
|
34
|
// Channels available for DAC, For Rigidboard there are 4
|
35
|
35
|
#define DAC_STEPPER_ORDER { 0, 1, 2, 3 }
|
36
|
36
|
|
37
|
|
-#define DAC_STEPPER_SENSE 0.11
|
|
37
|
+#define DAC_STEPPER_SENSE 0.05 //sense resistors on rigidboard stepper chips are .05 value
|
38
|
38
|
#define DAC_STEPPER_ADDRESS 0
|
39
|
|
-#define DAC_STEPPER_MAX 5000
|
40
|
|
-#define DAC_STEPPER_VREF 1 //internal Vref, gain 1x = 2.048V
|
41
|
|
-#define DAC_STEPPER_GAIN 0
|
42
|
|
-#define DAC_DISABLE_PIN 42 // set low to enable DAC
|
|
39
|
+#define DAC_STEPPER_MAX 4096 // was 5000 but max allowable value is actually 4096
|
|
40
|
+#define DAC_STEPPER_VREF 1 // internal Vref, gain 2x = 4.096V
|
|
41
|
+#define DAC_STEPPER_GAIN 1 // value of 1 here sets gain of 2
|
|
42
|
+#define DAC_DISABLE_PIN 42 // set low to enable DAC
|
43
|
43
|
#define DAC_OR_ADDRESS 0x01
|