Camera-based Star Tracker


Description:
This home-built star tracker uses an f=300mm telephoto lens, a low-cost Raspberry Pi Global-Shutter camera, RPi 3 model B+ computer board and 4.3" display/touch screen. For downward compatibility it generates an analog error signal similar to the Guider telescope electronics.
Handling this new star tracker is easier than the guider telescope: It is more sensitive and has a factor 10 larger field of view resulting in covering a factor 100 larger area of the sky. Getting a sufficiently bright star in the FoV can be achieved within 1-2 minutes.
The analog error-signal drives the mount-controller, which continuously adapts the RA-stepper frequency to keep the star centered, thus correcting for errors in mount alignment and periodic errors of the mount gear.

The images below give some more details. From left to right:
  • The main components of the star tracker:
    • A surplus f=300mm F#5.5 telephoto lens with the screw-on connection replaced by a 1.25" internal diameter barrel.
      A 100 Ohm resistor in the vicinity of the front lens and connected to one of the USB-ports of the RPi 3B+, generates enough heat to prevent the lens from fogging,
    • A mechanical holder that clamps the lens and provides an interface for mounting on the telescope mount, and for mounting the display/RPi/ADC stack,
    • The RPi GS-camera, featuring 1456x1088 square 3.45um pixels and thus a 5.0 x 3.8 mm sensitive area. It (unfortunately) is a colour camera. To increase its sensitivity the built-in Hoya CM500 filter has been removed and in software the RGB-contributions are simply added to yield a 1456x1088 BW image. A screw-on 1.25" barrel fits the modified telephoto interface and is closed off with a Calflex IR-cutoff filter (cutoff beyond 700nm). The filter keeps the telephoto lens in its spectral operating range,
    • The Raspberry Pi 3 Model B+ board,
    • The Waveshare 4.3 inch QLED Display with DSI Interface, 800 x 480 pixels and capacitive touch screen,
    • An add-on board containing the RTC (Real Time Clock), a DA-converter (MCP4821) and analog level-shifter/buffer (AD820),
  • To mount (and protect) the display/RPI/ADC stack onto the mechanical interface a bezel (display bracket) and two other brackets fit the 4 mounting holes on the display board and interface with the mechanical holder,
  • The fully assembled Star Tracker with the GS-camera protected by a small aluminum pot,
  • The Star Tracker mounted to an alt-az mount attached to the counter weight axis of my German mount,
  • The Star Tracker mounted on my new fork-mount. The mounting bracket (not visible!) allows star selection in RA-direction only,
  • The electronics circuit of the Star Tracker.
Main star tracker components; detail of display/RPI-assy & GS-camera
Mechanical brackets for mounting the display/RPi-assy
Fully assembled star tracker
Star tracker mount for manually aiming the Star Tracker
Star tracker on my new fork-mount (gif)
ADC and RTC circuit
Software and operation:
The C++ software is written in Qt-creator and uses raspicam apps to control the camera. It automatically starts on power-up and opens with a parameter screen that, among others, enables setting the ROI-size (Region of Interest), video parameters and output parameters. Large buttons are used to provide enough touch area/space on the small screen.
The main screen allows for setting camera gain and exposure time, for single or continuous image acquisition (including locating possible stars and selecting the ROIs) and for starting active tracking.
In tracking mode only the selected ROIs are processed to locate the star and its (pixel interpolated) x- and y-position error with respect to the positions in the very first image taken. X- and y-errors, output signal (and its PID-components) can be viewed in moving graphs.
Start-up: Parameters screen
Selection of ROIs
Tracking:
Image with ROI and cross wire
Tracking:
Curves of (manually introduced) x- and y-errors
Tracking:
Output signal and PID components
Example star profile
PID-control loop
Guiding accuracy:
Guiding a telescope with large focal length using the short focal length star tracker requires sub-pixel accuracy: My f=1455mm telescope has a factor 4.85 larger focal length than the Star Tracker (1455/300). The CCD's I'm using have a factor 3.5 larger, and thus more tolerant pixel size (12um versus 3.45um). Thus, effectively the tracking error is a factor ~1.4 larger in the telescope image requiring (say) a factor 2 pixel interpolation: The star image stretches over multiple pixels of the Star Tracker camera and calculating its center of gravity (instead of, for instance, the (discrete) pixel position with highest peak intensity) yields sub-pixel accuracy. Furthermore, using multiple stars in the image (if available) will increase accuracy by SQRT(N) with N the number of stars.

Since corrective action only takes place AFTER a guiding error has been detected PID-control instead of only proportional control, may improve the overall performance. I use a modified PID control: P is the corrective action proportional to the actual error, I is an additional corrective action based on the sum over the last 3-5 error readings (correcting for possible sustaining errors) and D is a corrective action based on the error difference two reading apart (enhancing or limiting the corrective action depending on the direction of correction that has already been set in).
By the way, note that when tracking near zero declination and imaging at high(er) declination (say: phi) the error in the telescope image reduces with COS(phi).