This version is compatible with EASYCOMM2 antenna protocol.
After getting in touch with PstRotator (tracking software) developer, he kindly gave me the solution I was searching for, in order to send back the antenna position to be displayed in the software. He also generously gave me a license for his software, thank you very much.
In the Easycom2 protocol, the software sends the target position to the controller, like
There is no fix length for the coordinates.
The software asks for the current antenna position by sending
And the controller should respond with
where the first is the azimuth, then the elevation. There is no fix length, but the decimal is mandatory, even if it is 0. Like +23.0 5.0
Note that so far, PstRotator was the only software who could display the antenna position.
This Arduino version is compatible with all tracking software using EasyComm protocol / 9600 bauds.
PstRotator, WXtrack, HRD, MacDoppler… Even WXtoIMG can control the rotator. Orbitron needs the plugin listed below.
It accepts 0-180º elevation, but rotates the antenna accordingly, for max. 90º elevation.
There’s also a variant for AC motors, which offers dry contacts (ON/OFF). It can be easily interfaced with commercial rotators. And one for 180º elevation. Just give me a shout.
If you only want azimuth control, that’s fine. Just don’t install the parts for elevation. Put A1 to GND to always read 0° elevation. This is an example of electric diagram for azimuth only.
The DC motors version has the advantage of using PWM for a softer/smoother antenna movement. It outputs a power response proportional with angle error (Target<->Antenna).
There’s an adjustable Dead Zone, where the antenna doesn’t move for the slightest target offset.
This is the plot of Power output corresponding to Angle error.
Once the project is complete and it can move, you must apply the Potentiometer calibration procedure. It ensures correct reading of 0-359deg. / 0-90deg., no matter what kind of potentiometer you’re using.
The motor calibration is only for DC, and tunes the soft stop feature. This is only necessary if you don’t like the default settings.
Check the Arduino code page for the codes, drawings and procedures.
Thank you very much to all who sent me feedback, helping to make this project more reliable.