Browse Source

Adding servo documentation

Gord Christmas 12 years ago
parent
commit
28ada096e2
2 changed files with 16 additions and 24 deletions
  1. 3
    13
      Marlin/Configuration.h
  2. 13
    11
      README.md

+ 3
- 13
Marlin/Configuration.h View File

168
 
168
 
169
 #ifdef PIDTEMPBED
169
 #ifdef PIDTEMPBED
170
 //120v 250W silicone heater into 4mm borosilicate (MendelMax 1.5+)
170
 //120v 250W silicone heater into 4mm borosilicate (MendelMax 1.5+)
171
-//from FOPDT model - kp=.39 Tp=405 Tdead=66, Tc set to 79.2, argressive factor of .15 (vs .1, 1, 10)
171
+//from FOPDT model - kp=.39 Tp=405 Tdead=66, Tc set to 79.2, aggresive factor of .15 (vs .1, 1, 10)
172
     #define  DEFAULT_bedKp 10.00
172
     #define  DEFAULT_bedKp 10.00
173
     #define  DEFAULT_bedKi .023
173
     #define  DEFAULT_bedKi .023
174
     #define  DEFAULT_bedKd 305.4
174
     #define  DEFAULT_bedKd 305.4
407
 //#define BARICUDA
407
 //#define BARICUDA
408
 
408
 
409
 /*********************************************************************\
409
 /*********************************************************************\
410
-*
411
 * R/C SERVO support
410
 * R/C SERVO support
412
-*
413
 * Sponsored by TrinityLabs, Reworked by codexmas
411
 * Sponsored by TrinityLabs, Reworked by codexmas
414
-*
415
 **********************************************************************/
412
 **********************************************************************/
416
-
417
-// Number of servos
418
-//
419
-// If you select a configuration below, this will receive a default value and does not need to be set manually
420
-// set it manually if you have more servos than extruders and wish to manually control some
421
-// leaving it undefined or defining as 0 will disable the servo subsystem
422
-// If unsure, leave commented / disabled
423
-//
424
-// #define NUM_SERVOS 3
413
+// Number of servos, on RAMPS power to servo pins needs vcc pin jumpered to 5v pin or external supply.
414
+//#define NUM_SERVOS 3 // Indexing starts at 0 for M280 command
425
 
415
 
426
 #include "Configuration_adv.h"
416
 #include "Configuration_adv.h"
427
 #include "thermistortables.h"
417
 #include "thermistortables.h"

+ 13
- 11
README.md View File

1
-WARNING: 
1
+WARNING:
2
 --------
2
 --------
3
 THIS IS RELEASE CANDIDATE 2 FOR MARLIN 1.0.0
3
 THIS IS RELEASE CANDIDATE 2 FOR MARLIN 1.0.0
4
 
4
 
26
 *   High steprate
26
 *   High steprate
27
 *   Look ahead (Keep the speed high when possible. High cornering speed)
27
 *   Look ahead (Keep the speed high when possible. High cornering speed)
28
 *   Interrupt based temperature protection
28
 *   Interrupt based temperature protection
29
-*   preliminary support for Matthew Roberts advance algorithm 
29
+*   preliminary support for Matthew Roberts advance algorithm
30
     For more info see: http://reprap.org/pipermail/reprap-dev/2011-May/003323.html
30
     For more info see: http://reprap.org/pipermail/reprap-dev/2011-May/003323.html
31
 *   Full endstop support
31
 *   Full endstop support
32
 *   SD Card support
32
 *   SD Card support
33
 *   SD Card folders (works in pronterface)
33
 *   SD Card folders (works in pronterface)
34
 *   SD Card autostart support
34
 *   SD Card autostart support
35
-*   LCD support (ideally 20x4) 
36
-*   LCD menu system for autonomous SD card printing, controlled by an click-encoder. 
35
+*   LCD support (ideally 20x4)
36
+*   LCD menu system for autonomous SD card printing, controlled by an click-encoder.
37
 *   EEPROM storage of e.g. max-velocity, max-acceleration, and similar variables
37
 *   EEPROM storage of e.g. max-velocity, max-acceleration, and similar variables
38
 *   many small but handy things originating from bkubicek's fork.
38
 *   many small but handy things originating from bkubicek's fork.
39
 *   Arc support
39
 *   Arc support
46
 *   PID tuning
46
 *   PID tuning
47
 *   CoreXY kinematics (www.corexy.com/theory.html)
47
 *   CoreXY kinematics (www.corexy.com/theory.html)
48
 *   Configurable serial port to support connection of wireless adaptors.
48
 *   Configurable serial port to support connection of wireless adaptors.
49
+*   RC Servo Support, specify angle or duration for continuous rotation servos.
49
 
50
 
50
 The default baudrate is 250000. This baudrate has less jitter and hence errors than the usual 115200 baud, but is less supported by drivers and host-environments.
51
 The default baudrate is 250000. This baudrate has less jitter and hence errors than the usual 115200 baud, but is less supported by drivers and host-environments.
51
 
52
 
55
 
56
 
56
 *Look-ahead:*
57
 *Look-ahead:*
57
 
58
 
58
-Marlin has look-ahead. While sprinter has to break and re-accelerate at each corner, 
59
-lookahead will only decelerate and accelerate to a velocity, 
59
+Marlin has look-ahead. While sprinter has to break and re-accelerate at each corner,
60
+lookahead will only decelerate and accelerate to a velocity,
60
 so that the change in vectorial velocity magnitude is less than the xy_jerk_velocity.
61
 so that the change in vectorial velocity magnitude is less than the xy_jerk_velocity.
61
-This is only possible, if some future moves are already processed, hence the name. 
62
+This is only possible, if some future moves are already processed, hence the name.
62
 It leads to less over-deposition at corners, especially at flat angles.
63
 It leads to less over-deposition at corners, especially at flat angles.
63
 
64
 
64
 *Arc support:*
65
 *Arc support:*
65
 
66
 
66
 Slic3r can find curves that, although broken into segments, were ment to describe an arc.
67
 Slic3r can find curves that, although broken into segments, were ment to describe an arc.
67
 Marlin is able to print those arcs. The advantage is the firmware can choose the resolution,
68
 Marlin is able to print those arcs. The advantage is the firmware can choose the resolution,
68
-and can perform the arc with nearly constant velocity, resulting in a nice finish. 
69
+and can perform the arc with nearly constant velocity, resulting in a nice finish.
69
 Also, less serial communication is needed.
70
 Also, less serial communication is needed.
70
 
71
 
71
 *Temperature Oversampling:*
72
 *Temperature Oversampling:*
94
 
95
 
95
 If your hardware supports it, you can build yourself a LCD-CardReader+Click+encoder combination. It will enable you to realtime tune temperatures,
96
 If your hardware supports it, you can build yourself a LCD-CardReader+Click+encoder combination. It will enable you to realtime tune temperatures,
96
 accelerations, velocities, flow rates, select and print files from the SD card, preheat, disable the steppers, and do other fancy stuff.
97
 accelerations, velocities, flow rates, select and print files from the SD card, preheat, disable the steppers, and do other fancy stuff.
97
-One working hardware is documented here: http://www.thingiverse.com/thing:12663 
98
+One working hardware is documented here: http://www.thingiverse.com/thing:12663
98
 Also, with just a 20x4 or 16x2 display, useful data is shown.
99
 Also, with just a 20x4 or 16x2 display, useful data is shown.
99
 
100
 
100
 *SD card folders:*
101
 *SD card folders:*
145
 *   M42  - Change pin status via gcode
146
 *   M42  - Change pin status via gcode
146
 *   M80  - Turn on Power Supply
147
 *   M80  - Turn on Power Supply
147
 *   M81  - Turn off Power Supply
148
 *   M81  - Turn off Power Supply
148
-*   M114 - Output current position to serial port 
149
+*   M114 - Output current position to serial port
149
 *   M119 - Output Endstop status to serial port
150
 *   M119 - Output Endstop status to serial port
150
 
151
 
151
 Movement variables:
152
 Movement variables:
172
 
173
 
173
 *   M500 - stores paramters in EEPROM. This parameters are stored:  axis_steps_per_unit,  max_feedrate, max_acceleration  ,acceleration,retract_acceleration,
174
 *   M500 - stores paramters in EEPROM. This parameters are stored:  axis_steps_per_unit,  max_feedrate, max_acceleration  ,acceleration,retract_acceleration,
174
   minimumfeedrate,mintravelfeedrate,minsegmenttime,  jerk velocities, PID
175
   minimumfeedrate,mintravelfeedrate,minsegmenttime,  jerk velocities, PID
175
-*   M501 - reads parameters from EEPROM (if you need reset them after you changed them temporarily).  
176
+*   M501 - reads parameters from EEPROM (if you need reset them after you changed them temporarily).
176
 *   M502 - reverts to the default "factory settings".  You still need to store them in EEPROM afterwards if you want to.
177
 *   M502 - reverts to the default "factory settings".  You still need to store them in EEPROM afterwards if you want to.
177
 *   M503 - print the current settings (from memory not from eeprom)
178
 *   M503 - print the current settings (from memory not from eeprom)
178
 
179
 
179
 MISC:
180
 MISC:
180
 
181
 
181
 *   M240 - Trigger a camera to take a photograph
182
 *   M240 - Trigger a camera to take a photograph
183
+*   M280 - Position an RC Servo P<index> S<angle/microseconds>, ommit S to report back current angle
182
 *   M999 - Restart after being stopped by error
184
 *   M999 - Restart after being stopped by error
183
 
185
 
184
 Configuring and compilation:
186
 Configuring and compilation:

Loading…
Cancel
Save