mirror of
https://github.com/isaac879/Pan-Tilt-Mount.git
synced 2026-08-16 13:03:15 +02:00
Add files via upload
This commit is contained in:
@@ -5,14 +5,16 @@
|
||||
|
||||
#define BAUD_RATE 57600
|
||||
|
||||
#define PIN_MS 11
|
||||
#define PIN_ENABLE 12
|
||||
#define PIN_LED_DATA 2
|
||||
#define PIN_SHUTTER_TRIGGER 4
|
||||
#define PIN_DIRECTION_PAN 5
|
||||
#define PIN_STEP_PAN 6
|
||||
#define PIN_DIRECTION_TILT 7
|
||||
#define PIN_STEP_TILT 8
|
||||
#define PIN_DIRECTION_SLIDER 9
|
||||
#define PIN_STEP_SLIDER 10
|
||||
#define PIN_MS 11
|
||||
#define PIN_ENABLE 12
|
||||
#define PIN_PAN_HALL A3
|
||||
#define PIN_TILT_HALL A4
|
||||
#define PIN_INPUT_VOLTAGE A5
|
||||
@@ -25,16 +27,19 @@
|
||||
|
||||
#define PAN_GEAR_RATIO 8.4705882352941176470588235294118 //144/17 teeth
|
||||
#define TILT_GEAR_RATIO 3.047619047619047619047619047619 //64/21 teeth
|
||||
//#define SLIDER_MILLIMETRE_RATIO //mm/steps
|
||||
// 200 *
|
||||
|
||||
#define MAX_STRING_LENGTH 10
|
||||
#define ARRAY_LENGTH 20
|
||||
|
||||
#define SHUTTER_DELAY 300
|
||||
|
||||
#define INSTRUCTION_STEP_MODE 'm'
|
||||
#define INSTRUCTION_PAN_STEPS 'P'
|
||||
#define INSTRUCTION_TILT_STEPS 'T'
|
||||
#define INSTRUCTION_PAN_DEGREES 'p'
|
||||
#define INSTRUCTION_TILT_DEGREES 't'
|
||||
//#define INSTRUCTION_HOME 'h'
|
||||
#define INSTRUCTION_SET_HOME 'h'
|
||||
#define INSTRUCTION_ENABLE 'e'
|
||||
#define INSTRUCTION_SET_ACCELLERATION 'a'
|
||||
@@ -45,12 +50,10 @@
|
||||
#define INSTRUCTION_SET_PAN_HALL_OFFSET 'o'
|
||||
#define INSTRUCTION_SET_TILT_HALL_OFFSET 'O'
|
||||
#define INSTRUCTION_TOGGLE_HOMING 'H'
|
||||
|
||||
#define INSTRUCTION_TRIGGER_SHUTTER 'c'
|
||||
#define INSTRUCTION_AUTO_HOME 'A'
|
||||
#define INSTRUCTION_MULTISTEPPER_TEST_2 '2'
|
||||
#define INSTRUCTION_MULTISTEPPER_TEST_3 '3'
|
||||
#define INSTRUCTION_DEMO_1 '4'
|
||||
#define INSTRUCTION_STATUS 'r'
|
||||
#define INSTRUCTION_DEBUG_STATUS 'R'
|
||||
#define INSTRUCTION_PAN_RUN_SPEED 'k'
|
||||
#define INSTRUCTION_TILT_RUN_SPEED 'l'
|
||||
@@ -63,8 +66,18 @@
|
||||
#define INSTRUCTION_EDIT_ARRAY 'E'
|
||||
#define INSTRUCTION_ADD_DELAY 'D'
|
||||
#define INSTRUCTION_CLEAR_ARRAY 'C'
|
||||
|
||||
#define INSTRUCTION_SCALE_PAN_SPEED 'M'
|
||||
#define INSTRUCTION_SCALE_TILT_SPEED 'N'
|
||||
#define INSTRUCTION_SAVE_TO_EEPROM 'U'
|
||||
//#define INSTRUCTION_SET_LED_HUE 'b'
|
||||
#define INSTRUCTION_TIMELAPSE 'L'
|
||||
#define INSTRUCTION_ENABLE_LIMITS 'y'
|
||||
#define INSTRUCTION_PAN_MIN_LIMIT 'f'
|
||||
#define INSTRUCTION_PAN_MAX_LIMIT 'F'
|
||||
#define INSTRUCTION_TILT_MIN_LIMIT 'g'
|
||||
#define INSTRUCTION_TILT_MAX_LIMIT 'G'
|
||||
#define INSTRUCTION_ANGLE_BETWEEN_PICTURES 'b'
|
||||
#define INSTRUCTION_DELAY_BETWEEN_PICTURES 'B'
|
||||
|
||||
#define EEPROM_ADDRESS_ENABLE_HOMING 0
|
||||
#define EEPROM_ADDRESS_LIMIT_PAN_MIN 1
|
||||
@@ -80,8 +93,20 @@
|
||||
#define EEPROM_ADDRESS_INVERT_PAN 41
|
||||
#define EEPROM_ADDRESS_INVERT_TILT 42
|
||||
#define EEPROM_ADDRESS_MODE 43
|
||||
#define EEPROM_ADDRESS_DEGREES_PER_PICTURE 45
|
||||
#define EEPROM_ADDRESS_TIMELAPSE_DELAY 49
|
||||
#define EEPROM_ADDRESS_ENABLE_LIMITS 53
|
||||
#define EEPROM_ADDRESS_PAN_MIN_LIMIT 54
|
||||
#define EEPROM_ADDRESS_PAN_MAX_LIMIT 58
|
||||
#define EEPROM_ADDRESS_TILT_MIN_LIMIT 62
|
||||
#define EEPROM_ADDRESS_TILT_MAX_LIMIT 66
|
||||
|
||||
#define VERSION_NUMBER "1.3.1"
|
||||
#define LED_TYPE WS2812B
|
||||
#define COLOR_ORDER GRB
|
||||
#define NUM_LEDS 1
|
||||
#define BRIGHTNESS 255
|
||||
|
||||
#define VERSION_NUMBER "1.5.1"
|
||||
|
||||
/*------------------------------------------------------------------------------------------------------------------------------------------------------*/
|
||||
|
||||
@@ -114,7 +139,9 @@ float boundFloat(float, float, float);
|
||||
float panDegreesToSteps(float);
|
||||
float tiltDegreesToSteps(float);
|
||||
float panStepsToDegrees(long);
|
||||
float panStepsToDegrees(float);
|
||||
float tiltStepsToDegrees(long);
|
||||
float tiltStepsToDegrees(float);
|
||||
int addPosition(void);
|
||||
void clearArray(void);
|
||||
void executeMoves(int);
|
||||
@@ -131,6 +158,14 @@ void invertPanDirection(bool);
|
||||
void invertTiltDirection(bool);
|
||||
int setTargetPositions(float, float);
|
||||
void toggleAutoHoming(void);
|
||||
void triggerCameraShutter(void);
|
||||
void scaleMovesArrayPanMaxSpeed(float newMax);
|
||||
void scaleMovesArrayTiltMaxSpeed(float newMax);
|
||||
void ledBatteryLevel(float batteryPercentage);
|
||||
int setTargetPositionsSteps(long panSteps, long tiltSteps);
|
||||
void timeLapseInterpolation(float, float, float, float, float, unsigned long);
|
||||
void timeLapse(float, unsigned long, int);
|
||||
void toggleEnableLimits(void);
|
||||
|
||||
/*------------------------------------------------------------------------------------------------------------------------------------------------------*/
|
||||
|
||||
|
||||
Reference in New Issue
Block a user