<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel>
        <title>Servo Motor Help</title>
        <description> So I&#039;m using the Servo Motor design and am new to all of this and I have some questions.
How do I connect the servo motor to the RAMPS Board?
What do I do to the Gcode the actually move the motor?

I&#039;m just a little confused about how it&#039;s going to work. Any help?</description>
        <link>https://reprap.org/forum/read.php?344,369563,369563#msg-369563</link>
        <lastBuildDate>Fri, 11 Sep 2026 00:13:56 -0400</lastBuildDate>
        <generator>Phorum 5.2.23</generator>
        <item>
            <guid>https://reprap.org/forum/read.php?344,369563,401328#msg-401328</guid>
            <title>Re: Servo Motor Help</title>
            <link>https://reprap.org/forum/read.php?344,369563,401328#msg-401328</link>
            <description><![CDATA[ <blockquote class="bbcode"><div><small>Quote<br /></small><strong>nitewing76</strong><br />
M-Codes and G-Codes are nice for temporary...on-the-spot adjstments. You should always mimic these changes in the configuration.h through WinMerge or Notepad++. Othersiwse, you could lose all calibration data (e.g. auto-bed level, DEFAULT_AXIS_STEPS_PER_UNIT, etc). <br />
Not really sure why Smartrap says to put the servo on the I2C bus, when, as RegPye pointed out, the board already has places for them. Though this is not a bad idea, if the intent is to prevent the servo wires from interfering with the airflow blowing across the heat-sinks.<br />
Adding a LM7805 is a good idea, but according to the datasheet to ensure a clean signal you’ll need a 0.33uF capacitor between pins 1 and 3, then a 0.1uF capacitor between pins 2 and 3.<br />
<br />
MeIT...the RAMPS board doesn’t have a regulator. Do you mean the MOSFETs?<br />
<br />
My configuration.h offets:<br />
  #define X_PROBE_OFFSET_FROM_EXTRUDER 1.8<br />
  #define Y_PROBE_OFFSET_FROM_EXTRUDER -14.1<br />
  #define Z_PROBE_OFFSET_FROM_EXTRUDER -5.8<br />
<br />
Here is my starting GCode…<br />
G1 Z10.0 F500 ;ensures probe have enough clearance<br />
M400 ;Wait for clearance<br />
M401;deploy probe<br />
G28 X0 Y0;Home X and Y Axis<br />
G90; Set to Absolute Positioning<br />
G29; Probe the bed<br />
G1 Z10.0 F500;Clearance for retraction<br />
M400 ;Wait for cearance<br />
M280 P0 S0;Retract probe<br />
M400;wait<br />
G1 X10 Y10 Z10; Moves close to origin and await proper temp.<br />
<br />
Be very cautious when ordering the important stuff  (Arduinos, RAMPS, Printrboard, StepSticks, E3D V5/6 clones) from China...ESPECIALLY Geetech!! They are "cheap" because they substitute components of lesser quality and do not always make their boards with the appropriate amount of copper capable of carrying the required amounts of current through the board. The best place to get the Arduino Mega 2560, RAMPS 1.4, and StepSticks is from <a href="http://www.ebay.com/sch/kbellenterprises/m.html?_nkw=&amp;_armrs=1&amp;_ipg=&amp;_from=" target="_blank"  rel="nofollow">kbellenterprises</a> on eBay (ships from near St Louis, MO). <a href="http://www.ebay.com/sch/botronicz/m.html?item=140967386673&amp;hash=item20d24f9e31&amp;pt=LH_DefaultDomain_0&amp;rt=nc&amp;_trksid=p2047675.l2562" target="_blank"  rel="nofollow">Botronicz</a> does a better job at soldering, but they sometimes take a week or two to ship from Michigan.<br />
<br />
I hope I didn't sound harsh...I'm also watching football.</div></blockquote>
<br />
i would have to concur about Geeetech and the quality. I have purchased a very lot from them, mostly in a few batches, and have found a large loss due to faulty boards.<br />
I will say that they have been very good and replaced quickly, but when some of the replacements were also faulty, I stopped dealing with them. <br />
<br />
Here is my start code using the latest Cura<br />
<br />
;Print time: {print_time}<br />
;Filament used: {filament_amount}m {filament_weight}g<br />
;Filament cost: {filament_cost}<br />
;M190 S{print_bed_temperature} ;Uncomment to add your own bed temperature line<br />
;M109 S{print_temperature} ;Uncomment to add your own temperature line<br />
G21        ;metric values<br />
G90        ;absolute positioning<br />
M107       ;start with the fan off<br />
G92        ;zero all axis<br />
G1 Z10.0 F{travel_speed} ;lift nozzle for bed clearance 10mm<br />
G28       ;home all axis<br />
G29       ;auto bed leveling probes<br />
G92 E0    ;reset extruder<br />
M82  ;set extruder mode<br />
G1 X5 Y5  ;almost home X and Y axis<br />
G1 Z0.5   ;move nozzle to print height<br />
G1 E40 X90 F700  ;extrude some filament in a short line to prime the nozzle.<br />
G92 E0        ;zero the extruded length again<br />
;Put printing message on LCD screen<br />
M117 Printing...]]></description>
            <dc:creator>regpye</dc:creator>
            <category>Smart_Rap</category>
            <pubDate>Sun, 31 Aug 2014 01:42:49 -0400</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?344,369563,401267#msg-401267</guid>
            <title>Re: Servo Motor Help</title>
            <link>https://reprap.org/forum/read.php?344,369563,401267#msg-401267</link>
            <description><![CDATA[ M-Codes and G-Codes are nice for temporary...on-the-spot adjstments. You should always mimic these changes in the configuration.h through WinMerge or Notepad++. Othersiwse, you could lose all calibration data (e.g. auto-bed level, DEFAULT_AXIS_STEPS_PER_UNIT, etc). <br />
Not really sure why Smartrap says to put the servo on the I2C bus, when, as RegPye pointed out, the board already has places for them. Though this is not a bad idea, if the intent is to prevent the servo wires from interfering with the airflow blowing across the heat-sinks.<br />
Adding a LM7805 is a good idea, but according to the datasheet to ensure a clean signal you’ll need a 0.33uF capacitor between pins 1 and 3, then a 0.1uF capacitor between pins 2 and 3.<br />
<br />
MeIT...the RAMPS board doesn’t have a regulator. Do you mean the MOSFETs?<br />
<br />
My configuration.h offets:<br />
  #define X_PROBE_OFFSET_FROM_EXTRUDER 1.8<br />
  #define Y_PROBE_OFFSET_FROM_EXTRUDER -14.1<br />
  #define Z_PROBE_OFFSET_FROM_EXTRUDER -5.8<br />
<br />
Here is my starting GCode…<br />
G1 Z10.0 F500 ;ensures probe have enough clearance<br />
M400 ;Wait for clearance<br />
M401;deploy probe<br />
G28 X0 Y0;Home X and Y Axis<br />
G90; Set to Absolute Positioning<br />
G29; Probe the bed<br />
G1 Z10.0 F500;Clearance for retraction<br />
M400 ;Wait for cearance<br />
M280 P0 S0;Retract probe<br />
M400;wait<br />
G1 X10 Y10 Z10; Moves close to origin and await proper temp.<br />
<br />
Be very cautious when ordering the important stuff  (Arduinos, RAMPS, Printrboard, StepSticks, E3D V5/6 clones) from China...ESPECIALLY Geetech!! They are "cheap" because they substitute components of lesser quality and do not always make their boards with the appropriate amount of copper capable of carrying the required amounts of current through the board. The best place to get the Arduino Mega 2560, RAMPS 1.4, and StepSticks is from <a href="http://www.ebay.com/sch/kbellenterprises/m.html?_nkw=&amp;_armrs=1&amp;_ipg=&amp;_from=" target="_blank"  rel="nofollow">kbellenterprises</a> on eBay (ships from near St Louis, MO). <a href="http://www.ebay.com/sch/botronicz/m.html?item=140967386673&amp;hash=item20d24f9e31&amp;pt=LH_DefaultDomain_0&amp;rt=nc&amp;_trksid=p2047675.l2562" target="_blank"  rel="nofollow">Botronicz</a> does a better job at soldering, but they sometimes take a week or two to ship from Michigan.<br />
<br />
I hope I didn't sound harsh...I'm also watching football.]]></description>
            <dc:creator>nitewing76</dc:creator>
            <category>Smart_Rap</category>
            <pubDate>Sat, 30 Aug 2014 18:19:43 -0400</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?344,369563,372629#msg-372629</guid>
            <title>Re: Servo Motor Help</title>
            <link>https://reprap.org/forum/read.php?344,369563,372629#msg-372629</link>
            <description><![CDATA[ <a href="https://github.com/ErikZalm/Marlin" target="_blank"  rel="nofollow">https://github.com/ErikZalm/Marlin</a><br />
<br />
I think Serge added the M555 into the Smartrap version of Marlin for the Z offset adjustment.<br />
<br />
Anyways it works... After you get the Z offset correct the first time, you'll only do minor adjustments.<br />
<br />
Oh yeah, after you set the EEPROM with M555, make sure you use M500 to save it...]]></description>
            <dc:creator>madmike8</dc:creator>
            <category>Smart_Rap</category>
            <pubDate>Fri, 20 Jun 2014 19:50:02 -0400</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?344,369563,372624#msg-372624</guid>
            <title>Re: Servo Motor Help</title>
            <link>https://reprap.org/forum/read.php?344,369563,372624#msg-372624</link>
            <description><![CDATA[ Thanks madmike! :)<br />
<br />
I doubted it at first because the <a href="http://reprap.org/wiki/G-code" target="_blank"  rel="nofollow">reprap documentation</a> says M555 was for another thing and it mentioned M565 as the one for z offset.  <br />
<br />
M555 worked for me! I just can't change the value in the LCD controller though. The Z offset in the LCD controller is somehow limited to 3. I can't go past that value so I'll still be using the startup gcode for small adjustments.<br />
<br />
Do you have a link to the gcodes specific to Marlin?  <a href="http://reprap.org/wiki/G-code" target="_blank"  rel="nofollow">This source</a> seems to be outdated.]]></description>
            <dc:creator>MelT</dc:creator>
            <category>Smart_Rap</category>
            <pubDate>Fri, 20 Jun 2014 19:29:04 -0400</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?344,369563,372436#msg-372436</guid>
            <title>Re: Servo Motor Help</title>
            <link>https://reprap.org/forum/read.php?344,369563,372436#msg-372436</link>
            <description><![CDATA[ Melt try setting it with the EEPROM by M555 Z14.7]]></description>
            <dc:creator>madmike8</dc:creator>
            <category>Smart_Rap</category>
            <pubDate>Fri, 20 Jun 2014 11:39:00 -0400</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?344,369563,372271#msg-372271</guid>
            <title>Re: Servo Motor Help</title>
            <link>https://reprap.org/forum/read.php?344,369563,372271#msg-372271</link>
            <description><![CDATA[ And for some reason, changing the Z_PROBE_OFFSET_FROM_EXTRUDER in the configuration.h never worked for me.  I hope it did but what worked for me was the alternative way to deal with Z offset which I find easier. <br />
<br />
It is by making use of the G92 command in the startup GCODE. <br />
<br />
G28 X0 Y0      ;move X/Y to min endstops<br />
G29 		        ;probe bed<br />
G92 E0            ;zero the extruded length<br />
<span style="color:#0033FF">G1 Z10</span>            ;raise nozzle by 10mm<br />
<span style="color:#0033FF">G92 Z14.7</span>       ;z offset - higher number will bring nozzle closer to the bed during printing<br />
<br />
The difference between the Z values will be the offset.  So in the case above, the offset is 4.7<br />
<br />
I've tried Slic3r and Cura and this method worked for both.]]></description>
            <dc:creator>MelT</dc:creator>
            <category>Smart_Rap</category>
            <pubDate>Fri, 20 Jun 2014 01:05:47 -0400</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?344,369563,372269#msg-372269</guid>
            <title>Re: Servo Motor Help</title>
            <link>https://reprap.org/forum/read.php?344,369563,372269#msg-372269</link>
            <description><![CDATA[ <blockquote class="bbcode"><div><small>Quote<br /></small><strong>BradStaff</strong><br />
That's not the only thing keeping me from printing. I fried my arduino board and am waiting on a replacement voltage regulator. China mail is taking its time. When I fix that I'll have to fix some hotend voltage problems. My question about the servo motors is how does the code know the distance between the endstop and the hotend so that it prints correctly?</div></blockquote>
<br />
The regulator on my RAMPS broke too, and still is. If you are using an ATX power supply, you may not need to replace your regulator.  Maybe this can show you how I got around a broken regulator. <br />
[<a href="http://www.youtube.com/watch?v=gMCcKfRmm8A" target="_blank"  rel="nofollow">www.youtube.com</a>]<br />
<br />
Like you, I also had my fair share of obstacles during my build that I had to get around :)]]></description>
            <dc:creator>MelT</dc:creator>
            <category>Smart_Rap</category>
            <pubDate>Fri, 20 Jun 2014 00:53:24 -0400</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?344,369563,372213#msg-372213</guid>
            <title>Re: Servo Motor Help</title>
            <link>https://reprap.org/forum/read.php?344,369563,372213#msg-372213</link>
            <description><![CDATA[ Thanks. This explains a lot. I'm new to a lot of this.]]></description>
            <dc:creator>BradStaff</dc:creator>
            <category>Smart_Rap</category>
            <pubDate>Thu, 19 Jun 2014 19:30:42 -0400</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?344,369563,372208#msg-372208</guid>
            <title>Re: Servo Motor Help</title>
            <link>https://reprap.org/forum/read.php?344,369563,372208#msg-372208</link>
            <description><![CDATA[ <blockquote class="bbcode"><div><small>Quote<br /></small><strong>madmike8</strong><br />
Z offset.<br />
<br />
Mark the spot on the bed. <br />
Maneuver your nozzle over the spot and lower till it just touches the glass. Raise it .1 or until a piece of paper just slides under it.<br />
Set Z to 0 using M555 Z0<br />
Maneuver your probe over the spot.<br />
M401 lowers the Z probe.<br />
Lower the Z axis testing the Z Endstop after each step for triggered using M119<br />
After it triggers use M114 to get the location of the Z axis<br />
Set the Z offset with M555 Zx where x was the number listed for Z with the M114 command<br />
i.e. M555 Z15.5 <br />
Use M500 to store the value on the EEPROM.<br />
M402 raises the probe.<br />
<br />
I added buttons in Ponterface for Lowering Probe, Raise Probe, Save to EEPROM. Test Probe Spot, Test Nozzle Spot<br />
That makes life easier.<br />
<br />
Since there is some movement with the Z axis on the Smartrap, I have to adjust it every now and again. I usually take the starting Z offset and adjust it up or down .1 at a time using the M555 Zx command  till it lays down a nice looking layer. Then use M500 to save it. To skip from doing the whole process again.</div></blockquote>
<br />
Well put MadMike8]]></description>
            <dc:creator>regpye</dc:creator>
            <category>Smart_Rap</category>
            <pubDate>Thu, 19 Jun 2014 18:56:38 -0400</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?344,369563,372056#msg-372056</guid>
            <title>Re: Servo Motor Help</title>
            <link>https://reprap.org/forum/read.php?344,369563,372056#msg-372056</link>
            <description><![CDATA[ Z offset.<br />
<br />
Mark the spot on the bed. <br />
Maneuver your nozzle over the spot and lower till it just touches the glass. Raise it .1 or until a piece of paper just slides under it.<br />
Set Z to 0 using M555 Z0<br />
Maneuver your probe over the spot.<br />
M401 lowers the Z probe.<br />
Lower the Z axis testing the Z Endstop after each step for triggered using M119<br />
After it triggers use M114 to get the location of the Z axis<br />
Set the Z offset with M555 Zx where x was the number listed for Z with the M114 command<br />
i.e. M555 Z15.5 <br />
Use M500 to store the value on the EEPROM.<br />
M402 raises the probe.<br />
<br />
I added buttons in Ponterface for Lowering Probe, Raise Probe, Save to EEPROM. Test Probe Spot, Test Nozzle Spot<br />
That makes life easier.<br />
<br />
Since there is some movement with the Z axis on the Smartrap, I have to adjust it every now and again. I usually take the starting Z offset and adjust it up or down .1 at a time using the M555 Zx command  till it lays down a nice looking layer. Then use M500 to save it. To skip from doing the whole process again.]]></description>
            <dc:creator>madmike8</dc:creator>
            <category>Smart_Rap</category>
            <pubDate>Thu, 19 Jun 2014 12:59:31 -0400</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?344,369563,372037#msg-372037</guid>
            <title>Re: Servo Motor Help</title>
            <link>https://reprap.org/forum/read.php?344,369563,372037#msg-372037</link>
            <description><![CDATA[ On or about line 401, you will see this in Configuration.h (assuming your using the Marlin firmware from the Smartrap repo.) <br />
<br />
<pre class="bbcode">
#define Z_PROBE_OFFSET_FROM_EXTRUDER 2.2</pre>
<br />
That's your Z offset. You can also set this with your LCD controller if you have one. Its in the Control &gt; Motion section.]]></description>
            <dc:creator>markstephen</dc:creator>
            <category>Smart_Rap</category>
            <pubDate>Thu, 19 Jun 2014 12:30:05 -0400</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?344,369563,371988#msg-371988</guid>
            <title>Re: Servo Motor Help</title>
            <link>https://reprap.org/forum/read.php?344,369563,371988#msg-371988</link>
            <description><![CDATA[ That's not the only thing keeping me from printing. I fried my arduino board and am waiting on a replacement voltage regulator. China mail is taking its time. When I fix that I'll have to fix some hotend voltage problems. My question about the servo motors is how does the code know the distance between the endstop and the hotend so that it prints correctly?]]></description>
            <dc:creator>BradStaff</dc:creator>
            <category>Smart_Rap</category>
            <pubDate>Thu, 19 Jun 2014 09:59:00 -0400</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?344,369563,371890#msg-371890</guid>
            <title>Re: Servo Motor Help</title>
            <link>https://reprap.org/forum/read.php?344,369563,371890#msg-371890</link>
            <description><![CDATA[ @Brad,  is the servo the only thing keeping you from printing?  <br />
In case you need to print something urgently, let me show you how to do bed leveling semi-automatically (even with a broken servo:))<br />
<br />
Here's how my autolevel sequence goes every print while my servo is waiting to be replaced.  <a href="http://www.youtube.com/watch?v=8H40fNVSUdI" target="_blank"  rel="nofollow">http://www.youtube.com/watch?v=8H40fNVSUdI</a><br />
<br />
I used the M300 gcode to make my smartrap beep to remind me when to lower or raise the servo arm (:P) I just refuse to let my broken servo stop me from printing. Hehehe]]></description>
            <dc:creator>MelT</dc:creator>
            <category>Smart_Rap</category>
            <pubDate>Thu, 19 Jun 2014 06:07:44 -0400</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?344,369563,369595#msg-369595</guid>
            <title>Re: Servo Motor Help</title>
            <link>https://reprap.org/forum/read.php?344,369563,369595#msg-369595</link>
            <description><![CDATA[ If your using "stock" Marlin source, I believe Reg is very correct with what he posted, either way should work, but mixing the 2 won't.]]></description>
            <dc:creator>markstephen</dc:creator>
            <category>Smart_Rap</category>
            <pubDate>Fri, 13 Jun 2014 23:55:24 -0400</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?344,369563,369591#msg-369591</guid>
            <title>Re: Servo Motor Help</title>
            <link>https://reprap.org/forum/read.php?344,369563,369591#msg-369591</link>
            <description><![CDATA[ That's what I thought but then RegPye posted that and I didn't know what was going on.]]></description>
            <dc:creator>BradStaff</dc:creator>
            <category>Smart_Rap</category>
            <pubDate>Fri, 13 Jun 2014 23:37:12 -0400</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?344,369563,369590#msg-369590</guid>
            <title>Re: Servo Motor Help</title>
            <link>https://reprap.org/forum/read.php?344,369563,369590#msg-369590</link>
            <description><![CDATA[ What I posted works for the Smartrap Marlin Firmware found on Github here - [<a href="https://github.com/smartfriendz/smartrap/tree/master/firmware/Marlin" target="_blank"  rel="nofollow">github.com</a>] <br />
<br />
i was using this until I got my no servo J Head mount printed out. <br />
<br />
Mark]]></description>
            <dc:creator>markstephen</dc:creator>
            <category>Smart_Rap</category>
            <pubDate>Fri, 13 Jun 2014 23:33:58 -0400</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?344,369563,369586#msg-369586</guid>
            <title>Re: Servo Motor Help</title>
            <link>https://reprap.org/forum/read.php?344,369563,369586#msg-369586</link>
            <description><![CDATA[ <blockquote class="bbcode"><div><small>Quote<br /></small><strong>madmike8</strong><br />
Doh! I thought he was talking about servo motors instead of steppers... The new meds the doc has me on has been screwing with my head. Hopefully it levels out soon...</div></blockquote>
Wait. I am talking about servos. The one for the autolevel. I'm so confused. Who's right?]]></description>
            <dc:creator>BradStaff</dc:creator>
            <category>Smart_Rap</category>
            <pubDate>Fri, 13 Jun 2014 23:25:17 -0400</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?344,369563,369583#msg-369583</guid>
            <title>Re: Servo Motor Help</title>
            <link>https://reprap.org/forum/read.php?344,369563,369583#msg-369583</link>
            <description><![CDATA[ Doh! I thought he was talking about servo motors instead of steppers... The new meds the doc has me on has been screwing with my head. Hopefully it levels out soon...]]></description>
            <dc:creator>madmike8</dc:creator>
            <category>Smart_Rap</category>
            <pubDate>Fri, 13 Jun 2014 23:18:45 -0400</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?344,369563,369581#msg-369581</guid>
            <title>Re: Servo Motor Help</title>
            <link>https://reprap.org/forum/read.php?344,369563,369581#msg-369581</link>
            <description><![CDATA[ It is pretty easy to do.<br />
This is the correct way to do it, there are other ways.<br />
First arrange your 5 volt power for the servo. Don't take the lazy way and just short the VCC and 5v pins together on the RAMPS board, it will rob the power from the rest of the board and will let you down. A regulator chip is about a dollar or less, available at any electronics supply shop or online at ebay.<br />
<br />
<div id="div_de6493686154140bcafe027a71a8f3b2"
     class="mod_embed_images"
     style="width:244px">

  

    
      
    

    <div id="imagediv_de6493686154140bcafe027a71a8f3b2" class="mod_embed_images_image"
         style="width:244px; height:193px">

    

    <a href="http://regpye.com.au/images/7805.jpg">
        <img src="/forum/thumbcache/ad3/965/464/aa7/058/ca1/f0d/14e/d65/b55/d5_800x400.jpg"
             width="244"
             height="193"
             id="image_de6493686154140bcafe027a71a8f3b2"
             alt="7805.jpg"
             title="7805.jpg"/>
    </a>

    

    </div>

    <div class="mod_embed_images_info " id="info_de6493686154140bcafe027a71a8f3b2"
      >
      <a id="link_de6493686154140bcafe027a71a8f3b2" href="http://regpye.com.au/images/7805.jpg">7805.jpg</a>
    </div>

  

 </div>


<script type="text/javascript">
mod_embed_images_loadimage('de6493686154140bcafe027a71a8f3b2', '/forum/thumbcache/ad3/965/464/aa7/058/ca1/f0d/14e/d65/b55/d5_800x400.jpg', 'http://regpye.com.au/images/7805.jpg', 'https://reprap.org/forum/addon.php?344,module=embed_images,check_scaling=1,url=http%3A%2F%2Fregpye.com.au%2Fimages%2F7805.jpg', '', 369581, 800, 400, 'Loading image ...', false);
</script>
<br />
<br />
<div id="div_2074662b9366876a5770bc1ff2a0fca8"
     class="mod_embed_images_extended"
     style="width:533px">

  

    
      
    

    <div id="imagediv_2074662b9366876a5770bc1ff2a0fca8" class="mod_embed_images_image"
         style="width:533px; height:400px">

    

    <a href="http://regpye.com.au/BAL/5-volts.jpg">
        <img src="/forum/thumbcache/502/eb1/0e2/841/fc3/95f/5f9/9fe/733/2e8/2c_800x400.png"
             width="533"
             height="400"
             id="image_2074662b9366876a5770bc1ff2a0fca8"
             alt="5-volts.jpg"
             title="5-volts.jpg"/>
    </a>

    

    </div>

    <div class="mod_embed_images_info " id="info_2074662b9366876a5770bc1ff2a0fca8"
      style="display:block">
      <a id="link_2074662b9366876a5770bc1ff2a0fca8" href="http://regpye.com.au/BAL/5-volts.jpg">5-volts.jpg</a>
    </div>

  

 </div>


<script type="text/javascript">
mod_embed_images_loadimage('2074662b9366876a5770bc1ff2a0fca8', '/forum/thumbcache/502/eb1/0e2/841/fc3/95f/5f9/9fe/733/2e8/2c_800x400.png', 'http://regpye.com.au/BAL/5-volts.jpg', 'https://reprap.org/forum/addon.php?344,module=embed_images,check_scaling=1,url=http%3A%2F%2Fregpye.com.au%2FBAL%2F5-volts.jpg', '', 369581, 800, 400, 'Loading image ...', false);
</script>
<br />
Get a 7805 voltage regulator chip and connect pins 1 and two across the 12 volt power supply line and pin 3 is the 5 volt out. Connect the 5 volt out to the 5v pin on the RAMPS board near the reset button. That's the power supply sorted out.<br />
<br />
Now there are 3 rows of pins on the right hand side of the reset button, these are for four servos. Use the first set of pins closest to the rest button. The middle pin is positive,the pin closest to the edge of the board is negative and the pin furthest from the edge is the signal.<br />
Depending on the colours of your particular servo leads, some are red positive, black negative and white signal. Others can be orange positive, brown negative, yellow signal (most common)<br />
<br />
<div id="div_07e04c902aa9cc5910948270826f1cb1"
     class="mod_embed_images"
     >

  

    
      
    

    <div id="imagediv_07e04c902aa9cc5910948270826f1cb1" class="mod_embed_images_image"
         >

    
      

      

      

      

      

      

      <noscript>
      <div>
    

    <a href="http://regpye.com.au/images/servos.jpg">
        <img src="https://reprap.org/forum/addon.php?344,module=embed_images,url=http%3A%2F%2Fregpye.com.au%2Fimages%2Fservos.jpg"
             
             
             id="image_07e04c902aa9cc5910948270826f1cb1"
             alt="servos.jpg"
             title="servos.jpg"/>
    </a>

    
      </div>
      </noscript>
    

    </div>

    <div class="mod_embed_images_info " id="info_07e04c902aa9cc5910948270826f1cb1"
      >
      <a id="link_07e04c902aa9cc5910948270826f1cb1" href="http://regpye.com.au/images/servos.jpg">servos.jpg</a>
    </div>

  

 </div>


<script type="text/javascript">
mod_embed_images_loadimage('07e04c902aa9cc5910948270826f1cb1', 'https://reprap.org/forum/addon.php?344,module=embed_images,url=http%3A%2F%2Fregpye.com.au%2Fimages%2Fservos.jpg', 'http://regpye.com.au/images/servos.jpg', 'https://reprap.org/forum/addon.php?344,module=embed_images,check_scaling=1,url=http%3A%2F%2Fregpye.com.au%2Fimages%2Fservos.jpg', '', 369581, 800, 400, 'Loading image ...', false);
</script>
<br />
<br />
In the configuration.h file, towards the bottom you will find the servo settings.<br />
Make sure that you have servos set at 1 (default is usually 0)<br />
The angle of the servo needs to be set, so this is how I have mine set,<br />
*********************************************************************\<br />
* R/C SERVO support<br />
* Sponsored by TrinityLabs, Reworked by codexmas<br />
**********************************************************************/<br />
<br />
// Number of servos<br />
//<br />
// If you select a configuration below, this will receive a default value and does not need to be set manually<br />
// set it manually if you have more servos than extruders and wish to manually control some<br />
// leaving it undefined or defining as 0 will disable the servo subsystem<br />
// If unsure, leave commented / disabled<br />
//<br />
<b>#define NUM_SERVOS 1</b> // Servo index starts with 0 for M280 command<br />
<br />
// Servo Endstops<br />
//<br />
// This allows for servo actuated endstops, primary usage is for the Z Axis to eliminate calibration or bed height changes.<br />
// Use M206 command to correct for switch height offset to actual nozzle height. Store that setting with M500.<br />
//<br />
<b>#define SERVO_ENDSTOPS {-1, -1, 0}</b> // Servo index for X, Y, Z. Disable with -1<br />
<b>#define SERVO_ENDSTOP_ANGLES {0,0, 0,0, 10,75}</b> // 0,0, 0,0, 95,0 X,Y,Z Axis Extend and Retract angles<br />
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++<br />
<br />
To test the servo angle use Pronterface.<br />
I made a couple of buttons, one called servo up with the command <b>M280 po s10</b>  (that 10 is the up angle, change that to suit what works best for you)<br />
The other button servo down with the command <b>M280 po s95</b> (that is the down angle, change the 95 to suit what works best for yours)<br />
<br />
These buttons are only for testing, you can change the settings as in brackets above and see what angle you should be setting in the firmware.<br />
<br />
Hope this helps you out.<br/>]]></description>
            <dc:creator>regpye</dc:creator>
            <category>Smart_Rap</category>
            <pubDate>Fri, 13 Jun 2014 23:15:13 -0400</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?344,369563,369579#msg-369579</guid>
            <title>Re: Servo Motor Help</title>
            <link>https://reprap.org/forum/read.php?344,369563,369579#msg-369579</link>
            <description><![CDATA[ If you look as the Smartrap Documentation in the Github repo, you will find this pic - <br />
<br />
<div id="div_a324b828b0abb26724f259cb548e44b2"
     class="mod_embed_images"
     >

  

    
      
    

    <div id="imagediv_a324b828b0abb26724f259cb548e44b2" class="mod_embed_images_image"
         >

    
      

      

      

      

      

      

      <noscript>
      <div>
    

    <a href="https://raw.githubusercontent.com/smartfriendz/smartrap/master/doc/smartrap%20ramps%20connections.jpg">
        <img src="https://reprap.org/forum/addon.php?344,module=embed_images,url=https%3A%2F%2Fraw.githubusercontent.com%2Fsmartfriendz%2Fsmartrap%2Fmaster%2Fdoc%2Fsmartrap%2520ramps%2520connections.jpg"
             
             
             id="image_a324b828b0abb26724f259cb548e44b2"
             alt="smartrap%20ramps%20connections.jpg"
             title="smartrap%20ramps%20connections.jpg"/>
    </a>

    
      </div>
      </noscript>
    

    </div>

    <div class="mod_embed_images_info " id="info_a324b828b0abb26724f259cb548e44b2"
      >
      <a id="link_a324b828b0abb26724f259cb548e44b2" href="https://raw.githubusercontent.com/smartfriendz/smartrap/master/doc/smartrap%20ramps%20connections.jpg">smartrap%20ramps%20connections.jpg</a>
    </div>

  

 </div>


<script type="text/javascript">
mod_embed_images_loadimage('a324b828b0abb26724f259cb548e44b2', 'https://reprap.org/forum/addon.php?344,module=embed_images,url=https%3A%2F%2Fraw.githubusercontent.com%2Fsmartfriendz%2Fsmartrap%2Fmaster%2Fdoc%2Fsmartrap%2520ramps%2520connections.jpg', 'https://raw.githubusercontent.com/smartfriendz/smartrap/master/doc/smartrap%20ramps%20connections.jpg', 'https://reprap.org/forum/addon.php?344,module=embed_images,check_scaling=1,url=https%3A%2F%2Fraw.githubusercontent.com%2Fsmartfriendz%2Fsmartrap%2Fmaster%2Fdoc%2Fsmartrap%2520ramps%2520connections.jpg', '', 369579, 800, 400, 'Loading image ...', false);
</script>
<br />
<br />
the servo goes at the end where the stops plug in and remember to flip the positive and negative pins around onthe servo connector or it won't work. Then just just the Smartrap Marlin Firmware from the same Github repo for the servo and you should be on your way. <br />
<br />
The easy way to get the github repo is to simply - <br />
<br />
<pre class="bbcode">
git clone [<a href="https://github.com/smartfriendz/smartrap.git" target="_blank"  rel="nofollow">github.com</a>] Smartrap</pre>
<br />
in your desired directory, unless your on a Mac or that other OS (windows or some such). Then your best bet would be to just download a zip of the repo.<br/>]]></description>
            <dc:creator>markstephen</dc:creator>
            <category>Smart_Rap</category>
            <pubDate>Fri, 13 Jun 2014 23:02:27 -0400</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?344,369563,369566#msg-369566</guid>
            <title>Re: Servo Motor Help</title>
            <link>https://reprap.org/forum/read.php?344,369563,369566#msg-369566</link>
            <description><![CDATA[ <blockquote class="bbcode"><div><small>Quote<br /></small><strong>madmike8</strong><br />
I wish I could help, but the only servo motors I use are for my R/C Airplanes... But I am interested in learning, so I'll be watching this thread too. Might try this question over in the RAMPS section of the reprap forums too..</div></blockquote>
Thanks. I'll do that.]]></description>
            <dc:creator>BradStaff</dc:creator>
            <category>Smart_Rap</category>
            <pubDate>Fri, 13 Jun 2014 22:20:54 -0400</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?344,369563,369565#msg-369565</guid>
            <title>Re: Servo Motor Help</title>
            <link>https://reprap.org/forum/read.php?344,369563,369565#msg-369565</link>
            <description><![CDATA[ I wish I could help, but the only servo motors I use are for my R/C Airplanes... But I am interested in learning, so I'll be watching this thread too. Might try this question over in the RAMPS section of the reprap forums too..]]></description>
            <dc:creator>madmike8</dc:creator>
            <category>Smart_Rap</category>
            <pubDate>Fri, 13 Jun 2014 22:19:27 -0400</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?344,369563,369563#msg-369563</guid>
            <title>Servo Motor Help</title>
            <link>https://reprap.org/forum/read.php?344,369563,369563#msg-369563</link>
            <description><![CDATA[ So I'm using the Servo Motor design and am new to all of this and I have some questions.<br />
How do I connect the servo motor to the RAMPS Board?<br />
What do I do to the Gcode the actually move the motor?<br />
<br />
I'm just a little confused about how it's going to work. Any help?]]></description>
            <dc:creator>BradStaff</dc:creator>
            <category>Smart_Rap</category>
            <pubDate>Fri, 13 Jun 2014 22:08:41 -0400</pubDate>
        </item>
    </channel>
</rss>
