-
Notifications
You must be signed in to change notification settings - Fork 68
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* RAMPS 1.4 Support Add support for RAMPS 1.4 Arduino Mega shields. Does not support ULN2003 drivers or un-modded 28BYJ steppers. * Update Configuration_adv.hpp * Version update * Clang format Co-authored-by: Andre Stefanov <[email protected]>
- Loading branch information
1 parent
726faf5
commit 324543c
Showing
8 changed files
with
212 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,165 @@ | ||
/** | ||
* @brief a pins configuration file for a RAMPS 1.4 + Arduino Mega OAT. | ||
*/ | ||
|
||
#pragma once | ||
|
||
// DRIVER_TYPE_TMC2209_UART requires 4 digital pins in Arduino pin numbering | ||
#ifndef RA_STEP_PIN | ||
#define RA_STEP_PIN 54 // STEP | ||
#endif | ||
#ifndef RA_DIR_PIN | ||
#define RA_DIR_PIN 55 // DIR | ||
#endif | ||
#ifndef RA_EN_PIN | ||
#define RA_EN_PIN 38 // Enable | ||
#endif | ||
#ifndef RA_DIAG_PIN | ||
#define RA_DIAG_PIN 43 // only needed for autohome function | ||
#endif | ||
// DRIVER_TYPE_TMC2209_UART requires 2 additional digital pins for SoftwareSerial, can be shared across all drivers | ||
#ifndef RA_SERIAL_PORT_TX | ||
#define RA_SERIAL_PORT_TX 23 // SoftwareSerial TX port | ||
#endif | ||
#ifndef RA_SERIAL_PORT_RX | ||
#define RA_SERIAL_PORT_RX 25 // SoftwareSerial RX port | ||
#endif | ||
#ifndef RA_DRIVER_ADDRESS | ||
#define RA_DRIVER_ADDRESS 0b00 | ||
#endif | ||
// DRIVER_TYPE_TMC2209_UART requires 4 digital pins in Arduino pin numbering | ||
#ifndef DEC_STEP_PIN | ||
#define DEC_STEP_PIN 60 // STEP | ||
#endif | ||
#ifndef DEC_DIR_PIN | ||
#define DEC_DIR_PIN 61 // DIR | ||
#endif | ||
#ifndef DEC_EN_PIN | ||
#define DEC_EN_PIN 56 // Enable | ||
#endif | ||
#ifndef DEC_DIAG_PIN | ||
#define DEC_DIAG_PIN 45 // only needed for autohome function | ||
#endif | ||
// DRIVER_TYPE_TMC2209_UART requires 2 additional digital pins for SoftwareSerial, can be shared across all drivers | ||
#ifndef DEC_SERIAL_PORT_TX | ||
#define DEC_SERIAL_PORT_TX 27 // SoftwareSerial TX port | ||
#endif | ||
#ifndef DEC_SERIAL_PORT_RX | ||
#define DEC_SERIAL_PORT_RX 29 // SoftwareSerial RX port | ||
#endif | ||
#ifndef DEC_DRIVER_ADDRESS | ||
#define DEC_DRIVER_ADDRESS 0b00 | ||
#endif | ||
|
||
#define SW_SERIAL_UART 1 | ||
|
||
// DRIVER_TYPE_TMC2209_UART requires 4 digital pins in Arduino pin numbering | ||
#ifndef AZ_STEP_PIN | ||
#define AZ_STEP_PIN 46 // STEP | ||
#endif | ||
#ifndef AZ_DIR_PIN | ||
#define AZ_DIR_PIN 48 // DIR | ||
#endif | ||
#ifndef AZ_EN_PIN | ||
#define AZ_EN_PIN 62 // Enable | ||
#endif | ||
#ifndef AZ_DIAG_PIN | ||
#define AZ_DIAG_PIN 47 // only needed for autohome function | ||
#endif | ||
// DRIVER_TYPE_TMC2209_UART requires 2 additional digital pins for SoftwareSerial, can be shared across all drivers | ||
#ifndef AZ_SERIAL_PORT_TX | ||
#define AZ_SERIAL_PORT_TX 31 // SoftwareSerial TX port | ||
#endif | ||
#ifndef AZ_SERIAL_PORT_RX | ||
#define AZ_SERIAL_PORT_RX 33 // SoftwareSerial RX port | ||
#endif | ||
#ifndef AZ_DRIVER_ADDRESS | ||
#define AZ_DRIVER_ADDRESS 0b00 | ||
#endif | ||
// DRIVER_TYPE_TMC2209_UART requires 4 digital pins in Arduino pin numbering | ||
#ifndef ALT_STEP_PIN | ||
#define ALT_STEP_PIN 26 // STEP | ||
#endif | ||
#ifndef ALT_DIR_PIN | ||
#define ALT_DIR_PIN 28 // DIR | ||
#endif | ||
#ifndef ALT_EN_PIN | ||
#define ALT_EN_PIN 24 // Enable | ||
#endif | ||
#ifndef ALT_DIAG_PIN | ||
#define ALT_DIAG_PIN 32 // only needed for autohome function | ||
#endif | ||
// DRIVER_TYPE_TMC2209_UART requires 2 additional digital pins for SoftwareSerial, can be shared across all drivers | ||
#ifndef ALT_SERIAL_PORT_TX | ||
#define ALT_SERIAL_PORT_TX 35 // SoftwareSerial TX port | ||
#endif | ||
#ifndef ALT_SERIAL_PORT_RX | ||
#define ALT_SERIAL_PORT_RX 37 // SoftwareSerial RX port | ||
#endif | ||
#ifndef ALT_DRIVER_ADDRESS | ||
#define ALT_DRIVER_ADDRESS 0b00 | ||
#endif | ||
|
||
// DRIVER_TYPE_TMC2209_UART requires 4 digital pins in Arduino pin numbering. This is the E1 port. | ||
#ifndef FOCUS_STEP_PIN | ||
#define FOCUS_STEP_PIN 36 // STEP | ||
#endif | ||
#ifndef FOCUS_DIR_PIN | ||
#define FOCUS_DIR_PIN 34 // DIR | ||
#endif | ||
#ifndef FOCUS_EN_PIN | ||
#define FOCUS_EN_PIN 30 // Enable | ||
#endif | ||
#ifndef FOCUS_DIAG_PIN | ||
#define FOCUS_DIAG_PIN 49 // only needed for autohome function | ||
#endif | ||
// DRIVER_TYPE_TMC2209_UART requires 2 additional digital pins for SoftwareSerial, can be shared across all drivers | ||
#ifndef FOCUS_SERIAL_PORT_TX | ||
#define FOCUS_SERIAL_PORT_TX 39 // SoftwareSerial TX port | ||
#endif | ||
#ifndef FOCUS_SERIAL_PORT_RX | ||
#define FOCUS_SERIAL_PORT_RX 41 // SoftwareSerial RX port | ||
#endif | ||
#ifndef FOCUS_DRIVER_ADDRESS | ||
#define FOCUS_DRIVER_ADDRESS 0b00 | ||
#endif | ||
|
||
// RA Homing pin for Hall sensor | ||
#ifndef RA_HOMING_SENSOR_PIN | ||
#define RA_HOMING_SENSOR_PIN 53 | ||
#endif | ||
|
||
//GPS pin configuration | ||
#ifndef GPS_SERIAL_PORT | ||
#define GPS_SERIAL_PORT Serial2 // Pins 16 and 17 | ||
#endif | ||
|
||
// DISPLAY_TYPE_LCD_KEYPAD requires 6 digital & 1 analog output in Arduino pin numbering | ||
#ifndef LCD_PIN4 | ||
#define LCD_PIN4 63 | ||
#endif | ||
#ifndef LCD_PIN5 | ||
#define LCD_PIN5 40 | ||
#endif | ||
#ifndef LCD_PIN6 | ||
#define LCD_PIN6 42 | ||
#endif | ||
#ifndef LCD_PIN7 | ||
#define LCD_PIN7 59 | ||
#endif | ||
#ifndef LCD_PIN8 | ||
#define LCD_PIN8 64 | ||
#endif | ||
#ifndef LCD_PIN9 | ||
#define LCD_PIN9 44 | ||
#endif | ||
|
||
// DISPLAY_TYPE_LCD_KEYPAD requires 1 analog input in Arduino pin numbering | ||
#ifndef LCD_KEY_SENSE_PIN | ||
#define LCD_KEY_SENSE_PIN 65 | ||
#endif | ||
|
||
//Pin to turn on dew heater MOSFET | ||
#ifndef DEW_HEATER_PIN | ||
#define DEW_HEATER_PIN 10 | ||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters