Update on July 2014:

At last I found some time to finish up and test my filastruder... Tested with recycled plastic pellets at PID values: 200 degrees C +-10 degrees... Managed to extrude 1,70mm usable filament at first test run... 

Youtube link of test run video: http://youtu.be/-0N7ihcV2Zo 

We all know that filament is the most important part of 3d printing... And we also know that these are neither cheap nor easily accessible... So I decided to make my own homemade filament extruder. After some search on internet, I decided to use this simple design which is the core of many commercial filastruders. I prepared a simple cad model for you to conceptualize the design easily. All these parts are easily found at every DIYer's parts bin. Only serious design I made is the steel barrel body which is now being made by one of my friends who has a lathe. As can be understood, plastic pellets (or small cut plastic) is loaded from the upper cone and the screw carries them to the front where they are being melt and forced out of a brass nozzle (a natural gas or propane nozzle mainly) to form a filament. 

According to my calculations system can be driven with a powerful dc gearmotor or a big stepper like the one in the pic (nema23). Even a household drill can drive the system for few hrs... I designed the system to make 1.75mm filament and found nozzles that can do the job. the radius of output filament can be monitored by a sensor for accuracy but I do not think I will need that as long as the shaft is driven at constant speed... As for the heating control, I decided to use the same ceramic 12v heaters and 100k thermistors  used in reprap printer extruders (actually there will be more than one on the front end around nozzle). There are simpler and cheaper solutions for heat control, such as constant temp PTC thermostats but as the name implies these are made to keep the heating at a constant temp. Actually I want to make tests for different types of plastics ( including waste palstics such as PE bottles) that is why I decided to have Arduino controlled heater&thermistor combination under PID control because various plastics will need different melting temps. At this point I need help from this community to achieve a MRL PID service controlled temperature management. I could have used my Ramps 1.4 controller for the purpose but I don't have a spare Ramps and wanted to make this machine totally independent of my 3d printer... I am not good at Phyton scripting and any help will be appreciated... 

Alessandruino

10 years 7 months ago

Hi borsaci, as you know i control my 3d printer heater&thermistor using MRL...

I use a python script which check for thermistor temp every 2/ 3 seconds and turn on/off a relay connected to the heater...

So i'm not using PID service, but just Arduino service which turns on the heater when temp is under 110 °C and turns it off when the temp is over 120 °C.

Are you interested in this kind of control or you want to PID it using a POWER MOSFET instead of the relay?

 

I can share the script is actual controlling my printer if you want :D

Alessandro

borsaci06

10 years 7 months ago

Aless,

I have not yet decided about the relay vs mosfet circuit but anything will help... I actually want to use PID control with power mosfeet but relay thing is easier... there are circuits like this one:

Can you pls send your script and connection scheme? I want to take a look at your solution ....

Dincer

 

Alessandruino

10 years 7 months ago

In reply to by borsaci06

wow...that scheme it's a bit compicated... i was wondering of a single mosfet control, with a variable voltage on the gate (proportional to the temp read by the thermistor) , which regulate the current which goes to the heater...

I'll post my relay solution here , so others can benefit too...

Alessandruino

10 years 7 months ago

In reply to by borsaci06

Here is the script :

 

arduino = Runtime.createAndStart("arduino","Arduino")
arduino.connect("COM3")
arduino.setSampleRate(30000)
 
 
readAnalogPin = 0
arduino.analogReadPollingStart(readAnalogPin)
arduino.addListener("publishPin", "python", "publishPin")
 
cooling = False
 
def publishPin():
  global cooling
  pin = msg_arduino_publishPin.data[0]
  print pin.pin, pin.value, pin.type, pin.source
  if ((pin.value >= 120) & (pin.value<=150) & (cooling == True)):
   arduino.digitalWrite(6, Arduino.LOW)
  elif ((pin.value >= 120) & (pin.value<=150) & (cooling == False)):
   arduino.digitalWrite(6, Arduino.HIGH)
  elif (pin.value >150):
   arduino.digitalWrite(6,Arduino.HIGH)
   cooling = False
  elif (pin.value < 120):
   arduino.digitalWrite(6,Arduino.LOW)
   cooling = True

Numbers (120, 150) are not the values of the temperatures, but the analog number (0-1024) corresponding to the temp you want 

borsaci06

10 years 7 months ago

Thx Aless,

I will have a detailed look at this and how it works... I understood the cutoff values, I have to find my custom ones coming from my thermistor and choose accordingly... you are also right about the above multi transistor circuit. It is a bit crowdy, a single mosfet solution can be better...

Dincer

 

AdolphSmith

10 years 7 months ago

In reply to by Alessandruino

Do you use 2 arduino uno r3 to conytal your printer, Or what do you use for the stepper control.

Alessandruino

10 years 7 months ago

In reply to by AdolphSmith

I use an arduino mega + ramps to control the 5 stepper motors and the heater/thermistor of the extruder...

Then i use an arduino UNO to control heater/thermistor of the heated bed using mrl.

Aless,

Why do you use a different Arduino for bed heating control?... Mega+Ramps system with Marlin does very efficient PID for both extruder heater and bed heater... Or are we talking about different Marlin versions?

My Marlin version: Marlin_3_14_14

 

 

 

ehehe :) good question... the problem is not about the software but the hardware... i fried the 10 A mosfet of the ramps with a short :D so i needed another system :)

Hmmmm, now I understood why you are using another control system for your heated bed... But still I think soldering a new $1 mosfet there should not be a problem for you.... :)

Borsaci, sometimes i act not in the easier way but in the funniest :) i m young... I m full of energy and i m hungry of knowledge :)

borsaci06

10 years 7 months ago

Adolph,

I am using Arduino mega with Ramps1.4 shield as everyone in the reprap community...

Dincer,

 

wvantoorn

10 years 7 months ago

Not me, i did have the mega with ramps, but im converting my system to the due with a radds shield, its a similar system as the mega, but then with the benefits of the due and faster, better stronger and more power. But its assembled, and im testing it now, and looking good!!! Im thinking that in the future, a bit more powerfull controller can control more motors, thermocouples, and so on. Only drawback is no eeprom. And for €90 its not too expensive!

borsaci06

10 years 7 months ago

I made an alternative heater controller circuit with MOSFET PID control... 

And the code for anyone interested: 

/*  Dincer Hepguler 2014
 *  Read preset temperature value from pot at A1
 *  Command a MOSFET controlled heating system with PID algorithm
 *  
 * For Reading a 100K thermistor.
 *============================================================
 *
 * (Gnd) ---- (100k-Resistor) -------|------- (100K-Thermistor) ---- (+5v)
 *                                   |
 *                             Analog Pin 0
 *============================================================
 */
 
 
#include <PID_v1.h>
#include <math.h>
#include <Wire.h> 
#include <LiquidCrystal_I2C.h>
 
LiquidCrystal_I2C lcd(0x27,16,2);  // set the LCD address for a 16x2 line display
 
#define ThermistorPin 0            //Analog Pin thermistor connected   
#define ThresholdPin 1             //Analog pin temp pot connected
#define HeaterPin 9                //digital PWM pin heater connected
double SetPoint, ActualTemp, Output;
 
//Specify the links and initial tuning parameters
PID myPID(&ActualTemp, &Output, &SetPoint,2,5,1, DIRECT);
 
//the time we give the sensor to calibrate (10-30 secs according to the datasheet)
int calibrationTime = 10; 
 
double Thermister(int RawADC) {
 double Temp;
 Temp = log(((10240000/RawADC) - 10000));
 Temp = 1 / (0.001129148 + (0.000234125 + (0.0000000876741 * Temp * Temp ))* Temp );
 Temp = Temp - 273.15;            // Convert Kelvin to Celcius
 //Temp = (Temp * 9.0)/ 5.0 + 32.0; // Convert Celcius to Fahrenheit
 return Temp;
}
 
void setup() {
  pinMode(ThresholdPin, INPUT);
  pinMode(HeaterPin, OUTPUT);
  Serial.begin(57600);
  lcd.init();   // initialize the lcd
  lcd.backlight();
  lcd.clear();
  //give the sensor some time to calibrate
  Serial.print("calibrating sensor ");
  lcd.setCursor(0,0);
  lcd.print("calibrating....");
    for(int i = 0; i < calibrationTime; i++){
      Serial.print(".");
      delay(1000);
      }
    Serial.println(" done");
    Serial.println("SENSOR ACTIVE");
    delay(50);
  SetPoint = map(analogRead(ThresholdPin),0,1023,0,300);
  ActualTemp = double(Thermister(analogRead(ThermistorPin)));  
  
  lcd.clear();
  lcd.setCursor(0,0); //Start at character 0 on line 0
  lcd.print("THRESHOLD  TEMP ");
  lcd.setCursor(3,1);
  lcd.print(SetPoint);
  
  //turn the PID on
  myPID.SetMode(AUTOMATIC);
}
 
void loop() {
  SetPoint = map(analogRead(ThresholdPin),0,1023,0,300);
  ActualTemp = double(Thermister(analogRead(ThermistorPin)));
  myPID.Compute();
  analogWrite(HeaterPin,Output);
  // Print a message to the LCD.
  lcd.backlight();
  lcd.setCursor(11,1);
  lcd.print(ActualTemp); 
  lcd.setCursor(3,1);
  lcd.print("     ");
  lcd.setCursor(3,1);
  lcd.print(SetPoint);
  
  Serial.print(SetPoint);  Serial.print("     ");
  Serial.println(ActualTemp);  // display 
  delay(100);
}
 

Gareth

10 years 4 months ago

Wow this is fantastic....... that extruder is soooo fast....

I knew there was a reason for me not to throw away all my  plastic "Mistake" test prints.

Keep up the good work ...

....G

borsaci06

10 years 4 months ago

thx Gareth... nowadays I am not also throwing away any detergent bottles and water bottlecaps too... :)

So I am not worrying about different color filaments...

Dincer

 

Its often the case that I know that I am only making a test print  ... so the colour is not so important.