Quantcast
Channel: Reprap Forum - Controllers
Viewing all articles
Browse latest Browse all 10211

Re: Servos to Rambo 1.2 d

$
0
0
just put the orange signal wire from the servo on pin 6 of the EXT1 header.
Pin 1 is +5V
Pin 2 is ground.

in the pins.h file, you need to define the pin, under the 301 motherboard section.
#define SERVO0_PIN 4 // RAMBO ext1 pin 6, verified to work
this is 1x6 straight pin header, right above the Mega processor, when looking at the board with green connectors at the top.
Pin 1 is the left pin, with a small 1 indicating it.
if you put the voltage backwards, the servo is dead, in my experience. plus it heats up quickly.

change the number of servos to 1 in config.h.

use M280 p0 s45 to rotate it to 45 degrees. you can also use pulse widths to determine the farthest ends.
m280 p0 s550 or 535 or 540 or whatever.

you can time the servo to the correct 0 and 180 degree extents, in the servo.h file.
generally, the 550 range signal is close to the zero point.
the 2500 is close to the full extent.
these are pulse widths to drive an angle. you need to play around and set those so there is no chatter at either endpoint.
if you hear the servo chatter at the extent, it might be trying to rotate beyond its physical limit.
This can cause overheating, so you need to tune tune the pulse width so it stops near the limit, and no chatter.


#define MIN_PULSE_WIDTH 535 // the shortest pulse sent to a servo
#define MAX_PULSE_WIDTH 2390 // the longest pulse sent to a servo
#define DEFAULT_PULSE_WIDTH 1465 // default pulse width when servo is attached
#define REFRESH_INTERVAL 20000 // minimum time to refresh servos in microseconds

Viewing all articles
Browse latest Browse all 10211

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>