So my simple project got far more complicated now I’m here hoping the electronic whizzards can help
We have a directional antenna on a ship needs to face 210 degrees when in use so I mounted a large scale RC servo to it and a Servo test box so we move the antenna each time we need it tuned but I want it to track 210 degrees on its own
I thought a simple magnetic compass attached to one of the control boards should work but now we are unsure which board will work and do we need a DC motor driver added to the system ?
There is very little interference on the ocean,pitch and roll don’t affect the dish it seems any lend a hand
What’s in the existing “Servo test box” ? You could in theory get some compass module, mount it properly, align and correct it and then read it with some microcontroller (MCU). The MCU could filter those readings, account for the zero deg alignment of the antenna and command the servo to point to 210 (mag or true?). I will say getting a compass to work properly on a ship can be hard, you might want to see if the existing compass (or GPS if in motion) could be used before going the separate route. Also an RC servo has (normally) a limited (180 deg) range of rotation. At some headings it won’t be able to point to 210. If that’s a concern you may need something more custom.
It’s is a directional antenna 12 inches square on a 36 inch mast on a turret base for a spot light we scavenged from the ship the vessels 61 foot and presently our owners are not supporting the idea so our 6 guys on board are trying there best to make it work
Break this down in to 2 pieces at first. That would be reading of the compass and controlling of the servo. Then combine them. If the servo works with the test box then the latter should be easy to do. The hobby servo interface is 3 wires; a ground, a power wire … typically 5v and a control signal from your Uno. I might imagine that the power/current required is non-trivial so using the test box for the supply might be a good idea. A really simple Uno program might be to read a potentiometer and move the servo to a corresponding position. Later you’d replace the reading of the pot with reading of the compass and a control loop to point the servo.
ps - providing links to datasheets or some info for the compass and servo would be useful and likely to get you more responses.
BTW given your servo has some limited (not a full 360 deg) range of motion, what’s your plan for when the vessel is headed on those courses where the servo can turn the antenna enough to get to 210 deg ?