Rambo servo Pin. Update
Rambo servo Pin. Update
Does anyone know what the pin # is for the servo control on the Rambo 1.3 and where it is on the board? I am messing around with a z-probe.
Also is it turned on in the pins.h file?
Thanks
Also is it turned on in the pins.h file?
Thanks
Last edited by Holy1 on Sat Jan 31, 2015 9:12 am, edited 1 time in total.
Orion to Cartesian http://forum.seemecnc.com/viewtopic.php?f=59&t=7808" onclick="window.open(this.href);return false;
-
- Printmaster!
- Posts: 458
- Joined: Sun Sep 07, 2014 2:39 am
Re: Rambo servo Pin
Pin 5 is your best bet.
It is accessible on the PWM Extension header on the RAMBo. This is located just "above" the largest chip on the RAMBo.
Do not alter the pins.h file. Not sure what all needs to be done to enable the probe functions, but the definition for the servo pin would be done in Configuration.h file.
It is accessible on the PWM Extension header on the RAMBo. This is located just "above" the largest chip on the RAMBo.
Do not alter the pins.h file. Not sure what all needs to be done to enable the probe functions, but the definition for the servo pin would be done in Configuration.h file.
Last edited by Earthbound on Thu Jan 29, 2015 5:43 pm, edited 1 time in total.
"Trust no quote from the Internet." - Abraham Lincoln
Re: Rambo servo Pin
ok, thanks. How do I locate where it is on the board?Earthbound wrote:Pin 5 is your best bet.
Orion to Cartesian http://forum.seemecnc.com/viewtopic.php?f=59&t=7808" onclick="window.open(this.href);return false;
-
- Printmaster!
- Posts: 458
- Joined: Sun Sep 07, 2014 2:39 am
Re: Rambo servo Pin
On the PWM header:
1: VCC (5v)
2: GND (local ground)
3: digital pin 13 (shared with yellow LED on RAMBo)
4: digital pin 2 (saved for FAN-2 control)
5: digital pin 5 (available, and conveniently has same # as physical position on this header)
6: digital pin 4
So servo connection would be pins 1,2,5 on the PWM header.
1: VCC (5v)
2: GND (local ground)
3: digital pin 13 (shared with yellow LED on RAMBo)
4: digital pin 2 (saved for FAN-2 control)
5: digital pin 5 (available, and conveniently has same # as physical position on this header)
6: digital pin 4
So servo connection would be pins 1,2,5 on the PWM header.
"Trust no quote from the Internet." - Abraham Lincoln
Re: Rambo servo Pin
Earthbound wrote:On the PWM header:
1: VCC (5v)
2: GND (local ground)
3: digital pin 13 (shared with yellow LED on RAMBo)
4: digital pin 2 (saved for FAN-2 control)
5: digital pin 5 (available, and conveniently has same # as physical position on this header)
6: digital pin 4
So servo connection would be pins 1,2,5 on the PWM header.
Thanks very much! I have the probe figured out but wanted a servo to deploy it.
Orion to Cartesian http://forum.seemecnc.com/viewtopic.php?f=59&t=7808" onclick="window.open(this.href);return false;
Re: Rambo servo Pin
Got the servo working. I'm tickled, much appreciated Earthbound!
Orion to Cartesian http://forum.seemecnc.com/viewtopic.php?f=59&t=7808" onclick="window.open(this.href);return false;
-
- Printmaster!
- Posts: 458
- Joined: Sun Sep 07, 2014 2:39 am
Re: Rambo servo Pin
So I looked around in Configuration.h and found the relevant area. Appears (at least in Repetier 0.91) that it was added to support the RAMPS board, which uses some different pins on the microcontroller.
Servo section begins at line 1051, and I've copied the whole section into this post.
You'll need to change the FEATURE_SERVO line from false to true. You can leave the pin defines alone, just use ID2, since that matches up to pin #5.
Then you can control the servo via gcode M340.
M340 P2 S1500 would drive servo on pin#5 to center of travel.
/* Servos
If you need to control servos, enable this feature. You can control up to 4 servos.
Control the servos with
M340 P<servoId> S<pulseInUS>
servoID = 0..3
Servos are controlled by a pulse width normally between 500 and 2500 with 1500ms in center position. 0 turns servo off.
WARNING: Servos can draw a considerable amount of current. Make sure your system can handle this or you may risk your hardware!
*/
#define FEATURE_SERVO false
// Servo pins on a RAMPS board are 11,6,5,4
#define SERVO0_PIN 11
#define SERVO1_PIN 6
#define SERVO2_PIN 5
#define SERVO3_PIN 4
Servo section begins at line 1051, and I've copied the whole section into this post.
You'll need to change the FEATURE_SERVO line from false to true. You can leave the pin defines alone, just use ID2, since that matches up to pin #5.
Then you can control the servo via gcode M340.
M340 P2 S1500 would drive servo on pin#5 to center of travel.
/* Servos
If you need to control servos, enable this feature. You can control up to 4 servos.
Control the servos with
M340 P<servoId> S<pulseInUS>
servoID = 0..3
Servos are controlled by a pulse width normally between 500 and 2500 with 1500ms in center position. 0 turns servo off.
WARNING: Servos can draw a considerable amount of current. Make sure your system can handle this or you may risk your hardware!
*/
#define FEATURE_SERVO false
// Servo pins on a RAMPS board are 11,6,5,4
#define SERVO0_PIN 11
#define SERVO1_PIN 6
#define SERVO2_PIN 5
#define SERVO3_PIN 4
"Trust no quote from the Internet." - Abraham Lincoln
-
- Printmaster!
- Posts: 458
- Joined: Sun Sep 07, 2014 2:39 am
Re: Rambo servo Pin
Sounds like you got it figured out while I was typing.
"Trust no quote from the Internet." - Abraham Lincoln
Re: Rambo servo Pin
yup, made some quick gcode and I've been watching it spin back and forth!
Orion to Cartesian http://forum.seemecnc.com/viewtopic.php?f=59&t=7808" onclick="window.open(this.href);return false;
Re: Rambo servo Pin
here is some thing odd - when I send M340 P2 S1500, it works the servo fine but also zeros the z height and writes that to the epprom . Z max length 0 . it shows it doing it in the log.
Orion to Cartesian http://forum.seemecnc.com/viewtopic.php?f=59&t=7808" onclick="window.open(this.href);return false;
-
- Printmaster!
- Posts: 458
- Joined: Sun Sep 07, 2014 2:39 am
Re: Rambo servo Pin
Looks like a bug in Commands.cpp file. Try to find #endif // FEATURE_SERVO which should be about line 1346.
Insert a new line above it that contains just break; and be sure to include that semicolon. Compile and upload with that change and the Z issue should be gone.
Insert a new line above it that contains just break; and be sure to include that semicolon. Compile and upload with that change and the Z issue should be gone.
"Trust no quote from the Internet." - Abraham Lincoln
Re: Rambo servo Pin
Sweet, I'll give it a go tomorrow.Earthbound wrote:Looks like a bug in Commands.cpp file. Try to find #endif // FEATURE_SERVO which should be about line 1346.
Insert a new line above it that contains just break; and be sure to include that semicolon. Compile and upload with that change and the Z issue should be gone.
Orion to Cartesian http://forum.seemecnc.com/viewtopic.php?f=59&t=7808" onclick="window.open(this.href);return false;
Re: Rambo servo Pin
Yes, that worked. I am in your debt.
Orion to Cartesian http://forum.seemecnc.com/viewtopic.php?f=59&t=7808" onclick="window.open(this.href);return false;
-
- Printmaster!
- Posts: 458
- Joined: Sun Sep 07, 2014 2:39 am
Re: Rambo servo Pin
Glad to hear that solved the problem.
"Trust no quote from the Internet." - Abraham Lincoln
Re: Rambo servo Pin
The Y axis Motor has started acting up. It only goes one direction. I have swapped it with one of the other motors and the motor itself is fine. The problem followed to the other motor.
I have reassigned the motor plug to the spare extruder E1 plug, changed the pin assignments and the motor current in the configuration.h file. The motor acts the same. It may give a little tiny noise when you want it to move. Any other tricks or do we think the RAMBo has failed?
Thanks
I have reassigned the motor plug to the spare extruder E1 plug, changed the pin assignments and the motor current in the configuration.h file. The motor acts the same. It may give a little tiny noise when you want it to move. Any other tricks or do we think the RAMBo has failed?
Thanks
Orion to Cartesian http://forum.seemecnc.com/viewtopic.php?f=59&t=7808" onclick="window.open(this.href);return false;
-
- Printmaster!
- Posts: 458
- Joined: Sun Sep 07, 2014 2:39 am
Re: Rambo servo Pin
Does the Y axis only move down? Did you run new wires or move wires that could now be falsely tripping the Y tower end stop? If you disable the servo feature, does it restore normal Y movement?
"Trust no quote from the Internet." - Abraham Lincoln
Re: Rambo servo Pin
The servo was disconnected, completely unplugged. I even unplugged the end stop wires from the board to be sure there wasn't crosstalk . Still only moves down.
Orion to Cartesian http://forum.seemecnc.com/viewtopic.php?f=59&t=7808" onclick="window.open(this.href);return false;
Re: Rambo servo Pin. Update
Ok, found the problem. The limit switch is defective. It sounded funny when I clicked it, not the the same click as the others. Ran the m119 and it confirmed. As always one should check the simplest things first!! Live and learn.
Orion to Cartesian http://forum.seemecnc.com/viewtopic.php?f=59&t=7808" onclick="window.open(this.href);return false;