Rambo servo Pin. Update

User-Generated tips and tricks for the Rostock Max, Orion, H1.1, or H1 Printers
Post Reply
Holy1
Printmaster!
Posts: 344
Joined: Fri Jan 24, 2014 12:53 pm

Rambo servo Pin. Update

Post by Holy1 »

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
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;
Earthbound
Printmaster!
Posts: 458
Joined: Sun Sep 07, 2014 2:39 am

Re: Rambo servo Pin

Post by Earthbound »

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.
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
Holy1
Printmaster!
Posts: 344
Joined: Fri Jan 24, 2014 12:53 pm

Re: Rambo servo Pin

Post by Holy1 »

Earthbound wrote:Pin 5 is your best bet.
ok, thanks. How do I locate where it is on the board?
Orion to Cartesian http://forum.seemecnc.com/viewtopic.php?f=59&t=7808" onclick="window.open(this.href);return false;
Earthbound
Printmaster!
Posts: 458
Joined: Sun Sep 07, 2014 2:39 am

Re: Rambo servo Pin

Post by Earthbound »

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
Holy1
Printmaster!
Posts: 344
Joined: Fri Jan 24, 2014 12:53 pm

Re: Rambo servo Pin

Post by Holy1 »

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;
Holy1
Printmaster!
Posts: 344
Joined: Fri Jan 24, 2014 12:53 pm

Re: Rambo servo Pin

Post by Holy1 »

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;
Earthbound
Printmaster!
Posts: 458
Joined: Sun Sep 07, 2014 2:39 am

Re: Rambo servo Pin

Post by Earthbound »

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
"Trust no quote from the Internet." - Abraham Lincoln
Earthbound
Printmaster!
Posts: 458
Joined: Sun Sep 07, 2014 2:39 am

Re: Rambo servo Pin

Post by Earthbound »

Sounds like you got it figured out while I was typing.
"Trust no quote from the Internet." - Abraham Lincoln
Holy1
Printmaster!
Posts: 344
Joined: Fri Jan 24, 2014 12:53 pm

Re: Rambo servo Pin

Post by Holy1 »

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;
Holy1
Printmaster!
Posts: 344
Joined: Fri Jan 24, 2014 12:53 pm

Re: Rambo servo Pin

Post by Holy1 »

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;
Earthbound
Printmaster!
Posts: 458
Joined: Sun Sep 07, 2014 2:39 am

Re: Rambo servo Pin

Post by Earthbound »

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.
"Trust no quote from the Internet." - Abraham Lincoln
Holy1
Printmaster!
Posts: 344
Joined: Fri Jan 24, 2014 12:53 pm

Re: Rambo servo Pin

Post by Holy1 »

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.
Sweet, I'll give it a go tomorrow.
Orion to Cartesian http://forum.seemecnc.com/viewtopic.php?f=59&t=7808" onclick="window.open(this.href);return false;
Holy1
Printmaster!
Posts: 344
Joined: Fri Jan 24, 2014 12:53 pm

Re: Rambo servo Pin

Post by Holy1 »

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;
Earthbound
Printmaster!
Posts: 458
Joined: Sun Sep 07, 2014 2:39 am

Re: Rambo servo Pin

Post by Earthbound »

Glad to hear that solved the problem.
"Trust no quote from the Internet." - Abraham Lincoln
Holy1
Printmaster!
Posts: 344
Joined: Fri Jan 24, 2014 12:53 pm

Re: Rambo servo Pin

Post by Holy1 »

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
Orion to Cartesian http://forum.seemecnc.com/viewtopic.php?f=59&t=7808" onclick="window.open(this.href);return false;
Earthbound
Printmaster!
Posts: 458
Joined: Sun Sep 07, 2014 2:39 am

Re: Rambo servo Pin

Post by Earthbound »

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
Holy1
Printmaster!
Posts: 344
Joined: Fri Jan 24, 2014 12:53 pm

Re: Rambo servo Pin

Post by Holy1 »

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;
Holy1
Printmaster!
Posts: 344
Joined: Fri Jan 24, 2014 12:53 pm

Re: Rambo servo Pin. Update

Post by Holy1 »

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;
Post Reply

Return to “General Tips 'N Tricks”