Editing The Eggbot coordinate system

Jump to: navigation, search

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision Your text
Line 1: Line 1:
{{EggBotDocs210}}
+
== Introduction ==
  
 +
'''Note:''' This discussion applies to version 2.1 and later of the Eggbot Control extension.  For earlier versions of the Eggbot Control extension, see [[Where will my drawing begin on my egg? (v20)]].  To check which version of the Eggbot Control extension you have installed, select the '''*''' tab within the Eggbot Control extension.
  
== Introduction ==
 
  
 
* How does the Eggbot frame my drawing on my egg?
 
* How does the Eggbot frame my drawing on my egg?
Line 27: Line 27:
  
 
* A stepper motor rotates the egg clockwise or counter clockwise
 
* A stepper motor rotates the egg clockwise or counter clockwise
* The egg can be rotated in either direction up to 3200 steps before coming full circle back to where it started
+
* The egg can be rotated in either direction up to 3200 steps before comimg full circle back to where it started
 
* A stepper motor moves the pen arm back and forth
 
* A stepper motor moves the pen arm back and forth
 
* The pen arm can be moved about 1000 steps of total travel
 
* The pen arm can be moved about 1000 steps of total travel
Line 43: Line 43:
 
A direct consequence of this relative nature of stepper motors is that the Eggbot has no idea what position the egg or pen arm is in when it begins a plot.  Let's repeat that: the Eggbot has no idea where the pen or egg is when it begins a plot.  At best, the Eggbot can track the cumulative number of forward (positive) and backwards (negative) steps each motor has taken since starting a plot [4].  Knowledge of the cumulative number of steps allows the Eggbot to return the pen to any previous position in the current plot, but that's all.  The "Return to home" option is implemented this way: after finishing a plot, each stepper motor is stepped the opposite number of net steps that that motor took while drawing the plot.  The final net travel for each motor then becomes zero steps.
 
A direct consequence of this relative nature of stepper motors is that the Eggbot has no idea what position the egg or pen arm is in when it begins a plot.  Let's repeat that: the Eggbot has no idea where the pen or egg is when it begins a plot.  At best, the Eggbot can track the cumulative number of forward (positive) and backwards (negative) steps each motor has taken since starting a plot [4].  Knowledge of the cumulative number of steps allows the Eggbot to return the pen to any previous position in the current plot, but that's all.  The "Return to home" option is implemented this way: after finishing a plot, each stepper motor is stepped the opposite number of net steps that that motor took while drawing the plot.  The final net travel for each motor then becomes zero steps.
  
Another direct consequence of this relativity is that there is little if any utility to having absolute Eggbot coordinates.  What's the use of an absolute position (0, 0) in Eggbot plotting space when the Eggbot has no idea what absolute position either stepper motor is in?  Nonetheless, it sure would be nice to know where your drawing will land on your egg....
+
Another direct consequence of this relativity is that there is little if any utility to having absolute Eggbot coordinates.  What's the use of an absolute position (0, 0) in Eggbot plotting space when the Eggbot has no idea what asbolute position either stepper motor is in?  Nonetheless, it sure would be nice to know where your drawing will land on your egg....
  
 
== Where does my drawing start? ==
 
== Where does my drawing start? ==
  
Enter the "Start with pen centered" option of the Eggbot Control extension's "Options" tab.  What this option says, when checked, is that the pen is '''assumed''' to be at the (x, y) point (W/2, H/2) in your drawing -- the drawing's geometric center.  Here, W is your drawing's width and H is your drawing's height.  For a drawing with dimensions 3200 × 800, this corresponds to the point (1600, 400).
+
Enter the "Start with pen centered" option of the Eggbot Control extension's "Options" tab.  What this option says, when checked, is that the pen is '''assumed''' to be at the (x, y) point (W/2, H/2) in your drawing -- the drawing's geometric center.  Here, W is your drawing's width and H is your drawing's height.  For a drawing with dimensions 3200 × 800, this corresponds to the point (1600, 800).
  
 
If you do not check the "Start with pen centered" option, then the Eggbot assumes that the pen is located at the starting point of the first line segment in your drawing.  For all but the simplest drawings, it's anyone's guess which part of your drawing this will correspond to: Inkscape chooses how to order pieces of your drawing.  As such, operating without the "Start with pen centered" option is something of a gamble.
 
If you do not check the "Start with pen centered" option, then the Eggbot assumes that the pen is located at the starting point of the first line segment in your drawing.  For all but the simplest drawings, it's anyone's guess which part of your drawing this will correspond to: Inkscape chooses how to order pieces of your drawing.  As such, operating without the "Start with pen centered" option is something of a gamble.
Line 71: Line 71:
 
Download a copy of the SVG file for that plot and try plotting it on a light bulb or an egg.  If you use the "Start with pen centered" option, then where the pen is when you begin the plot is where the line y = 400 from the drawing will be started.  This is because the drawing uses a height of 800 pixels and thus the line y = 400 is the page's horizontal midline.
 
Download a copy of the SVG file for that plot and try plotting it on a light bulb or an egg.  If you use the "Start with pen centered" option, then where the pen is when you begin the plot is where the line y = 400 from the drawing will be started.  This is because the drawing uses a height of 800 pixels and thus the line y = 400 is the page's horizontal midline.
  
 +
http://mtbaldy.us/~dnewman/tspart/coordinate-demo-21.png
  
 
== Notes ==
 
== Notes ==

Please note that all contributions to Evil Mad Scientist Wiki are considered to be released under the GNU Free Documentation License 1.3 (see Evil Mad Scientist Wiki:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!

To edit this page, please answer the question that appears below (more info):

Cancel | Editing help (opens in new window)

Template used on this page: