diff --git a/.vscode/arduino.json b/.vscode/arduino.json new file mode 100644 index 0000000..6840f41 --- /dev/null +++ b/.vscode/arduino.json @@ -0,0 +1,6 @@ +{ + "board": "arduino:avr:mega", + "configuration": "cpu=atmega2560", + "programmer": "AVRISP mkII", + "sketch": "k3ng_rotator_controller\\k3ng_rotator_controller.ino" +} \ No newline at end of file diff --git a/.vscode/c_cpp_properties.json b/.vscode/c_cpp_properties.json new file mode 100644 index 0000000..c7bc753 --- /dev/null +++ b/.vscode/c_cpp_properties.json @@ -0,0 +1,16 @@ +{ + "configurations": [ + { + "name": "Win32", + "includePath": [ + "C:\\Program Files (x86)\\Arduino\\tools\\**", + "C:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\**" + ], + "forcedInclude": [ + "C:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\cores\\arduino\\Arduino.h" + ], + "intelliSenseMode": "msvc-x64" + } + ], + "version": 4 +} \ No newline at end of file diff --git a/k3ng_rotator_controller/rotator_features.h b/k3ng_rotator_controller/rotator_features.h index 03d8a36..2505981 100755 --- a/k3ng_rotator_controller/rotator_features.h +++ b/k3ng_rotator_controller/rotator_features.h @@ -15,7 +15,7 @@ // #define FEATURE_SUN_TRACKING // #define FEATURE_CLOCK // #define FEATURE_GPS -// #define FEATURE_RTC_DS1307 +#define FEATURE_RTC_DS1307 // #define FEATURE_RTC_PCF8583 // #define FEATURE_ETHERNET // #define FEATURE_STEPPER_MOTOR // Requires TimerFive library to be copied to the Arduino libraries directory (If using OPTION_STEPPER_MOTOR_USE_TIMER_ONE_INSTEAD_OF_FIVE below, copy the TimeOne library) @@ -139,14 +139,14 @@ #define OPTION_DISPLAY_HEADING #define OPTION_DISPLAY_HEADING_AZ_ONLY #define OPTION_DISPLAY_HEADING_EL_ONLY -#define OPTION_DISPLAY_HHMM_CLOCK // display HH:MM clock (set position with #define LCD_HHMM_CLOCK_POSITION) +// #define OPTION_DISPLAY_HHMM_CLOCK // display HH:MM clock (set position with #define LCD_HHMM_CLOCK_POSITION) // #define OPTION_DISPLAY_HHMMSS_CLOCK // display HH:MM:SS clock (set position with #define LCD_HHMMSS_CLOCK_POSITION) // #define OPTION_DISPLAY_ALT_HHMM_CLOCK_AND_MAIDENHEAD // display alternating HH:MM clock and maidenhead on LCD row 1 (set position with #define LCD_HHMMCLOCK_POSITION) -// #define OPTION_DISPLAY_CONSTANT_HHMMSS_CLOCK_AND_MAIDENHEAD // display constant HH:MM:SS clock and maidenhead on LCD row 1 (set position with #define LCD_CONSTANT_HHMMSSCLOCK_MAIDENHEAD_POSITION) +#define OPTION_DISPLAY_CONSTANT_HHMMSS_CLOCK_AND_MAIDENHEAD // display constant HH:MM:SS clock and maidenhead on LCD row 1 (set position with #define LCD_CONSTANT_HHMMSSCLOCK_MAIDENHEAD_POSITION) // #define OPTION_DISPLAY_BIG_CLOCK // display date & time clock (set row with #define LCD_BIG_CLOCK_ROW) // #define OPTION_CLOCK_ALWAYS_HAVE_HOUR_LEADING_ZERO #define OPTION_DISPLAY_GPS_INDICATOR // display GPS indicator on LCD - set position with LCD_GPS_INDICATOR_POSITION and LCD_GPS_INDICATOR_ROW -// #define OPTION_DISPLAY_DIRECTION_STATUS // LCD N, W, E, S, NW, etc. direction indicator +#define OPTION_DISPLAY_DIRECTION_STATUS // LCD N, W, E, S, NW, etc. direction indicator // #define OPTION_DISPLAY_MOON_TRACKING_CONTINUOUSLY // LCD // #define OPTION_DISPLAY_SATELLITE_TRACKING_CONTINUOUSLY // LCD // #define OPTION_DISPLAY_SATELLITE_TRACKING_ALTERNATING // LCD diff --git a/k3ng_rotator_controller/rotator_pins.h b/k3ng_rotator_controller/rotator_pins.h index b8934cc..93441ec 100755 --- a/k3ng_rotator_controller/rotator_pins.h +++ b/k3ng_rotator_controller/rotator_pins.h @@ -29,7 +29,7 @@ #define az_preset_pot 0 // connect to wiper of 1K to 10K potentiometer for preset control (set to 0 to disable) #define preset_start_button 0 // connect to momentary switch (ground on button press) for preset start (set to 0 to disable or for preset automatic start) #define button_stop 0 // connect to momentary switch (ground on button press) for preset stop (set to 0 to disable or for preset automatic start) -#define rotation_indication_pin 0 +#define rotation_indication_pin 4 #define blink_led 0 #define az_stepper_motor_pulse 44 //0 #define az_stepper_motor_direction 0 @@ -125,7 +125,7 @@ #define heading_reading_inhibit_pin 0 // input - a high will cause the controller to suspend taking azimuth (and elevation) readings; use when RF interferes with sensors #ifdef FEATURE_LIMIT_SENSE - #define az_limit_sense_pin 0 // input - low stops azimuthal rotation + #define az_limit_sense_pin A4 // input - low stops azimuthal rotation #define el_limit_sense_pin 0 // input - low stops elevation rotation #endif //FEATURE_LIMIT_SENSE diff --git a/k3ng_rotator_controller/rotator_settings.h b/k3ng_rotator_controller/rotator_settings.h index 5638ff6..1af9d36 100755 --- a/k3ng_rotator_controller/rotator_settings.h +++ b/k3ng_rotator_controller/rotator_settings.h @@ -2,7 +2,7 @@ /* -------------------------- rotation settings ---------------------------------------*/ #define AZIMUTH_STARTING_POINT_DEFAULT 0 // the starting point in degrees of the azimuthal rotator - only used for initializing EEPROM the first time the code is run -#define AZIMUTH_ROTATION_CAPABILITY_DEFAULT 360 // the default rotation capability of the rotator in degrees - only used for initializing EEPROM the first time the code is run +#define AZIMUTH_ROTATION_CAPABILITY_DEFAULT 350 // the default rotation capability of the rotator in degrees - only used for initializing EEPROM the first time the code is run /* @@ -44,7 +44,7 @@ You can tweak these, but read the online documentation! //AZ #define AZ_SLOWSTART_DEFAULT 0 // 0 = off ; 1 = on -#define AZ_SLOWDOWN_DEFAULT 1 // 0 = off ; 1 = on +#define AZ_SLOWDOWN_DEFAULT 0 // 0 = off ; 1 = on #define AZ_SLOW_START_UP_TIME 2000 // if slow start is enabled, the unit will ramp up speed for this many milliseconds #define AZ_SLOW_START_STARTING_PWM 1 // PWM starting value for slow start (must be < 256) #define AZ_SLOW_START_STEPS 20 // must be < 256