Jump to content
greglamouche

Add servo motherboard and update Marlin / Double extrusion

Recommended Posts

Posted · Add servo motherboard and update Marlin / Double extrusion

Hello everybody,

i would like to add a servo to my UM2 for double extruder but i don't know where can i plug it on my motherboard in order to manage it.

I tried to change the marlin sofware to use one extruder for two head and one servo to tilt from the first head to the second head (http://www.thingiverse.com/thing:673816/#files)

I changed this file like that :

Configuration.h:

#define MOTHERBOARD 72

// This defines the number of extruders

#ifndef EXTRUDERS

#define EXTRUDERS 2

#define DONDOLO_SERVOPOS_E0 110

#define DONDOLO_SERVOPOS_E1 10

#define DONDOLO_SERVO_DELAY 1000

#define TEMP_SENSOR_1 1 // 0

#define INVERT_E1_DIR true // false

#define NUM_SERVOS 1

Marlin_Main.cpp:

else if(code_seen('T'))

{

tmp_extruder = code_value();

//Added for DEISS dual extruder

if(tmp_extruder == 0) {

st_synchronize();

servos[0].attach(SERVO0_PIN);

servos[0].write(servopos_extruder_0);

delay (servopos_delay);

servos[0].detach();

}

if(tmp_extruder == 1) {

st_synchronize();

servos[0].attach(SERVO0_PIN);

servos[0].write(servopos_extruder_1);

delay(servopos_delay);

servos[0].detach();

}

//end

if(tmp_extruder >= EXTRUDERS) {

pins.h:

MOTHERBOARD == 72

#define E0_STEP_PIN 42

#define E0_DIR_PIN 43

#define E0_ENABLE_PIN 37

// the extruder 1 pins as the extruder 0.

#define E1_STEP_PIN 42

#define E1_DIR_PIN 43

#define E1_ENABLE_PIN 37

//i must define the "SERVO0" pin

#ifdef NUM_SERVOS

#define SERVO0_PIN 11 // i used 11 but i don't know which pin i can use and where i can plug on my board

#endif

#endif

// end

PLease, could you help me?

Thank in advance!!!

Greg.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Our picks

    • Ultimaker Cura 4.0 | Stable available!
      Ultimaker Cura 4.0 is mainly focused on the improved user interface and cloud integration.
      As always, we want to collect your user feedback for this release. If there are any improvements you can think of, feel free to mention it here and help us to shape the next release.
      • 86 replies
×
×
  • Create New...

Important Information

Welcome to the Ultimaker Community of 3D printing experts. Visit the following links to read more about our Terms of Use or our Privacy Policy. Thank you!