Wednesday, November 1, 2023

A Deep Dive into the 3D Printer Extruder Design



3D printing, a cornerstone of additive manufacturing, has been revolutionizing industries from aerospace to healthcare with its ability to create complex structures layer by layer. At the heart of this technology lies the 3D printer extruder, a pivotal component responsible for feeding and melting the printing material. In this article, we'll explore the intricacies of the 3D printer extruder showcased in the provided image.

1. Overview of the 3D Printer Extruder

The 3D printer extruder is a mechanism that handles the pushing of the filament, typically plastic, to the hotend where it's melted and deposited layer by layer onto the build platform. The image showcases a highly detailed and intricate extruder design, indicative of a sophisticated piece of equipment optimized for precision and performance.

2. Key Components and Their Functions

a) Drive Gears: These are the toothed wheels visible in the image. They grip the filament and push it forward. The dual-gear setup ensures a consistent feed rate and minimizes filament slippage, which can lead to printing issues.

b) Tensioning System: This mechanism, often incorporating springs or other flexible components, ensures the filament remains firmly gripped between the drive gears. A well-tuned tensioning system is crucial for maintaining a consistent flow of material.

c) Hotend Assembly: While not entirely visible in the image, the hotend is where the filament gets melted. It comprises a heating element and a nozzle, through which the molten material is extruded.

d) Cooling Fins: The series of ridged structures indicate cooling fins, designed to dissipate heat. This is essential to prevent overheating of the extruder, especially during prolonged printing sessions.

e) Mounting Points: The multiple holes and brackets suggest versatile mounting options, allowing the extruder to be compatible with various 3D printer frames and setups.

3. Importance of Precision in Extruder Design

The design of the extruder, as visualized in the image, emphasizes precision engineering. A high-quality extruder ensures:

  • Consistent Feed Rate: This leads to uniform layers in the printed object, ensuring dimensional accuracy and structural integrity.

  • Reduced Clogging: A precision-engineered extruder minimizes the risk of filament jams, which can disrupt the printing process.

  • Material Versatility: Advanced extruders can handle a wide range of filaments, from standard PLA and ABS to specialty materials like nylon or flexible TPU.

4. Conclusion

The 3D printer extruder is a testament to the intricate engineering that goes into making 3D printing possible. The design showcased in the image is a perfect example of how precision, functionality, and aesthetics come together to form a crucial component in the additive manufacturing process. As 3D printing continues to evolve, we can expect even more refined and efficient extruder designs in the future.

Thursday, March 31, 2022

Helical Rotating Ellipse Light Sail









e=0.6;


for (i = [0:1.0: N]){

    theta=i * 360.0/N;

    R=a1*sqrt(1-e*e*sin(theta)*sin(theta));

   r1=0.1*R;

  rotate( theta, [0, 0, 1])

    translate([r1,0, w*i])

    cube([R,0.1,W], center = false);

}


a=25.0;

M=8;


e2=0.99;

for(j=[0:1:M]){

    phi=j*180/M;

translate([0,0,40.0*j])

    rotate(phi,[0,0,1])

for (i = [0:1.0: N]){

    theta=i * 360.0/N;

    R=5*a/j*sqrt(1-e2*e2*sin(theta)*sin(theta));

   r1=0.1*R;

  rotate( theta, [0, 0, 1])

    translate([r1,0, w*i])

    cube([R,0.1,W], center = false);

}

}

 

Friday, September 24, 2021

Star Structure GAIA Sat ESA ER3 Dataset 5000 stars of least parallax error







import OpenGL
import csv
import math
import numpy as np
import locale
import random
from locale import atof
from time import sleep
from OpenGL.GL import *

from OpenGL.GLUT import *

from OpenGL.GLU import *

def wavelength_to_rgb(wavelength, gamma=0.8):

    '''This converts a given wavelength of light to an 
    approximate RGB color value. The wavelength must be given
    in nanometers in the range from 380 nm through 750 nm
    (789 THz through 400 THz).

    Based on code by Dan Bruton
    http://www.physics.sfasu.edu/astro/color/spectra.html
    '''

    wavelength = 380.0+370.0*float(wavelength)
    if wavelength >= 380 and wavelength <= 440:
        attenuation = 0.3 + 0.7 * (wavelength - 380) / (440 - 380)
        R = ((-(wavelength - 440) / (440 - 380)) * attenuation) ** gamma
        G = 0.0
        B = (1.0 * attenuation) ** gamma
    elif wavelength >= 440 and wavelength <= 490:
        R = 0.0
        G = ((wavelength - 440) / (490 - 440)) ** gamma
        B = 1.0
    elif wavelength >= 490 and wavelength <= 510:
        R = 0.0
        G = 1.0
        B = (-(wavelength - 510) / (510 - 490)) ** gamma
    elif wavelength >= 510 and wavelength <= 580:
        R = ((wavelength - 510) / (580 - 510)) ** gamma
        G = 1.0
        B = 0.0
    elif wavelength >= 580 and wavelength <= 645:
        R = 1.0
        G = (-(wavelength - 645) / (645 - 580)) ** gamma
        B = 0.0
    elif wavelength >= 645 and wavelength <= 750:
        attenuation = 0.3 + 0.7 * (750 - wavelength) / (750 - 645)
        R = (1.0 * attenuation) ** gamma
        G = 0.0
        B = 0.0
    else:
        R = 0.0
        G = 0.0
        B = 0.0
    return [R,G, B]

def init():
global Z
global triangles
global angle
global myscale
global colorbprp
global cbprp_rgb
global between_brightest
global between_smallest
random.seed()
cbprp_rgb=[0.0,0.0,0.0]
Z=0.0
angle=0.0
triangles= []
myscale=[0.0,0.0,0.0] 
average=[0.0,0.0,0.0]
maximum=[0.0,0.0,0.0]
minimum=[1000000.0,1000000.0,100000.0]
line_count =0.0
step=random.randint(80,120)
with open('/home/pamela/Documents/gaia-sample-1.csv') as csv_file:
csv_reader = csv.reader(csv_file, delimiter=',')

for row in csv_reader:
if line_count==0.0 :
     line_count=0.0001
     print row[69],row[9],row[5],row[7],row[86]
else :
if int(line_count)<10000 :
step=random.randint(80,120)
c1=9
c2=5
c3=7
c5=86
row[c1]=''.join(c for c in row[c1] if c.isdigit() or '.')
row[c2]=''.join(c for c in row[c2] if c.isdigit() or '.')
row[c3]=''.join(c for c in row[c3] if c.isdigit() or '.' )
row[44]=''.join(c for c in row[44] if c.isdigit()or '.')
row[c5]=''.join(c for c in row[c5] if c.isdigit() or '.')
if row[c1]!='' and row[c2]!='' and row[c3]!='' and row[44]!=''and row[c5]!=''   :
parallax=1.0/atof(row[c1])*10000000000.0
RA=(atof(row[c2])-180.0)
DEC=atof(row[c3])
x=parallax*np.cos(DEC)*np.cos(RA)
y=parallax*np.cos(DEC)*np.sin(RA)
z=parallax*np.sin(DEC)
if x>maximum[0] :
maximum[0]=x
if y>maximum[1] :
maximum[1]=y
if z>maximum[2] :
maximum[2]=z
if x<minimum[0] :
minimum[0]=x
if y<minimum[1] :
minimum[1]=y
if z<minimum[2] :
minimum[2]=z
average[0] += x
average[1] += y
average[2] += z
myrgb= wavelength_to_rgb((atof(row[c5])-0.6)/1.17)
triangles.append([[x,y,z],0.50+math.log(atof(row[69])/atof(row[c1]),10.0),myrgb])
print myrgb,(atof(row[c5])-0.6)/1.17
line_count += 2.0
print(line_count)
average[0] = average[0]/line_count
average[1] = average[1]/line_count
average[2] = average[2]/line_count
print(maximum[0],",",maximum[1],",",maximum[2])
print(minimum[0],",",minimum[1],",",minimum[2])
myscale[0]=math.fabs(maximum[0]-minimum[0])
myscale[1]=math.fabs(maximum[1]-minimum[1])
myscale[2]=math.fabs(maximum[2]-minimum[2])
medianx=[]
mediany=[]
medianz=[]
for v,cbprp,myrgb in triangles:
      medianx.append(v[0])
average[0]=np.median(medianx)
for v,cbprp,myrgb in triangles:
      mediany.append(v[1])
average[1]=np.median(mediany)
for v,cbprp,myrgb in triangles:
      medianz.append(v[2])
average[2]=np.median(medianz)
print(average[0],average[1],average[2])
print(myscale[0],myscale[1],myscale[2])

triangles2=[]
for v,cbprp,myrgb in triangles:
v[0]=(v[0]-average[0])/math.fabs(myscale[0])
v[1]=(v[1]-average[1])/math.fabs(myscale[1])
v[2]=(v[2]-average[2])/math.fabs(myscale[2])
triangles2.append([v,cbprp,myrgb])
triangles=triangles2
bright_stars=[]
small_stars=[]
for v,cbprp,myrgb in triangles:
if cbprp>2.0 :
bright_stars.append([v,cbprp])
else :
small_stars.append([v,cbprp])
between_brightest=[]
between_smallest=[]
for v1,cbprp1 in bright_stars:
for v2,cbprp2 in bright_stars:
dist=pow((v1[0]-v2[0])*(v1[0]-v2[0])+(v1[1]-v2[1])*(v1[1]-v2[1])+(v1[2]-v2[2])*(v1[2]-v2[2]),0.5)
if v1[0]!=v2[0] and v1[1]!=v2[1]  and v1[2]!=v2[2] and cbprp1>cbprp2 and dist<0.06:
between_brightest.append([v1,v2])
for v1,cbprp1 in small_stars:
for v2,cbprp2 in small_stars:
dist=pow((v1[0]-v2[0])*(v1[0]-v2[0])+(v1[1]-v2[1])*(v1[1]-v2[1])+(v1[2]-v2[2])*(v1[2]-v2[2]),0.5)
if v1[0]!=v2[0] and v1[1]!=v2[1]  and v1[2]!=v2[2] and cbprp1>cbprp2 and dist<0.0045:
between_smallest.append([v1,v2])
glClearColor(0.0, 0.0, 0.0, 1.0)
glViewport(0,0 ,640, 480)
glMatrixMode(GL_PROJECTION)
glLoadIdentity()
gluPerspective(120.0,640.0/480.0,0.0000001,50.0)
glPointSize(5.0)
glColor3f(0.5, 0.5, 0.0)

def normalize(v):
    norm = np.linalg.norm(v)
    if norm == 0: 
       return v
    return v / norm

def mouse( x, y):
global Z
Z=(y-480.0/2.0)/600.0
Z=Z*Z
def plotpoints():
global triangles
global angle
global colorbprp
if 0==0 :
ViewD=Z
la=[0.0,0.0,0.0]
la[0]=ViewD*np.cos(angle/180.0*math.pi)
la[1]=0.0
la[2]=ViewD*np.sin(angle/180.0*math.pi);
normalize(la)
angle +=0.1
glClear(GL_COLOR_BUFFER_BIT)
glMatrixMode(GL_MODELVIEW) 
glLoadIdentity()
gluLookAt(la[0],la[1],la[2],0.0,0.0,0.0,0.0,1.0,0.0)
glColor3f(0.5, 0.5, 0.0)
glPointSize(5.0)
for v1,cbprp1,myrgb1 in triangles:
glColor3f(myrgb1[0]*255.0, myrgb1[1]*255.0,myrgb1[2]*255.0)
glPointSize(pow(cbprp1,2.0))
glBegin(GL_POINTS)
glVertex3f(v1[0], v1[1],v1[2])
glEnd()
glColor3f(0.5, 0.5, 0.5)
for v1,v2 in between_brightest:
glBegin(GL_LINES)
glVertex3f(v1[0],v1[1],v1[2])
glVertex3f(v2[0],v2[1],v2[2])
glEnd()
glColor3f(0.5, 0.0, 0.5)
for v1,v2 in between_smallest:
glBegin(GL_LINES)
glVertex3f(v1[0],v1[1],v1[2])
glVertex3f(v2[0],v2[1],v2[2])
glEnd()
glFlush()
glutPostRedisplay()



if __name__ == "__main__":


glutInit()
glutInitDisplayMode(GLUT_RGB |GLUT_MULTISAMPLE  |GLUT_DEPTH)
glutInitWindowSize(640, 480)
glutCreateWindow("PLot CSV")
glutDisplayFunc(plotpoints)
glutPassiveMotionFunc( mouse )
init()
glutMainLoop()

Saturday, August 14, 2021

Up Vector Solution

 



Stl reader utilising the up vector solution. Written using gtkmm libraries and egl in c++linux.

#define GL_GLEXT_PROTOTYPES


#include <Imath/ImathVec.h>
#include <math.h>
#include <gtkmm.h>
#include <gtk/gtk.h>
#include <gdk/gdk.h>
#include <EGL/egl.h>
#include <GL/gl.h>
#include <gdk/gdkx.h>

#include <GLFW/glfw3.h>
#include <GL/glu.h>       
#include <GL/glext.h>



Buffer object stores the stl file in a gl buffer.

class Buffer{
  public:
  
    Buffer(){};
Buffer(char* );
~Buffer();
void draw();
int scale;
int frame;
float* vertices;
int NUM_VERTICES;
float move_x;
float move_y;
float move_z;
char *file_name;
private:
GLuint bufferID;
float delta;
std::vector<triangle> facet;        // define a vector object (container) called "facet" of type "triangle"
     double x_min, x_max, delta_x;       // geometry extents along X
    double y_min, y_max, delta_y;       // geometry extents along Y
double z_min, z_max, delta_z;       // geometry extents along Z
float rotate_x = 0.0, drot_x = 0.0;
float rotate_y = 0.0, drot_y = 0.0;
float rotate_z = 0.0, drot_z = 0.0;
};

Sunday, April 18, 2021

Graphical Script 3d Design Modeller Gs3dDM

The Software program 'gs3ddm' will be compatible with the openSCAD script systemand be able to import openSCAD scripts.



Graphical Elements 

Cylinder


The circle repsents scale and relative size.

The oval represents scale ratio in this case cylinder diameter to cylinder height.

Installing JOGL OpenGL for Java in Ubuntu. 

You must download JOGL from the website.  In 7z format check p7zip is@mi installed.

user> sudo apt-get install p7zip. 

copy jar files for Jogl jogl-all.jar from archive directory, after you have extracted the archive, into your application directory.


compile gs3ddm.java in geany.











Monday, June 11, 2018

RoverOne Visual Spatial Calculations

RoverOne 

Parts List


1 x Pcduino3 Nano without Wireless
1 x Arduino ATMega 2560
1 x 4 Port Usb Hub
2 x Microsoft Life Cam
1 x Usb Wifi Module
8 x Lithium Batteries
1 x Adafruit Arduino Motor Shield
2 x APC220 serial wireless modules
1 x Arduino Nano
2 x MPU6050 GY521
4 Tyres
4 DC Motors
2 x 20W Buck Converter Regulators Variable
1 x 5V UpConverer
1 x 8Gb SD card


Pcduino Operating System


Armbian for Pcduino 3.4 linux kernel for the A20 Allwinner ARM processor with Mali GPU drivers.
With the Armbian operating system I was able to activate accelerated Opengl Graphics. I installed the x11vnc server which uses the X11 server to send Opengl accelerated Graphics. Using turboVnc as the client. I also installed ARToolkit5 from Github for the ARM processor.
Here you can see glxgears  and ARToolkit simpleLite example running over a Vnc remote desktop connection.

ARToolkit Spatial Calculation


Using the ARToolkit with two cameras to calculate the position of the Rover relative to two ARMarkers.





Each ARMarker produces a Matrix from which the distance can be calculated. With two distances and the location of the markers known the Intersection of two circles is calculated from the equation obtained from StackExchange:


The equation is a simultaneous equation with two answers.
From this the x and z position was calculated. Z being into the screen and x left of the screen. Y up was omitted.


Orientation Calculations:









RoverOne Dual Cam ARtoolkit5