Uncategorized

Firmware and Endstops

The Armstrong uses a fork of Marlin developed by ttsalo. It was configured by him to support SCARA movement and can be found here: https://github.com/ttsalo/Armstrong-SCARA. Some explanation and modification are in order, however. Under configuration.h, the arm lenghts are adjusted to that of the printer in use by changing the variable scara_seg1_len and scara_seg2_len. Scara_axis_spacing is the distance between the arms’ stepper motors. It is very important that the hotend starts at a predetermined position, governed by the variable scara_axis_y. This refers to the distance from the outside edge of the build platform moving inward along the y axis towards the machine. For example, my build platform is set to 200 mm, and scara_axis_y is set to -82, meaning that measuring from the outside edge, the hotend should be postioned 82 mm inward from the edge of the platform for the print to be accurate.

In order for the prints to begin in an accurate position, endstops are very handy, but the stock firmware does not have them enabled. To do this, navigate to the marlin_main.cpp section and scroll down to G28. It will be disabled with a break command. Delete the break, then navigate to the configuration.h section and locate the code that governs homing direction. Set the Y axis to home to the negative direction and the X axis to home to the positive. Finally, in the Slicer of your choice add the following commands to the custom start Gcode:

G28 //Home all Axis

G92 X0 Y0 Z0 // Set current position to zero

This will take care of the homeing of the arms. Make sure that the final position set by the G92 command is the same position denoted by the scara_axis_y setting. The Armstrong endstops are comletely adjustable and fold up out of the way for storage.

IMG_2022

IMG_2019

Advertisements
Standard

4 thoughts on “Firmware and Endstops

  1. cifi79 says:

    Hi Brent, nice work!
    I don’t understand if your final printer is made in Morgan configuration or with two separate arms.
    And another thing that I don’t understand is if you put the spring to eliminate the backlash or not.
    Have the project been opened yet?

    Like

    • The final configuration was based on ttsalo’s work with two separate arms. There is better firmware than his available now. Just check through the SCARA boards over at reprap.org. The springs are very effective in removing backlash in relatively inexpensive geared stepper motors. The project itself is gathering dust in my garage at the moment so there’s nothing really to open up. If you have anymore questions, feel free to ask and I’ll see how I can help.

      Like

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s