sangaboard v5 basic support
This commit is contained in:
parent
48015c716c
commit
dfd4a99f1f
3 changed files with 47 additions and 6 deletions
|
|
@ -13,10 +13,11 @@ monitor_speed = 115200
|
||||||
framework = arduino
|
framework = arduino
|
||||||
test_build_project_src = true
|
test_build_project_src = true
|
||||||
lib_deps =
|
lib_deps =
|
||||||
adafruit/Adafruit TSL2591 Library @ ^1.3.1
|
adafruit/Adafruit TSL2591 Library @ ^1.3.1
|
||||||
adafruit/Adafruit ADS1X15 @ ^2.1.1
|
adafruit/Adafruit ADS1X15 @ ^2.1.1
|
||||||
adafruit/Adafruit BusIO @ ^1.7.3
|
adafruit/Adafruit BusIO @ ^1.7.3
|
||||||
SPI
|
SPI
|
||||||
|
waspinator/AccelStepper@^1.61
|
||||||
lib_ldf_mode = chain
|
lib_ldf_mode = chain
|
||||||
|
|
||||||
[env:nano]
|
[env:nano]
|
||||||
|
|
|
||||||
30
src/boards.h
30
src/boards.h
|
|
@ -50,6 +50,23 @@
|
||||||
#define ENDSTOPS_PULLUPS true
|
#define ENDSTOPS_PULLUPS true
|
||||||
#define WIRING_ENDSTOPS_MIN {A0,A1,A2}
|
#define WIRING_ENDSTOPS_MIN {A0,A1,A2}
|
||||||
#define WIRING_ENDSTOPS_MAX {A3,A4,A5}
|
#define WIRING_ENDSTOPS_MAX {A3,A4,A5}
|
||||||
|
#define ADDITIONAL_STEPPERS 1
|
||||||
|
#define WIRING_ADDITIONAL_STEPPERS = {{0, 1, 22, 23}}
|
||||||
|
#define WIRING_STEPSTICK {13,14,15} //enable, step, dir todo: move to boards.h
|
||||||
|
//TODO: illumination, 4th motor wiring
|
||||||
|
#elif defined(BOARD_SANGABOARDv5)
|
||||||
|
#define BOARD_STRING "Sangaboard v0.5"
|
||||||
|
#define WIRING_MOTOR_X 2, 3, 4, 5
|
||||||
|
#define WIRING_MOTOR_Y 6, 7, 16, 17
|
||||||
|
#define WIRING_MOTOR_Z 18, 19, 20, 21
|
||||||
|
#define ENDSTOPS_INVERT false
|
||||||
|
#define ENDSTOPS_PULLUPS true
|
||||||
|
#define WIRING_ENDSTOPS_MIN {26,27,28}
|
||||||
|
//#define WIRING_ENDSTOPS_MAX {22,23,0} //not normally used
|
||||||
|
#define ADDITIONAL_STEPPERS 1
|
||||||
|
#define WIRING_ADDITIONAL_STEPPERS = {{0, 1, 22, 23}}
|
||||||
|
#define WIRING_STEPSTICK {23,22,1} //enable, step, dir todo: move to boards.h
|
||||||
|
//TODO: illumination, 4th motor wiring
|
||||||
#elif defined(BOARD_CUSTOM_ESP32)
|
#elif defined(BOARD_CUSTOM_ESP32)
|
||||||
#define BOARD_STRING "Custom ESP32 board"
|
#define BOARD_STRING "Custom ESP32 board"
|
||||||
#define WIRING_MOTOR_X 34, 32, 25, 27
|
#define WIRING_MOTOR_X 34, 32, 25, 27
|
||||||
|
|
@ -59,4 +76,17 @@
|
||||||
#define ENDSTOPS_PULLUPS true
|
#define ENDSTOPS_PULLUPS true
|
||||||
#define WIRING_ENDSTOPS_MIN {A0,A1,A2}
|
#define WIRING_ENDSTOPS_MIN {A0,A1,A2}
|
||||||
#define WIRING_ENDSTOPS_MAX {A3,A4,A5}
|
#define WIRING_ENDSTOPS_MAX {A3,A4,A5}
|
||||||
|
#define WIRING_STEPSTICK {13,12,27}
|
||||||
|
#elif defined(BOARD_CUSTOM)
|
||||||
|
#define BOARD_STRING "Sangaboard v0.5"
|
||||||
|
#define WIRING_MOTOR_X 2, 3, 4, 5
|
||||||
|
#define WIRING_MOTOR_Y 2, 3, 4, 5
|
||||||
|
#define WIRING_MOTOR_Z 2, 3, 4, 5
|
||||||
|
#define ENDSTOPS_INVERT false
|
||||||
|
#define ENDSTOPS_PULLUPS true
|
||||||
|
#define WIRING_ENDSTOPS_MIN {1,2,0}
|
||||||
|
//#define WIRING_ENDSTOPS_MAX {22,23,0} //not normally used
|
||||||
|
#define ADDITIONAL_STEPPERS 1
|
||||||
|
#define WIRING_ADDITIONAL_STEPPERS = {{0, 1, 22, 23}}
|
||||||
|
#define WIRING_STEPSTICK {8,9,10} //enable, step, dir todo: move to boards.h
|
||||||
#endif
|
#endif
|
||||||
14
src/config.h
14
src/config.h
|
|
@ -1,8 +1,16 @@
|
||||||
#ifndef CONFIGURED
|
#ifndef CONFIGURED
|
||||||
//board choice
|
//board choice
|
||||||
#define BOARD_AUTO
|
//#define BOARD_AUTO
|
||||||
//#define BOARD_SANGABOARDv3
|
//#define BOARD_SANGABOARDv3
|
||||||
//#define BOARD_SANGABOARDv2
|
//#define BOARD_SANGABOARDv2
|
||||||
|
#define BOARD_SANGABOARDv5
|
||||||
|
//#define BOARD_CUSTOM_ESP32
|
||||||
|
//#define BOARD_CUSTOM_PICO
|
||||||
|
|
||||||
|
//default to USB serial for now
|
||||||
|
//#define SERIAL_PORT PiSerial
|
||||||
|
#define SERIAL_PORT Serial
|
||||||
|
|
||||||
//#define BOARD_CUSTOM
|
//#define BOARD_CUSTOM
|
||||||
#include <boards.h> //defines wiring
|
#include <boards.h> //defines wiring
|
||||||
|
|
||||||
|
|
@ -10,7 +18,7 @@
|
||||||
#define MAX_COMMANDS 50
|
#define MAX_COMMANDS 50
|
||||||
#define MAX_MODULES 10
|
#define MAX_MODULES 10
|
||||||
#define MAX_ARGUMENT_LENGTH 20 //used in argument parsing, takes up ram
|
#define MAX_ARGUMENT_LENGTH 20 //used in argument parsing, takes up ram
|
||||||
#define VERSION_STRING "Sangaboard Firmware v1.0-beta"
|
#define VERSION_STRING "Sangaboard Firmware v0.4" //temporary hack
|
||||||
#define DEBUG_ON
|
#define DEBUG_ON
|
||||||
|
|
||||||
//module choice
|
//module choice
|
||||||
|
|
@ -18,6 +26,8 @@
|
||||||
#define STAGE
|
#define STAGE
|
||||||
// #define ENDSTOPS
|
// #define ENDSTOPS
|
||||||
// #define LIGHT_SENSOR
|
// #define LIGHT_SENSOR
|
||||||
|
// #define STEPSTICK
|
||||||
|
// #define ILLUMINATION
|
||||||
|
|
||||||
//module configs
|
//module configs
|
||||||
#ifdef STAGE
|
#ifdef STAGE
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue