Welcome! Log In Create A New Profile


How to calculate E value in mm

Posted by Esanhi 
How to calculate E value in mm
February 12, 2014 03:03PM

I am developing a 3D printer software for a univeristy project and I need to calculate the E value in mm. I have one equation but it seems too much material is extruded and I think my equation is wrong.
My equation is:

	        //Distance between points
                double difx=pow((x2-x1),2);
	        double dify=pow((y2-y1),2);
	        double dist=sqrt(difx+dify);

                double MaterialWidth = min( max(MinimumLineWidth,(ExtrudedMaterialWidthRatio*LayerThickness)),MaximumLineWidth);
		double pA = pow(MaterialWidth ,2);
		double pD = pow(FilamentDiameter,2);
		double f = ExtrusionFactor* ( pA / pD );

		double res = f * dist;
		return res;

Does anyone know if this is ok?
Thank you.

Edited 1 time(s). Last edit at 02/13/2014 01:26PM by Esanhi.
Re: How to calculate E value in mm
February 23, 2014 02:52PM
maybe i am to late and i dont know about the rest, but i think there is a mistake in your distance

double dist=sqrt(difx+dify);

u need to square difx and dify

double dist=sqrt((difx)^2+(dify)^2);
Re: How to calculate E value in mm
February 24, 2014 06:11PM
They are already squared. That is what the pow(...,2) is doing.
Re: How to calculate E value in mm
February 26, 2014 09:26AM
"too much material is extruded" depends on your "ExtrusionFactor" which looks like it is supposed to be some ratio between the cross-sectional area of the extruded trace to the cross sectional area of the filiament. If you are extruding 10% too much material, reduce ExtrusionFactor to ExtrusionFactor/1.1.
Sorry, only registered users may post in this forum.

Click here to login