<p>I'm thinking about building my own 3D printer/Laser Engraver/CNC. Since all use a standard Cartesian axis I wanted to be able to swap out tool heads depending on the purpose. I have everything thought out except the coding aspect of the project.</p>

<p>I currently own a 3D printer and am familiar with some of the coding aspects, gcode, stepper motor moment, axis zeroing, etc; but if I am to build a 3 axis system how do you go about coding it? Are there programs that automatically calibrate all the motors? Can I take existing 3D printer programs and adjust the stepper motor values and build plate area? or do I have to code a new printing program from scratch that can read gcode? For simplicity lets just talk about the printing aspect of the build as I realize that CNC's and laser engravers work on different vector systems. Thanks :)</p>

[{'answer_id': 5875, 'author': 'fred_dot_u', 'author_id': 854, 'author_profile': 'https://3dprinting.stackexchange.com/users/854', 'pm_score': 2, 'selected': False, 'text': '<p>The foundation of any 3D printer is the controller and the firmware. Many devices are based on Arduino type controllers, with stepper motor driver boards either integrated or added as a plug-in component.</p>\n\n<p>Some manufacturers will use in-house or outside resources and develop their own boards and firmware.</p>\n\n<p>You can search for 3D printer controllers and get a pretty comprehensive list of the various devices available for purchase.  Smoothieboard is one device, Raspberry Pi and Arduino as noted above, and others.</p>\n\n<p>There can be found varying "flavors" of firmware to load onto these controllers as well.</p>\n\n<p>The field is exhaustive.</p>\n\n<p>To address your focus regarding the printing aspect, that\'s one stepper motor per print head/nozzle (usually) and involves calibrating the amount of filament dispensed from the nozzle per unit steps, or more easily understood, amount of steps per unit of filament movement. My stepper motor for the extruder has a planetary gear and moves 100 mm of filament for about 5000 steps.</p>\n\n<p>All of the parameters you\'ve noted are integrated with the firmware. Motor calibration requires movement per step or steps per millimeter to be entered, unless you purchase a turnkey system with the values loaded.</p>\n\n<p>You can adjust many of the parameters from the slicing software, but it\'s more practical to determine the calibration settings, enter that information into your slicer and proceed with model management.</p>\n\n<p>Look into instructables for others\' build projects to see what they\'ve accomplished and the steps involved in such a build. This can give you a starting point for your efforts.</p>\n'}, {'answer_id': 5879, 'author': 'profesor79', 'author_id': 9730, 'author_profile': 'https://3dprinting.stackexchange.com/users/9730', 'pm_score': 1, 'selected': False, 'text': "<p>this is an extension to fred_dot_u answer.\nAs I am in the process of building my own printer, I decided to use RAMPS Arduino shield for electronics and Marlin firmware + Arduino  mega2560 as a logic controller. </p>\n\n<p>As above are battle-tested, I don't need to discover wheel again, but rather focus on the mechanics.\nThe RAMPS mainboard will provide you with the ability to connect 5 steppers and 3 PWM regulated devices (that can be heat-bed, nozzle and fan or combination) and there is still possibility to connect more as a bunch of IO pins are ready to alocate. </p>\n\n<p>MarlinFirmware is avalible on github, so you can download it and then provide all mechanical parameters that are needed to properly drive your printer -so that is:</p>\n\n<ol>\n<li>Mainboard type</li>\n<li>type coreXY, XZ ....</li>\n<li>bed size (x,y)</li>\n<li>gantry size (z)</li>\n<li>steps / mm for steppers</li>\n<li>thermal protection parameters </li>\n<li>LCD display (if in use)</li>\n</ol>\n\n<p>The main benefit of using Marlin for me is that printer configuration is extremely customizable.</p>\n"}]
['https://3dprinting.stackexchange.com/questions/5874', 'https://3dprinting.stackexchange.com', 'https://3dprinting.stackexchange.com/users/10620/']