k3ng / k3ng_rotator_controller

K3NG Arduino Amateur Radio Rotator Controller
http://blog.radioartisan.com/yaesu-rotator-computer-serial-interface/
GNU General Public License v3.0
181 stars 126 forks source link

How to get the basic setting for Azimuth possition configured using the Yaesu GS-232A/B with simple potentiometer #90

Open bogokrr opened 2 years ago

bogokrr commented 2 years ago

Hi have been struggling to get the position signal working with PST rotator.

I have the basic control working so I can activate the rotation both ways im just using LED for indication, but when it comes to the rotation signal the indicator on the PST rotator is not stable.

I have made a very simple set-up on a bred board wher I have a potentiometer wher I can input between 0 and 5 volt by turning the potentiometer. Connected the PST software via COM to the Arduino board and used the Yaesu GS-232A as protocol. and it seam to work ok-

Expected behavior: That when i rotate the potentiometer the PST rotator sw would move the indicator arround Actual: When i add a voltage to the analogue input that i have configured in the configuration the PSY rotator dial is jumping sporadic arround, and make no sense to the voltage that I apply. If i ground the Analogue input it does stop jumping arround.

What i have tried: Check the stabilaty of the voltage for e.g. noise (no noise voltage from battery) I have cheked the aduino Ax with test program if there was a broken analouge input on th board i have playearroun with teh configuration file and cheked that i have enabled teh correct settings to gain the very basic Yaesu GS-232A/B with az sens via an analouge DC voltage.

Is there any one that maybe could share the correct/expected settining, maybe im missing some setting.

My goal is very simple just to have position signal as a variable DC 0-5Vdc. and use PST rotator for the control.

dh1tw commented 2 years ago

Not sure if I have really understood what your problem is, but it appears to be more on the hardware side. Try to monitor your voltages with an oscilloscope. I found potentiometers with corrosion or signs or wear behaving strange/random.

When working with Prosistel rotators, please remember that they use by default a 10 turn potentiometer. This means that you don't have 0...5V for a full turn but rather 1/10th (0,5V). Normally I install them somewhere in the middle so that the value range for a complete turn corresponds to 3V - 3.5V. 0,5V/360° results in 1,36mV / degree. Is the resolution of your ADC good enough? If not you might need some additional circuitry for adjusting the levels.

I hope this helps.