Welcome! Log In Create A New Profile

Advanced

Dyze Pulsar extruder configuration with RAMPS

Posted by aletax9090 
Dyze Pulsar extruder configuration with RAMPS
December 03, 2023 04:41AM
Hello community,

I'm trying to configure Dyze Pulsar extruder with RAMPS 1.4 and I am getting the following errors.
I don't understand which lines I have to change and why.

I followed these instructions:
Dyze Pulsar firmware config
Dyze Stepper Driver config
Dyze PT100 amplifier board config

Also I checked this discussion and this scheme.

Attached the configuration files I edited.


Anyone able to help me understand and making it work?



In file included from H:\My Drive\23_034_DYZE\Firmware\Marlin-2.1.2.1\Marlin\src\inc\MarlinConfig.h:49:0,
                 from H:\My Drive\23_034_DYZE\Firmware\Marlin-2.1.2.1\Marlin\src\HAL\AVR\Servo.cpp:55:
H:\My Drive\23_034_DYZE\Firmware\Marlin-2.1.2.1\Marlin\src\inc\SanityCheck.h:2513:4: error: #error "HEATER_1_PIN is not defined. TEMP_SENSOR_1 might not be set, or the board (not EEB / EEF?) doesn't define a pin."
   #error "HEATER_1_PIN is not defined. TEMP_SENSOR_1 might not be set, or the board (not EEB / EEF?) doesn't define a pin."
    ^~~~~
H:\My Drive\23_034_DYZE\Firmware\Marlin-2.1.2.1\Marlin\src\inc\SanityCheck.h:2528:8: error: #error "HEATER_2_PIN not defined for this board."
       #error "HEATER_2_PIN not defined for this board."
        ^~~~~
H:\My Drive\23_034_DYZE\Firmware\Marlin-2.1.2.1\Marlin\src\inc\SanityCheck.h:2717:4: error: #error "E2_STEP_PIN, E2_DIR_PIN, or E2_ENABLE_PIN not defined for this board."
   #error "E2_STEP_PIN, E2_DIR_PIN, or E2_ENABLE_PIN not defined for this board."
    ^~~~~
H:\My Drive\23_034_DYZE\Firmware\Marlin-2.1.2.1\Marlin\src\inc\SanityCheck.h:3796:1: error: static assertion failed: DEFAULT_AXIS_STEPS_PER_UNIT values must be positive.
 static_assert(_PLUS_TEST(1), "DEFAULT_AXIS_STEPS_PER_UNIT values must be positive.");
 ^~~~~~~~~~~~~
H:\My Drive\23_034_DYZE\Firmware\Marlin-2.1.2.1\Marlin\src\inc\SanityCheck.h:3801:1: error: static assertion failed: DEFAULT_MAX_FEEDRATE values must be positive.
 static_assert(_PLUS_TEST(2), "DEFAULT_MAX_FEEDRATE values must be positive.");
 ^~~~~~~~~~~~~
In file included from H:\My Drive\23_034_DYZE\Firmware\Marlin-2.1.2.1\Marlin\src\inc\MarlinConfig.h:49:0,
                 from H:\My Drive\23_034_DYZE\Firmware\Marlin-2.1.2.1\Marlin\src\HAL\AVR\HAL_SPI.cpp:34:
H:\My Drive\23_034_DYZE\Firmware\Marlin-2.1.2.1\Marlin\src\inc\SanityCheck.h:2513:4: error: #error "HEATER_1_PIN is not defined. TEMP_SENSOR_1 might not be set, or the board (not EEB / EEF?) doesn't define a pin."
   #error "HEATER_1_PIN is not defined. TEMP_SENSOR_1 might not be set, or the board (not EEB / EEF?) doesn't define a pin."
    ^~~~~
H:\My Drive\23_034_DYZE\Firmware\Marlin-2.1.2.1\Marlin\src\inc\SanityCheck.h:2528:8: error: #error "HEATER_2_PIN not defined for this board."
       #error "HEATER_2_PIN not defined for this board."
        ^~~~~
H:\My Drive\23_034_DYZE\Firmware\Marlin-2.1.2.1\Marlin\src\inc\SanityCheck.h:2717:4: error: #error "E2_STEP_PIN, E2_DIR_PIN, or E2_ENABLE_PIN not defined for this board."
   #error "E2_STEP_PIN, E2_DIR_PIN, or E2_ENABLE_PIN not defined for this board."
    ^~~~~
H:\My Drive\23_034_DYZE\Firmware\Marlin-2.1.2.1\Marlin\src\inc\SanityCheck.h:3796:1: error: static assertion failed: DEFAULT_AXIS_STEPS_PER_UNIT values must be positive.
 static_assert(_PLUS_TEST(1), "DEFAULT_AXIS_STEPS_PER_UNIT values must be positive.");
 ^~~~~~~~~~~~~
H:\My Drive\23_034_DYZE\Firmware\Marlin-2.1.2.1\Marlin\src\inc\SanityCheck.h:3801:1: error: static assertion failed: DEFAULT_MAX_FEEDRATE values must be positive.
 static_assert(_PLUS_TEST(2), "DEFAULT_MAX_FEEDRATE values must be positive.");
 ^~~~~~~~~~~~~
In file included from H:\My Drive\23_034_DYZE\Firmware\Marlin-2.1.2.1\Marlin\src\inc\MarlinConfig.h:49:0,
                 from H:\My Drive\23_034_DYZE\Firmware\Marlin-2.1.2.1\Marlin\src\HAL\AVR\eeprom.cpp:24:
H:\My Drive\23_034_DYZE\Firmware\Marlin-2.1.2.1\Marlin\src\inc\SanityCheck.h:2513:4: error: #error "HEATER_1_PIN is not defined. TEMP_SENSOR_1 might not be set, or the board (not EEB / EEF?) doesn't define a pin."
   #error "HEATER_1_PIN is not defined. TEMP_SENSOR_1 might not be set, or the board (not EEB / EEF?) doesn't define a pin."
    ^~~~~
H:\My Drive\23_034_DYZE\Firmware\Marlin-2.1.2.1\Marlin\src\inc\SanityCheck.h:2528:8: error: #error "HEATER_2_PIN not defined for this board."
       #error "HEATER_2_PIN not defined for this board."
        ^~~~~
H:\My Drive\23_034_DYZE\Firmware\Marlin-2.1.2.1\Marlin\src\inc\SanityCheck.h:2717:4: error: #error "E2_STEP_PIN, E2_DIR_PIN, or E2_ENABLE_PIN not defined for this board."
   #error "E2_STEP_PIN, E2_DIR_PIN, or E2_ENABLE_PIN not defined for this board."
    ^~~~~
H:\My Drive\23_034_DYZE\Firmware\Marlin-2.1.2.1\Marlin\src\inc\SanityCheck.h:3796:1: error: static assertion failed: DEFAULT_AXIS_STEPS_PER_UNIT values must be positive.
 static_assert(_PLUS_TEST(1), "DEFAULT_AXIS_STEPS_PER_UNIT values must be positive.");
 ^~~~~~~~~~~~~
H:\My Drive\23_034_DYZE\Firmware\Marlin-2.1.2.1\Marlin\src\inc\SanityCheck.h:3801:1: error: static assertion failed: DEFAULT_MAX_FEEDRATE values must be positive.
 static_assert(_PLUS_TEST(2), "DEFAULT_MAX_FEEDRATE values must be positive.");
 ^~~~~~~~~~~~~
In file included from H:\My Drive\23_034_DYZE\Firmware\Marlin-2.1.2.1\Marlin\src\inc\MarlinConfig.h:49:0,
                 from H:\My Drive\23_034_DYZE\Firmware\Marlin-2.1.2.1\Marlin\src\HAL\AVR\fast_pwm.cpp:24:
H:\My Drive\23_034_DYZE\Firmware\Marlin-2.1.2.1\Marlin\src\inc\SanityCheck.h:2513:4: error: #error "HEATER_1_PIN is not defined. TEMP_SENSOR_1 might not be set, or the board (not EEB / EEF?) doesn't define a pin."
   #error "HEATER_1_PIN is not defined. TEMP_SENSOR_1 might not be set, or the board (not EEB / EEF?) doesn't define a pin."
    ^~~~~
H:\My Drive\23_034_DYZE\Firmware\Marlin-2.1.2.1\Marlin\src\inc\SanityCheck.h:2528:8: error: #error "HEATER_2_PIN not defined for this board."
       #error "HEATER_2_PIN not defined for this board."
        ^~~~~
H:\My Drive\23_034_DYZE\Firmware\Marlin-2.1.2.1\Marlin\src\inc\SanityCheck.h:2717:4: error: #error "E2_STEP_PIN, E2_DIR_PIN, or E2_ENABLE_PIN not defined for this board."
   #error "E2_STEP_PIN, E2_DIR_PIN, or E2_ENABLE_PIN not defined for this board."
    ^~~~~
H:\My Drive\23_034_DYZE\Firmware\Marlin-2.1.2.1\Marlin\src\inc\SanityCheck.h:3796:1: error: static assertion failed: DEFAULT_AXIS_STEPS_PER_UNIT values must be positive.
 static_assert(_PLUS_TEST(1), "DEFAULT_AXIS_STEPS_PER_UNIT values must be positive.");
 ^~~~~~~~~~~~~
H:\My Drive\23_034_DYZE\Firmware\Marlin-2.1.2.1\Marlin\src\inc\SanityCheck.h:3801:1: error: static assertion failed: DEFAULT_MAX_FEEDRATE values must be positive.
 static_assert(_PLUS_TEST(2), "DEFAULT_MAX_FEEDRATE values must be positive.");
 ^~~~~~~~~~~~~
In file included from H:\My Drive\23_034_DYZE\Firmware\Marlin-2.1.2.1\Marlin\src\inc\MarlinConfig.h:49:0,
                 from H:\My Drive\23_034_DYZE\Firmware\Marlin-2.1.2.1\Marlin\src\HAL\AVR\HAL.cpp:24:
H:\My Drive\23_034_DYZE\Firmware\Marlin-2.1.2.1\Marlin\src\inc\SanityCheck.h:2513:4: error: #error "HEATER_1_PIN is not defined. TEMP_SENSOR_1 might not be set, or the board (not EEB / EEF?) doesn't define a pin."
   #error "HEATER_1_PIN is not defined. TEMP_SENSOR_1 might not be set, or the board (not EEB / EEF?) doesn't define a pin."
    ^~~~~
H:\My Drive\23_034_DYZE\Firmware\Marlin-2.1.2.1\Marlin\src\inc\SanityCheck.h:2528:8: error: #error "HEATER_2_PIN not defined for this board."
       #error "HEATER_2_PIN not defined for this board."
        ^~~~~
H:\My Drive\23_034_DYZE\Firmware\Marlin-2.1.2.1\Marlin\src\inc\SanityCheck.h:2717:4: error: #error "E2_STEP_PIN, E2_DIR_PIN, or E2_ENABLE_PIN not defined for this board."
   #error "E2_STEP_PIN, E2_DIR_PIN, or E2_ENABLE_PIN not defined for this board."
    ^~~~~
H:\My Drive\23_034_DYZE\Firmware\Marlin-2.1.2.1\Marlin\src\inc\SanityCheck.h:3796:1: error: static assertion failed: DEFAULT_AXIS_STEPS_PER_UNIT values must be positive.
 static_assert(_PLUS_TEST(1), "DEFAULT_AXIS_STEPS_PER_UNIT values must be positive.");
 ^~~~~~~~~~~~~
H:\My Drive\23_034_DYZE\Firmware\Marlin-2.1.2.1\Marlin\src\inc\SanityCheck.h:3801:1: error: static assertion failed: DEFAULT_MAX_FEEDRATE values must be positive.
 static_assert(_PLUS_TEST(2), "DEFAULT_MAX_FEEDRATE values must be positive.");
 ^~~~~~~~~~~~~
In file included from H:\My Drive\23_034_DYZE\Firmware\Marlin-2.1.2.1\Marlin\src\inc\MarlinConfig.h:49:0,
                 from H:\My Drive\23_034_DYZE\Firmware\Marlin-2.1.2.1\Marlin\src\HAL\AVR\MarlinSerial.cpp:39:
H:\My Drive\23_034_DYZE\Firmware\Marlin-2.1.2.1\Marlin\src\inc\SanityCheck.h:2513:4: error: #error "HEATER_1_PIN is not defined. TEMP_SENSOR_1 might not be set, or the board (not EEB / EEF?) doesn't define a pin."
   #error "HEATER_1_PIN is not defined. TEMP_SENSOR_1 might not be set, or the board (not EEB / EEF?) doesn't define a pin."
    ^~~~~
H:\My Drive\23_034_DYZE\Firmware\Marlin-2.1.2.1\Marlin\src\inc\SanityCheck.h:2528:8: error: #error "HEATER_2_PIN not defined for this board."
       #error "HEATER_2_PIN not defined for this board."
        ^~~~~
H:\My Drive\23_034_DYZE\Firmware\Marlin-2.1.2.1\Marlin\src\inc\SanityCheck.h:2717:4: error: #error "E2_STEP_PIN, E2_DIR_PIN, or E2_ENABLE_PIN not defined for this board."
   #error "E2_STEP_PIN, E2_DIR_PIN, or E2_ENABLE_PIN not defined for this board."
    ^~~~~
H:\My Drive\23_034_DYZE\Firmware\Marlin-2.1.2.1\Marlin\src\inc\SanityCheck.h:3796:1: error: static assertion failed: DEFAULT_AXIS_STEPS_PER_UNIT values must be positive.
 static_assert(_PLUS_TEST(1), "DEFAULT_AXIS_STEPS_PER_UNIT values must be positive.");
 ^~~~~~~~~~~~~
H:\My Drive\23_034_DYZE\Firmware\Marlin-2.1.2.1\Marlin\src\inc\SanityCheck.h:3801:1: error: static assertion failed: DEFAULT_MAX_FEEDRATE values must be positive.
 static_assert(_PLUS_TEST(2), "DEFAULT_MAX_FEEDRATE values must be positive.");
 ^~~~~~~~~~~~~
In file included from H:\My Drive\23_034_DYZE\Firmware\Marlin-2.1.2.1\Marlin\src\inc\MarlinConfig.h:49:0,
                 from H:\My Drive\23_034_DYZE\Firmware\Marlin-2.1.2.1\Marlin\src\HAL\DUE\fastio\G2_PWM.cpp:43:
H:\My Drive\23_034_DYZE\Firmware\Marlin-2.1.2.1\Marlin\src\inc\SanityCheck.h:2513:4: error: #error "HEATER_1_PIN is not defined. TEMP_SENSOR_1 might not be set, or the board (not EEB / EEF?) doesn't define a pin."
   #error "HEATER_1_PIN is not defined. TEMP_SENSOR_1 might not be set, or the board (not EEB / EEF?) doesn't define a pin."
    ^~~~~
H:\My Drive\23_034_DYZE\Firmware\Marlin-2.1.2.1\Marlin\src\inc\SanityCheck.h:2528:8: error: #error "HEATER_2_PIN not defined for this board."
       #error "HEATER_2_PIN not defined for this board."
        ^~~~~
H:\My Drive\23_034_DYZE\Firmware\Marlin-2.1.2.1\Marlin\src\inc\SanityCheck.h:2717:4: error: #error "E2_STEP_PIN, E2_DIR_PIN, or E2_ENABLE_PIN not defined for this board."
   #error "E2_STEP_PIN, E2_DIR_PIN, or E2_ENABLE_PIN not defined for this board."
    ^~~~~
H:\My Drive\23_034_DYZE\Firmware\Marlin-2.1.2.1\Marlin\src\inc\SanityCheck.h:3796:1: error: static assertion failed: DEFAULT_AXIS_STEPS_PER_UNIT values must be positive.
 static_assert(_PLUS_TEST(1), "DEFAULT_AXIS_STEPS_PER_UNIT values must be positive.");
 ^~~~~~~~~~~~~
H:\My Drive\23_034_DYZE\Firmware\Marlin-2.1.2.1\Marlin\src\inc\SanityCheck.h:3801:1: error: static assertion failed: DEFAULT_MAX_FEEDRATE values must be positive.
 static_assert(_PLUS_TEST(2), "DEFAULT_MAX_FEEDRATE values must be positive.");
 ^~~~~~~~~~~~~

exit status 1



Compilation error: #error "HEATER_1_PIN is not defined. TEMP_SENSOR_1 might not be set, or the board (not EEB / EEF?) doesn't define a pin."
Attachments:
open | download - Configuration.h (124.1 KB)
open | download - Configuration_adv.h (173.3 KB)
Re: Dyze Pulsar extruder configuration with RAMPS
December 03, 2023 07:55AM
This is a RAMPS

there are 3 mosfets, and 5 stepper drivers only, which are set to X,Y,Z,E0 and E1

you set BOARD_RAMPS_14_EFB

Which sets what the mosfets are used for

E, extruder hotend
F, fan
B, heated bed

So if you want to add a second and 3rd extruder then need to setup the required pins

Add

#define HEATER_1_PIN {pin number you used}
#define HEATER_2_PIN {pin number you used}
#define E2_STEP_PIN {pin number you used}
#define E2_DIR_PIN {pin number you used}
#define E2_ENABLE_PIN {pin number you used}


you have set #define DEFAULT_AXIS_STEPS_PER_UNIT { 0, 0, 0, 224.6 } and #define DEFAULT_MAX_FEEDRATE { 0, 0, 0, 150 }

0 is not a valid value in these

Edited 1 time(s). Last edit at 12/03/2023 08:59AM by Dust.
Re: Dyze Pulsar extruder configuration with RAMPS
December 03, 2023 07:58AM
Ramps picture you linked only shows 2 extruders while config says 3??
Re: Dyze Pulsar extruder configuration with RAMPS
December 03, 2023 08:57AM
I think you should start again

You want 3 extruders on ramps, but you don't seem to want X,Y or Z in this case?

So you pick the 3 stepper drivers you want to use

Using E0,E1 and Z as E2 is easiest


Note Marlin 2.1.2.1 Does not allow X or Y or Z to be optional, so you have to define it and just ignore or work around them
Newer versions of marlin allows you to remove all axis and just have E

Uses the attached files
Configuration.h
Configuration_adv.h
thermistor_68.h Has a bug in that causes errors when using thermistor 68
pins_RAMPS.h Needed editing to setup 3 mosfets as 3 extruder heaters

This builds

Take careful note of pin changes made

#ifndef MOTHERBOARD
  #define MOTHERBOARD BOARD_RAMPS_14_EEB
  #define TEMP_0_PIN A3
  #define TEMP_1_PIN A4
  #define TEMP_2_PIN A9
  #define HEATER_0_PIN         8
  #define HEATER_1_PIN         9
  #define HEATER_2_PIN        10

  #define Z_STEP_PIN           4 // Unused pin just to stop Z using this pin
  #define Z_DIR_PIN            5 // Unused pin just to stop Z using this pin
  #define Z_ENABLE_PIN         6 // Unused pin just to stop Z using this pin

  #define E2_STEP_PIN         46  // originally Z_STEP_PIN
  #define E2_DIR_PIN          48  // originally Z_DIR_PIN
  #define E2_ENABLE_PIN       62  // originally Z_ENABLE_PIN
#endif


This should get you started...

Edited 6 time(s). Last edit at 12/04/2023 02:54AM by Dust.
Re: Dyze Pulsar extruder configuration with RAMPS
December 05, 2023 11:16AM
Dear @Dust
Thanks for your help, it works.

Now I have a problem with PT100 Amplifier Boards.

I am following this scheme but I am getting this error:

Err: MAXTEMP: E3
PRINTER HALTED
Please Reset

If I set only one extruder and use only one PT100, it works.
If I set 3 extruders (#define EXTRUDERS 3) and set 3 PT100, I get the error.

Thank you.
Re: Dyze Pulsar extruder configuration with RAMPS
December 06, 2023 10:31AM
If you swap the PT100 Amplifier Boards around, does the error move? to a different Extruder number?

Edited 1 time(s). Last edit at 12/06/2023 10:36AM by Dust.
Re: Dyze Pulsar extruder configuration with RAMPS
December 07, 2023 04:29AM
No, it's always

Err: MAXTEMP: E3
PRINTER HALTED
Please Reset

It doesn't make any sense since I activated 3 extruders, E0 E1 E2.
E3 shouldn't be active.

UPDATE

I've found a way to make the electronics to read 3 heaters on the LCD screen.
E0 and E1 were just good, it seems that E2 had a problem. Instead of using E2 with PIN A9 as shown in the image I am now using PIN A5.

My problem now is that all the heaters are showing temperature 0° instead of room temperature.

Any idea of why? Sensors are powered.

Edited 1 time(s). Last edit at 12/07/2023 07:32AM by aletax9090.
Re: Dyze Pulsar extruder configuration with RAMPS
December 08, 2023 02:18AM
Had a bit of a play.

Sadly I don't have anything fancy like pt100 amplifiers, but the page [docs.dyzedesign.com] page listed voltages vs temperatures.
So I created a simple voltage divider and created an approximately 2.5v and verified that would give a valid temperature in the table (it does, around 240C) and feed into the analog inputs.

Can replicate the issue of them all reading 0

But I have found the fix

Change

#define TEMP_0_PIN A3
#define TEMP_1_PIN A4
#define TEMP_2_PIN A5

to

#define TEMP_0_PIN 3
#define TEMP_1_PIN 4
#define TEMP_2_PIN 5


Marlin doesn't like the A3,A4 or A5

Also if you want to use Analog pin 5 you need to add this line with your other pin defines.

#define FILWIDTH_PIN -1 // Stop filament width sensor from using pin Analog 5

The whole section now looks like this

#ifndef MOTHERBOARD
  #define MOTHERBOARD BOARD_RAMPS_14_EEB
  #define FILWIDTH_PIN        -1  // Stop filament width sensor from using pin Analog 5
  #define TEMP_0_PIN           3
  #define TEMP_1_PIN           4
  #define TEMP_2_PIN           5
  #define HEATER_0_PIN         8
  #define HEATER_1_PIN         9
  #define HEATER_2_PIN        10

  #define Z_STEP_PIN           4  // Unused pin just to stop Z using this pin
  #define Z_DIR_PIN            5  // Unused pin just to stop Z using this pin
  #define Z_ENABLE_PIN         6  // Unused pin just to stop Z using this pin

  #define E2_STEP_PIN         46  // originally Z_STEP_PIN
  #define E2_DIR_PIN          48  // originally Z_DIR_PIN
  #define E2_ENABLE_PIN       62  // originally Z_ENABLE_PIN
#endif

I now read 238C when the 2.5v is plugged into a analog pin on all 3 inputs. (close enough for just testing)

Edited 2 time(s). Last edit at 12/08/2023 02:20AM by Dust.
Re: Dyze Pulsar extruder configuration with RAMPS
December 14, 2023 06:53AM
It seems that this fixed the issue. Now I have some power supply problems, but I'll run a new test in the next few days and hope to solve.

In the meanwhile, another question smiling smiley
I am integrating my electronics with a robot system. I want that the extrusion is controlled by the robot system but I need both systems to be connected.

The question is: where can I connect the systems through the Ramps? There is any PIN which is able to do it?

Thank you!
Re: Dyze Pulsar extruder configuration with RAMPS
December 14, 2023 10:57PM
There is no magic pin that allows you to connect to other systems...

The ramps takes gcode input over serial (any configured serial port)

The only outputs are the step/direction and enable lO ines for the stepper drivers (or something emulating a stepper driver) And a LCD, which isnt much use for other systems

Edited 2 time(s). Last edit at 12/15/2023 12:34AM by Dust.
Sorry, only registered users may post in this forum.

Click here to login