Hi Steve,
I think that the ERROR is a result of the rotor reporting a orientation of -360° Azimuth due to the destroyed endstop.
I will try to bend the endstops down a bit, so that it can be pushed from both sides. Does the rotor react to the endstops during normal operation? Or are they only acknowledged during homing?
Okay, I just fixed it.
I bend the arm and the limit switch slightly down and used some electrical tape to stop it from going up again.
Theoretically that shoud’ve fixed it, but I went ahead and set the maximum Azimuth to 340° degrees in gpredict. Just to be sure.
The gear ratio was not 1:54 for me, but more like 1:53,4. I changed that in the Arduino program.
Now everything works and I just got this HRPT image from NOAA 18:
There’s two type of switches that I know than can be used for end stop switch: optical/magnetic and mechanical.
For optical/magnetic, there’s 3 wire: Ground, Positive (5V), and Signal that you need to wire those respectively. Signal should be wired to SW1 and SW2 if you are using SatNOGS PCB (X+ and Y+ on CNC Shield V3 that I use, but I think it should be the same).
Mechanical switch does not need 5V, so ground and signal only (if there’s 3 pins on the switch, connect to ground/Common and normally open/NO).
SatNOGS rotator should do a homing routine every time you powered it on.
Tips on troubleshooting from my experience:
If your rotator only moved a second then stopped without the switch touching the end stop, you might can change the program code end stop from HIGH to LOW or vice versa.
If your end stop switch was pressing or passing the end stop without stopping, the Azimuth and Altitude switch (SW1 and SW2) might be reversed.
Again, most of the troubleshooting can be found on the wiki. Hope this helps