280 Rotation Limits - k3ng/k3ng_rotator_controller GitHub Wiki

Rotation Limits

Software

If you would like to set software limits for the azimuth rotation commands and buttons uncomment this line:

#define OPTION_AZ_MANUAL_ROTATE_LIMITS

...and customize these settings:

#define AZ_MANUAL_ROTATE_CCW_LIMIT 185

#define AZ_MANUAL_ROTATE_CW_LIMIT 535

The above settings will stop CCW rotation when an azimuth of 185 is reached, and stop CW rotation when 175 degrees is reached ("5:30" on a 180 degree starting azimuth rotator.) This functionality is useful if for some reason you do not want your rotation system going beyond a certain point due to physical limits.

There is a corresponding feature and settings for elevation rotation limits: #define OPTION_EL_MANUAL_ROTATE_LIMITS #define EL_MANUAL_ROTATE_DOWN_LIMIT -1 #define EL_MANUAL_ROTATE_UP_LIMIT 181

Hardware / Limit Switches

{under construction} #define FEATURE_LIMIT_SENSE

#define az_limit_sense_pin 0 // input - low stops azimuthal rotation

#define el_limit_sense_pin 0 // input - low stops elevation rotation

Examples

Example 1: Limit range of Az motion to 90 - 135 degrees and El motion to 10-60 degrees. "90-135" means 45 degrees range of motion.

#define AZIMUTH_STARTING_POINT_DEFAULT 90

#define AZ_MANUAL_ROTATE_CCW_LIMIT 90

#define AZ_MANUAL_ROTATE_CW_LIMIT 135

#define EL_MANUAL_ROTATE_DOWN_LIMIT 10

#define EL_MANUAL_ROTATE_UP_LIMIT 60

Example 2: Limit range of Az motion to 90 - 45 degrees and El motion to 0-60 degrees. "90-45" means a moving area from 90 degrees, via 180, 270, 360 degrees to 45 degrees this will give a 315 degrees range of motion.

#define AZIMUTH_STARTING_POINT_DEFAULT 90

#define AZ_MANUAL_ROTATE_CCW_LIMIT 90

#define AZ_MANUAL_ROTATE_CW_LIMIT 405 //360+45

#define EL_MANUAL_ROTATE_DOWN_LIMIT 0

#define EL_MANUAL_ROTATE_UP_LIMIT 60

Note: If using Az preset, this function will only work partly. Example: Antenna is pointing to 10 degrees and you want to turn it to 140 degrees. If using the Az preset function, the antenna will rotate CW and stop at 90 degrees. To get it working, you have to use the preset two times. First preset Az to something less than 220, after finished running CCW, enter 140 as the Az preset. Rotation will continue CCW, and stops at 140 degrees.

Example 3: Assume a configuration with starting point at 180 degrees CCW, by using the xxx setting in

#define AZ_MANUAL_ROTATE_CW_LIMIT xxx

The result of the xxx setting will be:

xxx=540 gives 360 degrees of rotation (rotator will stop at CW 180 degrees)

xxx=550 gives 360+10=370 degrees of rotation (rotator will stop at CW 190 degrees)

xxx=560 gives 360+20=380 degrees of rotation (rotator will stop at CW 200 degrees)

xxx=570 gives 360+30=390 degrees of rotation (rotator will stop at CW 210 degrees)

xxx=580 gives 360+40=400 degrees of rotation (rotator will stop at CW 220 degrees)

xxx=590 gives 360+50=410 degrees of rotation (rotator will stop at CW 230 degrees)

xxx=600 gives 360+60=420 degrees of rotation (rotator will stop at CW 240 degrees)

xxx=630 gives 360+90=450 degrees of rotation (rotator will stop at CW 270 degrees)