<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>G-code &#8211; Science</title>
	<atom:link href="https://scienmag.com/tag/g-code/feed/" rel="self" type="application/rss+xml" />
	<link>https://scienmag.com</link>
	<description></description>
	<lastBuildDate>Mon, 21 Sep 2026 01:00:39 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.1.2</generator>

<image>
	<url>https://scienmag.com/wp-content/uploads/2024/07/cropped-scienmag_ico-32x32.jpg</url>
	<title>G-code &#8211; Science</title>
	<link>https://scienmag.com</link>
	<width>32</width>
	<height>32</height>
</image> 
<site xmlns="com-wordpress:feed-additions:1">73899611</site>	<item>
		<title>Scientists turn a $175 3D printer into a precision droplet printer</title>
		<link>https://scienmag.com/scientists-turn-a-175-3d-printer-into-a-precision-droplet-printer/</link>
		
		<dc:creator><![CDATA[Denise Maddox]]></dc:creator>
		<pubDate>Mon, 21 Sep 2026 01:00:39 +0000</pubDate>
				<category><![CDATA[Technology and Engineering]]></category>
		<category><![CDATA[3D printer modification for liquid droplet printing]]></category>
		<category><![CDATA[3D printing]]></category>
		<category><![CDATA[3D-printed components for laboratory automation]]></category>
		<category><![CDATA[accessible solution printing techniques for academic labs]]></category>
		<category><![CDATA[affordable laboratory equipment for materials research]]></category>
		<category><![CDATA[cost-effective alternatives to commercial inkjet printers]]></category>
		<category><![CDATA[CRISP]]></category>
		<category><![CDATA[custom syringe pump for precision liquid dispensing]]></category>
		<category><![CDATA[DIY solution-based printing for flexible electronics]]></category>
		<category><![CDATA[droplet deposition]]></category>
		<category><![CDATA[Ender-3]]></category>
		<category><![CDATA[enhancing materials research with DIY droplet printers]]></category>
		<category><![CDATA[flexible sensors]]></category>
		<category><![CDATA[frugal science]]></category>
		<category><![CDATA[G-code]]></category>
		<category><![CDATA[HardwareX]]></category>
		<category><![CDATA[low-cost open-source inkjet solution]]></category>
		<category><![CDATA[open-access design for droplet printing platforms]]></category>
		<category><![CDATA[open-source hardware]]></category>
		<category><![CDATA[open-source hardware for chemical sensor fabrication]]></category>
		<category><![CDATA[paper-based substrates]]></category>
		<category><![CDATA[precision fluid deposition in printed diagnostics]]></category>
		<category><![CDATA[solution printing]]></category>
		<category><![CDATA[syringe pump]]></category>
		<guid isPermaLink="false">https://scienmag.com/?p=204836</guid>

					<description><![CDATA[Researchers converted a $175 desktop 3D printer into an open-source precision droplet-printing platform that deposits solutions on paper with accuracy rivaling commercial systems.]]></description>
										<content:encoded><![CDATA[<p>Inside a small laboratory, an ordinary desktop 3D printer has been reborn as something quite different: a machine that dispenses precise droplets of liquid onto paper with a repeatability that rivals commercial equipment costing tens of thousands of dollars. Researchers reporting in the open-access journal HardwareX describe CRISP, short for Controlled Robotic Inkjet Solution on Paper, a platform built by stripping the heated extruder from a Creality Ender-3 printer and replacing it with a custom syringe pump fabricated largely from 3D-printed brackets and a handful of inexpensive off-the-shelf components. The total added cost comes to about 235 dollars, and the entire design is openly licensed and freely downloadable, putting precision solution printing within reach of almost any laboratory with a soldering-iron-adjacent skill set.</p>
<p>The motivation behind the project lies in a persistent bottleneck in materials research. Solution-based printing, the family of techniques that includes inkjet, aerosol jet, gravure and screen printing, underpins modern work on flexible electronics, chemical sensors and printed diagnostics, all of which depend on depositing inks and functional fluids in exact locations on diverse substrates. Commercial tools such as the Fujifilm Dimatix Materials Printer DMP-2850 handle this task admirably, but their price places them beyond many academic groups. Meanwhile, the drive toward self-driving laboratories, where robots, liquid handlers and inline instruments work in concert to accelerate discovery, has exposed another cost barrier: automation platforms like the Opentrons OT-2 robot start at more than 15,000 dollars before a single experiment runs. The CRISP team set out to demonstrate that a frugal twin could be assembled from commodity hardware without sacrificing meaningful performance.</p>
<p>The engineering insight at the heart of the project is that a fused deposition modeling printer already contains nearly everything a liquid-dispensing robot needs. The Ender-3 provides robust three-axis motion control, a stepper motor for extrusion, an Arduino-class motherboard running Marlin firmware, and a mature G-code ecosystem. The researchers removed the hot end, heating block and filament spool holder, then mounted a syringe pump assembly on the printer&#8217;s upper frame. That pump is deliberately simple: a stainless-steel trapezoidal lead screw driven by the printer&#8217;s stock extruder stepper motor, a brass flanged nut riding on a 3D-printed gantry bracket, and two mounts that clamp a standard 20 milliliter Luer-lock syringe in place. When the motor turns, the threaded rod advances and the gantry bracket pushes the syringe plunger with kinematic regularity, converting rotational steps into volumetric dispensing.</p>
<p>Ink reaches the substrate through a length of fluorinated ethylene propylene tubing, roughly 75 centimeters long with a one-sixteenth-inch inner diameter, which press-fits into a nozzle made from a disposable polypropylene pipette tip. The choice of pipette tips as nozzles is a small piece of design genius: at 10 to 20 cents apiece, they are effectively consumables, and a clogged nozzle is solved by pulling the tip off and pressing on a new one rather than performing delicate surgery on an expensive printhead. The tips used in the demonstration have orifice diameters between roughly 0.35 and 0.50 millimeters, but because deposition is volumetric rather than nozzle-limited, the final droplet size on porous paper is governed mainly by the dispensed volume and how the fluid wicks into the fibers.</p>
<p>Because the syringe pump borrows the printer&#8217;s native extruder motor, it is programmed with ordinary G-code, the same command language hobbyists use to print plastic. This gives CRISP a surprisingly sophisticated feature set for its price: the number of programmed dispensing steps is limited only by how many G-code commands a user writes, which allows multi-step routines comparable to those of programmable laboratory pumps that cost several thousand dollars. For calibration, the team primed the tubing through the printer&#8217;s own interface, loaded a G-code file onto a microSD card, and let the machine execute its run from file. The comparison point is stark: a Chemyx 4000X programmable syringe pump runs about 4,400 dollars, while CRISP&#8217;s pumping hardware costs a fraction of that and integrates directly into a motion platform.</p>
<p>Validation began with a deliberately humble test fluid, a blue dye dissolved in water, chosen so that printing parameters could be optimized without the expense and opacity of metal nanoparticle inks. The team printed repeated five-by-five arrays of droplets on cardstock with dots spaced 20 millimeters apart and a programmed volume of 0.026 milliliters per drop. Quantitative image analysis using the open-source computer vision library OpenCV revealed a mean droplet circularity of 0.87 with a standard deviation of only 0.02, a coefficient of variation of 2.30 percent that indicates highly uniform droplet morphology. Positional accuracy proved equally respectable: the mean deviation between programmed and actual droplet centers was 0.65 millimeters, with a worst case of 1.25 millimeters, and the error distribution was random rather than systematic, confirming that the added syringe hardware introduces no mechanical drift into the printer&#8217;s kinematics.</p>
<p>Weighing the droplets provided an independent check on volumetric fidelity. Across five trials in which the system dispensed ten droplets into a tared dish, the average total mass was 265.9 milligrams, implying 26.59 microliters per drop against a kinematic prediction of 26.0 microliters, a percent error of just 2.3 with a coefficient of variation of 1.6 percent. Deposited on porous cardstock, the drops spread into hemispheres averaging about 4.6 millimeters in diameter, exactly matching volumetric expectations. The researchers note that the practical minimum droplet volume for this configuration is roughly 3 to 5 microliters, bounded by the stepper motor&#8217;s step resolution and fluid surface tension, though switching to a smaller syringe barrel would stretch that limit further by amplifying plunger travel per dispensed volume.</p>
<p>The team is candid about the platform&#8217;s boundaries. The nozzle holder as built maintains a physical gap of about 7 millimeters between tip and substrate, which is ideal for falling droplets but prevents the close tip-to-surface contact needed for a stable meniscus during continuous line printing; attempts to write continuous features with aqueous dye produced lines that thinned and broke. Paper remains the sweet spot because its fibrous structure absorbs liquid quickly, pinning particles before uneven drying can occur, whereas non-porous glass slides exhibited anomalous drying behavior related to well-known evaporative defects such as the coffee ring effect. The dead volume of the delivery tubing, roughly 1.5 milliliters, also matters when working with expensive reagents, and the authors recommend shorter, stiffer tubing and a heated print bed to tame environmental drying variability.</p>
<p>What makes CRISP more than a clever hack is its framing within the growing frugal-twin movement in chemistry and materials science, where low-cost replicas of commercial instruments are validated against their expensive counterparts. Structurally, the design resembles prior Ender-3 liquid-handling conversions, but it differs in relying entirely on stock printer hardware and 3D-printed brackets rather than an external syringe pump, keeping the added cost below 200 dollars. With results showing dispensing circularity of 98.2 percent and relative positional accuracy of 96.8 percent, the authors argue that stepper-driven commodity hardware offers sufficient repeatability for routine patterning tasks. Their ultimate goal is the deposition of metal nanoparticle inks for paper-based sensors, and with every CAD file, STL, G-code script and dataset published under open licenses on the Open Science Framework, CRISP invites laboratories worldwide to print droplets, not just plastic, for the price of a good dinner out.</p>
<p><strong>Subject of Research:</strong> A low-cost 3D printer-based platform for precision solution printing on paper-based substrates</p>
<p><strong>Article Title:</strong> CRISP: A 3D printer-based platform for precision solution printing on paper-based substrates</p>
<p><strong>Article References:</strong> Lutfiyev, I., McCoy, S. A., Star, R., Giordano, A. N., Rist, B., Baldwin, L. A., &amp; Rao, R. (2026). CRISP: A 3D printer-based platform for precision solution printing on paper-based substrates. <em>HardwareX, 28</em>, Article e00842. <a href="https://doi.org/10.1016/j.ohx.2026.e00842" rel="noopener noreferrer">https://doi.org/10.1016/j.ohx.2026.e00842</a></p>
<p><strong>Image Credits:</strong> AI Generated</p>
<p><strong>DOI:</strong> <a href="https://doi.org/10.1016/j.ohx.2026.e00842" rel="noopener noreferrer">10.1016/j.ohx.2026.e00842</a></p>
<p><strong>Keywords:</strong> CRISP, 3D printing, syringe pump, solution printing, paper-based substrates, Ender-3, open-source hardware, G-code, droplet deposition, frugal science, flexible sensors, HardwareX</p>
]]></content:encoded>
					
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">204836</post-id>	</item>
		<item>
		<title>Transformer AI Predicts CNC Machining Errors Before the First Cut</title>
		<link>https://scienmag.com/transformer-ai-predicts-cnc-machining-errors-before-the-first-cut/</link>
		
		<dc:creator><![CDATA[Denise Maddox]]></dc:creator>
		<pubDate>Sat, 12 Sep 2026 22:39:04 +0000</pubDate>
				<category><![CDATA[Technology and Engineering]]></category>
		<category><![CDATA[AI in digital manufacturing]]></category>
		<category><![CDATA[AI-driven CNC process optimization]]></category>
		<category><![CDATA[Bi-LSTM comparison]]></category>
		<category><![CDATA[CNC machine error simulation]]></category>
		<category><![CDATA[CNC machining]]></category>
		<category><![CDATA[CNC machining error prediction]]></category>
		<category><![CDATA[cycle time error estimation]]></category>
		<category><![CDATA[cycle time prediction]]></category>
		<category><![CDATA[deep learning]]></category>
		<category><![CDATA[deep learning for manufacturing]]></category>
		<category><![CDATA[digital twin]]></category>
		<category><![CDATA[G-code]]></category>
		<category><![CDATA[G-code error forecasting]]></category>
		<category><![CDATA[machine tools]]></category>
		<category><![CDATA[precision manufacturing]]></category>
		<category><![CDATA[predictive maintenance in manufacturing]]></category>
		<category><![CDATA[sequence-to-sequence learning]]></category>
		<category><![CDATA[servo dynamics]]></category>
		<category><![CDATA[sub-micrometer accuracy in machining]]></category>
		<category><![CDATA[tool-path deviation prediction]]></category>
		<category><![CDATA[tool-path error]]></category>
		<category><![CDATA[Transformer AI]]></category>
		<category><![CDATA[Transformer model]]></category>
		<category><![CDATA[Transformer models for CNC]]></category>
		<guid isPermaLink="false">https://scienmag.com/?p=199336</guid>

					<description><![CDATA[Researchers have developed a Transformer-based deep learning model that predicts CNC tool-path and cycle time errors directly from G-code with sub-micrometer and sub-millisecond accuracy.]]></description>
										<content:encoded><![CDATA[<p>Every machined part begins its life as a stream of G-code, the terse numeric language that tells a computer numerical control (CNC) machine tool where to move and how fast. Yet the path the tool actually carves is never quite the one the programmer wrote. Interpolators, acceleration and deceleration controllers, feedback loops and servo dynamics all conspire to bend, lag and smooth the commanded trajectory, producing tool-path deviations measured in micrometers and cycle times that drift by milliseconds. For precision manufacturers, those tiny discrepancies matter enormously, and predicting them before a single chip flies has long been a stubborn challenge. Now, researchers in Japan have shown that a Transformer-based deep learning model — the same architectural family behind modern language models — can forecast both tool-path and cycle time errors directly from raw G-code, with sub-micrometer and sub-millisecond accuracy.</p>
<p>The study, published in Results in Engineering by Kazuki Kaneko and Zongze Li, addresses a fundamental blind spot in digital manufacturing. Computer-aided manufacturing (CAM) software can simulate geometry and generate tool paths from a CAD model, but it cannot simulate what happens inside the machine&#8217;s controller. The G-code is filtered by the CNC interpolator, feedforward controllers and feedback control loops before it ever reaches the servomotors, and these proprietary algorithms are closely guarded black boxes maintained by machine tool builders. Physical modeling of this chain is extraordinarily difficult precisely because the control algorithms are secret and the dynamics are deeply nonlinear. The result is that manufacturers often discover machining errors only after cutting — or resort to time-consuming air runs in which the machine executes the program without a workpiece just to observe its behavior.</p>
<p>The authors reframed the problem as one of sequence translation. From a data-processing perspective, G-code execution is a stream of discrete commands fed row by row into a black-box system that emits corresponding sequences of tool-path and cycle time errors. Predicting those errors for a given program is therefore fundamentally a sequence-to-sequence problem — exactly the kind of task at which Transformers excel. Unlike recurrent networks or long short-term memory (LSTM) models, which process sequences step by step, a Transformer uses multi-head self-attention to derive global relational weights across all positions simultaneously. This allows it to capture long-range temporal dependencies, such as how a sharp corner several blocks ahead causes the servo system to decelerate and how a large acceleration from a previous segment continues to influence subsequent commands as the transient response gradually decays.</p>
<p>The researchers drew a striking analogy between the Transformer&#8217;s internal machinery and the physics of a CNC controller. In their framing, the query represents the motion state of the current G-code command, while the keys and values carry error features of the surrounding tool path; scaled dot-product attention then assigns weights to nearby and distant blocks, mirroring the feedforward and feedback structure of a real servo loop. Position-wise feedforward networks introduce the nonlinear modeling capacity needed to emulate local servo behaviors such as PID control and friction, while residual connections — which pass inputs directly forward — resemble a closed-loop feedback system that focuses on predicting small dynamic deviations rather than reconstructing the entire tool path. Layer normalization, meanwhile, stabilizes the wildly different physical scales of position increments and feed rates, functioning much like a gain stabilizer in a servo drive.</p>
<p>Training such a model requires data that spans the machine&#8217;s full dynamic repertoire, so the team avoided reliance on specific workpiece geometries, which would limit generalization. Instead, they semi-randomly generated ten sets of training G-code combining local blending segments, where the path passes directly through control points, and global blending segments, where B-spline interpolation smooths the trajectory at constant feed rate. Displacements and feed rates were drawn randomly from defined ranges, producing tool paths with varied travel ranges and frequent direction changes. Each program was then executed on a real three-axis ROBODRILL machine equipped with a Fanuc Series 31i controller, and actual tool-path data were captured at a sampling frequency of 1 kHz using Fanuc&#8217;s SERVO Guide monitoring software. The training targets were thus experimentally measured servo responses rather than virtual simulations, grounding the digital twin in physical reality.</p>
<p>The model itself is an encoder-only Transformer with a model dimension of 512, eight layers and four attention heads, trained for 2000 epochs on a workstation with an RTX 4090 GPU. Input sequences consisted of nominal positional increments along the three feed axes plus the commanded feed rate, segmented into windows of 32 control points using a causal sliding window. The output comprised the three-dimensional tool-path error and the cumulative cycle time error at each point. Notably, the authors found that longer input sequences converged more slowly without improving final accuracy — a result that aligns neatly with servo physics, since the transient influence of any single command naturally fades over time. When compared against a Bi-LSTM model of equal dimensions trained on identical data, the Transformer converged in roughly 500 epochs, three times faster than its recurrent rival.</p>
<p>Validation was carried out on six G-code programs derived from two physical specimens: a 25-millimeter-radius hemispherical part machined along morphing spiral and bidirectional paths, and a complex artifact geometry, each run at nominal feed rates of 1000 and 3000 millimeters per minute. The results were decisive. Both models avoided large systematic bias, with mean prediction deviations generally within ±1 micrometer or millisecond, but the Transformer&#8217;s uncertainty bands were roughly 1.5 to 2 times tighter than the Bi-LSTM&#8217;s across all error components — and in some conditions nearly four times tighter. Its error distributions clustered markedly more sharply around zero, and while the Bi-LSTM&#8217;s cycle time root-mean-square error ballooned to about 8 milliseconds on the most demanding program against a mean error of 2.5 milliseconds, the Transformer suppressed such outliers, keeping RMSE close to MAE.</p>
<p>The comparison also revealed how differently the two architectures degrade under stress. Higher feed rates inherently reduce the accuracy of the controller&#8217;s feedforward and feedback loops, and the Bi-LSTM&#8217;s errors doubled or even tripled when the feed rate rose from 1000 to 3000 millimeters per minute. The Transformer, by contrast, showed far more graceful degradation, keeping mean errors below 2 micrometers or milliseconds even on the most challenging high-speed program. The authors attribute the residual errors that remain — small but nonzero — to highly random mechanical nonlinearities such as micro-friction variations and backlash during axis reversals, along with the quantization limits of encoder feedback at the 1 kHz sampling rate.</p>
<p>Perhaps the most industrially compelling result is speed. Predicting errors for an entire validation program took the Transformer less than 3.5 seconds, regardless of program complexity, whereas air-running the same programs on the machine took anywhere from roughly 38 to 202 seconds. Because prediction time depends only on G-code length, the trained model can instantly screen massive production programs offline, eliminating the need for preliminary air runs and sharpening both production scheduling and machining efficiency. The approach does not generalize across machines — each machine tool has unique controller and mechanical characteristics — but the authors emphasize that adapting to a new machine requires only executing the training G-codes, acquiring a fresh dataset and retraining, after which the model serves as a customized digital surrogate for that specific machine.</p>
<p>The work points toward a future in which every machine tool carries its own learned digital twin, capable of vetting programs before metal is ever cut. The team&#8217;s next steps include extending the model to account for cutting force-induced deflections of tool and workpiece, which superimpose on servo tracking errors in real machining; probing how specific G-code features such as control point density affect prediction performance; scaling the sequence-to-sequence methodology to five-axis simultaneous machining; and developing real-time servo signal acquisition for online error prediction during actual cutting. They also plan to build open-architecture experimental CNC systems, since proprietary commercial controllers block the integration of theoretical control equations needed for hybrid physical-digital modeling. If those ambitions pan out, the humble G-code file may one day arrive at the shop floor already annotated with a complete forecast of its own imperfections.</p>
<p><strong>Subject of Research:</strong> Transformer-based deep learning prediction of tool-path and cycle time errors in CNC machining from G-code</p>
<p><strong>Article Title:</strong> Prediction of tool-path and cycle time errors of CNC machining using a transformer-based deep learning model</p>
<p><strong>Article References:</strong> Kaneko, K., &amp; Li, Z. (2026). Prediction of tool-path and cycle time errors of CNC machining using a transformer-based deep learning model. <em>Results in Engineering, 32</em>, Article 112872. <a href="https://doi.org/10.1016/j.rineng.2026.112872" rel="noopener noreferrer">https://doi.org/10.1016/j.rineng.2026.112872</a></p>
<p><strong>Image Credits:</strong> AI Generated</p>
<p><strong>DOI:</strong> <a href="https://doi.org/10.1016/j.rineng.2026.112872" rel="noopener noreferrer">10.1016/j.rineng.2026.112872</a></p>
<p><strong>Keywords:</strong> CNC machining, Transformer model, deep learning, digital twin, tool-path error, cycle time prediction, G-code, servo dynamics, Bi-LSTM comparison, precision manufacturing, sequence-to-sequence learning, machine tools</p>
]]></content:encoded>
					
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">199336</post-id>	</item>
	</channel>
</rss>
