Firmware for Sanguish

From RepRap
Jump to: navigation, search

Sanguish Home ----- Build Sanguish ----- Use Sanguish


General Guidelines

The main changes that need to be made to firmware in general are the following.

1. Change the motor enable pins to non-inverting ie. active high logic, Dont forget. 2. Change the step pulse delay if needed to at least 10us. 3. Change the power on control to active high. The power on pin only controls the stepper driver power relay. 4. Add Pin assignments if needed

Repetier

Repetier was tested early in the Sanguish Beta test program and works well. There are settings in the config.h for power on logic, enable inverting, and step pulse delay. Below is the Pins.h entry I added to define the pinout.


/****************************************************************************************

  • Sanguish Beta pin assignment
                                                                                                                                                                                • /
  1. if MOTHERBOARD == 501
  2. define KNOWN_BOARD
  1. if !defined(__AVR_ATmega644P__) && !defined(__AVR_ATmega644__) && !defined(__AVR_ATmega1284P__)
   #error Oops!  Make sure you have 'Your MCU/Bootloader' selected from the 'Tools -> Boards' menu.
  1. endif

//x axis pins

 #define X_STEP_PIN      28
 #define X_DIR_PIN       27
 #define X_ENABLE_PIN    29
 #define X_MIN_PIN       2
 #define X_MAX_PIN       -1
   
 //y axis pins
 #define Y_STEP_PIN      25
 #define Y_DIR_PIN       24
 #define Y_ENABLE_PIN    26
 #define Y_MIN_PIN       5
 #define Y_MAX_PIN       -1
   
 //z axis pins
 #define Z_STEP_PIN      22
 #define Z_DIR_PIN       21
 #define Z_ENABLE_PIN    23
 #define Z_MIN_PIN       1
 #define Z_MAX_PIN       -1
   
 //extruder pins
 #define E0_STEP_PIN      19     
 #define E0_DIR_PIN       18     
 #define E0_ENABLE_PIN    20     
 #define TEMP_0_PIN      1 
 #define TEMP_1_PIN      0    
 #define HEATER_0_PIN    3    
 #define HEATER_1_PIN    4    
   
   
 #define SDPOWER          -1
 #define SDSS            -1 
 #define LED_PIN         -1    
      
 #define FAN_PIN         -1    
 #define PS_ON_PIN       0    
   //our pin for debugging.
   
 #define DEBUG_PIN        -1
   
   //our RS485 pins
 #define TX_ENABLE_PIN	12
 #define RX_ENABLE_PIN	13
 #define SDPOWER          -1
 #define SDSS          -1
 #define SCK_PIN          7
 #define MISO_PIN         6
 #define MOSI_PIN         5
 #define E0_PINS E0_STEP_PIN,E0_DIR_PIN,E0_ENABLE_PIN,
 #define E1_PINS
  1. endif