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

Re: Megatronics 2.0 -> Connect servo for z-axis probing

$
0
0
Hi Rigor, thanks for you reply!

I GOT IT WORKING! And thanks for the warning about the 5V bridge, I removed it before testing!

Here are some details - for all who wish to add the automatic leveling by using the Megatronics 2.0:

Basically you need three things: +5V, GND and a Atmega port which is capable of PWM (pulsewidth modulation). According to the Atmega Datasheet on the 2560 for example the following port can do that : PORT L03 to PORT L05.

And a servo of course: I got one out of my old modelplane spare parts box. It is a Graupner C508 which is for 4,8V use, so 5V is not too much. But any similar type should do fine as well. The maximum current (when pressing against the holding torque is about 300mA - so you should use an adequate power source - just like Rigor mentioned). When testing I figured out that moving one of the steppers causes some oscilating motion on the servo. So I attached an open ferrite core on the servo cable which kills the stray voltage.

I decided to use the AUX4 port which is great for this job. Two of the needed pins are located at AUX4 (PORT L03 and PORT L04). I'm using PORT L03 which is called D44_AUX4_3 in the wiring diagram of the Megatronics 2.0

Besides the configuration in the configuration.h (enable "Auto Bed Leveling Support" and "R/C Servo Support") you have to add the following lines into the pins.h (within the chapter which is about the Megatronics 2.0, type 701):

#ifdef NUM_SERVOS
#define SERVO0_PIN 44
#endif

...saving, compiling, uploading and here we go!



Viewing all articles
Browse latest Browse all 10211

Trending Articles



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