Skip to content
Mark edited this page Mar 2, 2023 · 10 revisions
Name PandaZHU_PIN PandaM4_PIN Name PandaZHU_PIN PandaM4_PIN
X_Endstop 4 4 Y_Endstop 35 35
Z_Endstop 21 21 SERVO(BLTOUCH PWM) 0 0
X_Step 101 101 X_Dir 100 100
Y_Step 103 103 Y_Dir 102 102
Z_Step 105 105 Z_Dir 104 104
E0_Step 107 107 E0_Dir 106 106
E1_Step 115 None E1_Dir 114 114
E2_Step 112 None E2_Dir 113 None
E3_Step 110 None E3_Dir 111 None
E4_Step 121 None E4_Dir 122 None
X_ENABLE 128 115 Y_ENABLE 128 114
Z_ENABLE 128 113 E0_ENABLE 128 112
E1_ENABLE 128 None E2_ENABLE 128 None
E3_ENABLE 128 None E4_ENABLE 128 None
Heater Bed 109 109 Heater_Hotend0 108 108
Heater_Hotend1 123 None
Fan0 118 118 Fan1 119 119
Fan2 120 120
Bed Thermistor 36 36 Hotend0 Thermistor 39 39
Hotend1 Thermistor 34 None
Filament Runout 22 22 RGB light 15 15
DHT11 13 13
LCD_BTN 32 32 LCD_BTN1 33 33
LCD_BTN2 25 25 LCD_RS 27 27
LCD_ENABLE 26 26 LCD_D4 14 14
Beeper 129 129
SD_MOSI 23 23 SD_MISO 19 19
SD_SCK 18 18 SDSS 5 5
SD_DETECT 2 2
SPEAKER 25 25

pins_PANDA_ZHU.h

#pragma once

/**
 * Espressif ESP32 (Tensilica Xtensa LX6) pin assignments
 */

#include "env_validate.h"

#define BOARD_INFO_NAME "PANDA_ZHU"
#define DEFAULT_MACHINE_NAME  BOARD_INFO_NAME

#define SERVO0_PIN                       0


//
// Limit Switches
//
#define X_MIN_PIN                             4
#define Y_MIN_PIN                             35
#define Z_MIN_PIN                             21

//
// Steppers
//
#define X_STEP_PIN                          100+1 
#define X_DIR_PIN                           100
#define X_ENABLE_PIN                        100+24+4
//#define X_CS_PIN                             0

#define Y_STEP_PIN                          100+3
#define Y_DIR_PIN                           100+2 
#define Y_ENABLE_PIN                        100+24+4
//#define Y_CS_PIN                            13

#define Z_STEP_PIN                           100+5
#define Z_DIR_PIN                            100+4
#define Z_ENABLE_PIN                         100+24+4
//#define Z_CS_PIN                             5  // SS_PIN

#define E0_STEP_PIN                          100+7
#define E0_DIR_PIN                           100+6
#define E0_ENABLE_PIN                        100+24+4
//#define E0_CS_PIN                           21

#define E1_STEP_PIN                          100+8+7
#define E1_DIR_PIN                           100+8+6
#define E1_ENABLE_PIN                        100+24+4

#define E2_STEP_PIN                          100+8+4
#define E2_DIR_PIN                           100+8+5
#define E2_ENABLE_PIN                        100+24+4

#define E3_STEP_PIN                          100+8+2
#define E3_DIR_PIN                           100+8+3
#define E3_ENABLE_PIN                        100+24+4

#define E4_STEP_PIN                          100+16+5
#define E4_DIR_PIN                           100+16+6
#define E4_ENABLE_PIN                        100+24+4


//
// Temperature Sensors
//
#define TEMP_0_PIN                            39  // Analog Input
#define TEMP_BED_PIN                          36  // Analog Input

//
// Heaters / Fans
//
#define HEATER_0_PIN                           100+8
#define FAN_PIN                                100+16+2
#define HEATER_BED_PIN                         100+8+1
#define E0_AUTO_FAN_PIN_ESP                    100+16+4
//
// MicroSD card
//
#define SD_MOSI_PIN                           23
#define SD_MISO_PIN                           19
#define SD_SCK_PIN                            18
#define SDSS                                   5
#define SD_DETECT_PIN                          2

#define BEEPER_PIN                  100+24+5 
#define BTN_ENC                     12 

#define BTN_EN1                     33 
#define BTN_EN2                     32 

#define LCD_PINS_RS                    27
#define LCD_PINS_ENABLE                26
#define LCD_PINS_D4                    14