Skip to the content
PCBKitNew board
2 layers111.3 × 70.7 mmAstrotracker, the printed circuit board in 3D

DIY star tracker camera mount for astrophotography. Includes a 3-axis rotational gimbal, automatic North Pole alignment, and possible upcoming GoTo integration.

Size
111.3 × 70.7 mm
Copper layers
2
Thickness
1.6 mm
Parts
30
Nets
68
Pads
173
Tracks, vias
522, 83
Routed
Yes
KiCad
KiCad 9.0 (file 20241229)
Created
16 Jun 2025
Updated
30 Oct 2026

Overview

Astrotracker is an open-source printed circuit board by jaydenaleung, from the jaydenaleung/astrotrackerH1 repository on GitHub. It is a 2-layer board of 111.3 × 70.7 mm with 30 parts on 68 nets, routed with 522 tracks and 83 vias.

It is built around the TMC2209SILENTSTEPSTICK. Its parts include 7 resistors, 7 ICs and 7 switches. It belongs with the ESP32 boards of this library.

Main components

1

README

README.md

Astrotracker H1

Astrotracker H1 is a DIY star tracker camera mount for astrophotography, made to open access to astrophotography without needing to purchase a more expensive star tracker. Includes a multi-axis rotational gimbal, automatic North Pole alignment, and possible upcoming GoTo integration.

FULL VIDEO DEMO: https://youtu.be/irbhYrVtJVo

Onshape (CAD Model) Link: https://cad.onshape.com/documents/bffc36d0f5bca770a27c02a3/w/2a2e8752598234cf6c653f02/e/8318d06d3c2c905c2b13cb54?renderMode=0&uiState=6adab1f747cc560a7bd789e2

Figures

Total Minimum Cost: $220 USD

Total Hours Spent: 135 hrs

Total Days Spent: 33 days

See JOURNAL.md and the BOM below for an in-depth explanation of these numbers.

Overview

Astrotracker H1 is a budget-friendly, custom star tracker I built for the highest tier of Hack Club's Highway "You Ship We Ship" program. Star trackers assist long exposures in astrophotography by rotating the camera along the rotation of the stars, at 15°/hr, to eliminate star trails from photos. This device attempts to solve these issues by upgrading the traditional equatorial mount to include a polar scope for precise alignment, a counterweight to balance the camera's weight, automatic computerized alignment using azimuthal and latitude (GPS) measurements, and a standard 1/4" tripod mount.

The device uses two plates connected by a hinge and a rotating gear. The bottom plate is the swivel plate, which adjusts the azimuthal heading of the device with a high-torque motor. The other plate is the rotational axis (RA) plate, which tilts to match its angle of elevation to the device's GPS latitude and is driven by a precise worm gear with a 60:1 reduction ratio. These mechanisms allow the device to automatically align with the North Pole, calibrated using a precise polar scope. Once the device is aligned, camera rotation will begin, driven by a NEMA 17 stepper motor with microstepping. Microstepping enhances these features by increasing the precision and resolution of the stepper motor by up to 64 times.

I like to approach my builds in three sections, something I learned from the Highway program: CAD modeling, PCB design, and firmware. For large mechanical projects like this, CAD often takes the most time. I model the entire physical assembly and create custom components in the Onshape software. Because of the size of the project, I made a PCB "dashboard" with buttons connected to an ESP32 microcontroller, and learned that complex PCBs often require multiple iterations! Finally, the firmware used compass and GPS information for auto-alignment and drove an LCD display on the dashboard showing the tracker's status.

How It Works

The Three-Part Process

There are always three parts to an engineering project like this, at least for the Highway YSWS program. One is computer-aided design (CAD) modeling; for large projects, this often takes the most time, as it did with this project. Another is printed circuit board (PCB) design, which is the electrical component of the project. Finally, the brain of the build is programmed in the software part, where firmware is written onto a microcontroller that controls the hardware. See the pictures below for how I went about this!

CAD:

PCB:

Firmware:

Star Trackers

Since astrophotography is done in very dark environments, a long exposure ranging from a second to the whole night is needed. Due to Earth's rotation, keeping the camera in the same place for a long exposure causes the image to display star trails instead of clear, detailed stars. Star trackers fix this problem by rotating the camera on an equatorial mount aligned with the path of the stars, eliminating star trails. See this picture for a diagrammed explanation:

Astrotracker H1

This device attempts to solve these issues by upgrading the traditional equatorial mount to include a polar scope for precise alignment, a counterweight to balance the camera's weight, automatic computerized alignment using azimuthal and latitude (GPS) measurements, and a standard 1/4" tripod mount.

The mechanism is based on two plates connected by a hinge and a rotating gear. The bottom plate is the swivel plate, which swivels 360° and adjusts the azimuthal heading of the device. The other plate is the rotational axis (RA) plate, which tilts to match is angle of elevation to the device's GPS latitude and is driven by a precise worm gear. Matching the device's rotation to face exactly 0° north and its tilt to its GPS latitude allows the RA, the axis perpendicular to and in the middle of the rotating gear and the RA plate, to point exactly to the North Pole (next to the star Polaris). When the RA is pointed toward the North Pole and the rotating gear turns counterclockwise, the tracking will be able to accurately and precisely follow the path of the stars and prevent capturing star trails. Microstepping enhances these features by increasing the precision and resolution of the stepper motor by up to 64 times.

Additional Features

Apart from the bare-bones mechanism that drives the star tracker, these upgrades elevate the project to create a truly effective star tracker:

  • Automatic, computerized alignment using GPS and compass data
  • 1/16 and 1/64 microstepping for stepper motors
  • Polar scope for precise adjustment
  • Counterweight for balance
  • Bubble level for precision
  • Thrust and radial ball bearings for smooth rotation
  • 12.5:1 reduction ratio for belt-driven rotating gear
  • 60:1 reduction ratio for worm gear-driven hinge
  • 51:1 reduction ratio for the gearbox on the stepper motor turning the swivel plate
  • Organized PCB connecting everything on one board
  • Standard 1/4" camera and tripod mount screws
  • Ball mount to point camera the right way
  • Center control console with up-down-left-right buttons for fine adjustment, start-stop tracking buttons, auto-adjustment capability, and a smart LCD UI interface

The 'Why' Behind the Project

As an avid photographer and engineer myself, I have always wanted to get more involved with astrophotography. Unfortunately, living in a city didn't play out well for me because of the massive amount of light pollution around me, blocking my view of the stars. I knew I wanted to combine my passions, and the opportunity to do so came through Hack Club's Highway to Undercity program. They fund almost any project you propose to them through their You Ship We Ship (YSWS) initiative.

After conducting some research, I found out that a star tracker was one of the most necessary tools to take better pictures of the night sky. Unfortunately, they were all priced around $500 USD - a hefty investment. Building a star tracker would allow me to combine my passions and achieve a more cost-effective solution at the same time.

Why This Is Worth Ten Points for Highway Program

This star tracker isn't just any star tracker or equatorial mount - it adds many more complex features that empower young photographers on a budget, like myself, to pursue astrophotography. Fundamentally, the project is already as mechanically complex as a six-point project without all of the additional features. The time spent building intricate features into the mechanical model, custom footprints into the PCB, and special features into the firmware truly takes this project above and beyond the guidelines for a six-point project.

Not only did I pay attention to the detail and precision needed for such a device with the bubble level, high reduction ratios, and microstepping, but I also considered what would take this above its minimum viable product by adding complex logic for auto-alignment, a balancing counterweight to increase control, and an intuitive LCD user interface controlled with standard pushbuttons. Being able to connect all the electrical components on a single, thought-out PCB and the firmware logic for tracking and auto-alignment indeed also makes this project electrically and computationally complex. Furthermore, I was able to achieve all of these features for under $300 USD when most market star trackers cost about $500 USD. Finally, I spent a ton of time perfecting every detail and feature, putting in almost sixty hours before building it (while the recommended minimum time spent for a ten-point project is fifty hours).

Bill of Materials (BOM):

Note: I am using Aliexpress for some and Amazon for others. Prices listed below are in USD, per part, and rounded. e.g. 2x Nema 17 ($14) = $28 total. Also see the .csv file for the official BOM.

QuantityNamePrice Per PartLink
2xNema 17 stepper motor (regular)$14https://www.amazon.com/STEPPERONLINE-Stepper-Bipolar-Connector-compatible/dp/B00PNEQKC0
1xNema 17 stepper motor (w/gearbox)$42https://www.amazon.com/51-Planetary-Gearbox-Stepper-Precision/dp/B00QEVLDVO
1xF8-22M thrust ball bearing$1https://www.aliexpress.us/item/3256807051413217.html
1x10-pack radial ball bearing, 3mm bore$2https://www.aliexpress.us/item/3256807605344885.html
1xWorm gear set (worm + gear)$12https://www.amazon.com/uxcell-Worm-Gear-Set-Reduction/dp/B0DFCVKXLX
1xPCB board (through JLCPCB & Hack Club $20 Coupon)$0, covered by couponSee gerbers.zip in 'pcb' folder
1x20-pack 6x6x14 pushbutton$1https://www.aliexpress.us/item/2255800980685095.html
1xI2C 16x2 LCD with I2C backpack, blue color$1https://www.aliexpress.us/item/3256808568663888.html
1xESP32 DEVKIT WROOM-32 38-Pin Development Board Type-C$1https://www.aliexpress.us/item/3256808295104972.html
1xResistor pack$5https://www.amazon.com/Resistor-Resistors-Assortment-Breadboard-Electronics/dp/B0F4P352BB
1xNEO-8M GPS Module$1https://www.aliexpress.us/item/3256806859439052.html
1xQMC5883L Compass Module$2https://www.aliexpress.us/item/3256807913730129.html
3xTMC2209 stepper motor driver$1https://www.aliexpress.us/item/3256808046478114.html
1x16T 5mm bore gear$7https://www.amazon.com/WINSINN-Aluminum-Synchronous-Timing-Printer/dp/B077GMR328
1x16T toothless idler bearing for 6mm width GT2 belt, 3mm bore$9https://www.amazon.com/WINSINN-Aluminum-Timing-Toothless-Printer/dp/B07BPHPYTN?th=1
1x2-pack GT2 6mm width belt, 530mm length$7https://www.aliexpress.us/item/3256808983126633.html?gatewayAdapt=glo2usa4itemAdapt
1xPolar scope$27https://www.amazon.com/Tydeux-Polar-Telescope-Finderscope-EQ-5/dp/B0D2L11C4G/
1x3-pack 1/4" camera screw$1https://www.aliexpress.us/item/3256806761503223.html
1xCamera ball joint mount, red color$1https://www.aliexpress.us/item/3256802805830814.html
1x5-pack bubble level, 18x9mm$1https://www.aliexpress.us/item/3256808611329580.html
4x200g counterweight$1https://www.aliexpress.us/item/3256807217165073.html
1x6S LiPo battery, 22.2V 1000mAh 100C, XT60 connector$15https://www.amazon.com/Ovonic-Battery-1000mAh-Connector-CINEWHOOP/dp/B07JPK99D9
1xXT60 male and female plug pack wires, 14 AWG, 15cm length$1https://www.aliexpress.us/item/3256808104814371.html
1xLiPo battery charger$30https://www.amazon.com/B6-Battery-Charger-Discharger-Connectors/dp/B0F2H3XR6S
1xM4 nuts and bolts, 270 pcs$9https://www.amazon.com/Kadrick-Assortment-Metric-Washers-Upgrade/dp/B0BZ6XG8PT?th=1
4xM3 50pcs bolts, 6mm, 12mm, 16mm, 35mm versions$1https://www.aliexpress.us/item/2255800794906149.html
1xM3 50 pcs hex nuts$1https://www.aliexpress.us/item/3256807407546447.html
1xM2.5x30mm 50pcs bolts$1https://www.aliexpress.us/item/2255799955713291.html
1xM2.5 50 pcs nuts$1https://www.aliexpress.us/item/3256807407546447.html
1xAllen key set$1https://www.aliexpress.us/item/3256807283413035.html
1xLong-nosed plier$1https://www.aliexpress.us/item/3256805792649837.html
Total minimum cost$220
Total including 'in-case' of price changes, spare parts, etc.~$235
Total including in-cases, sales tax (assumed ~6%), import and customs fees, etc.~$270

Parts

30
QtyValueFootprintReferences
710KResistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P7.62mm_HorizontalR1, R2, R3, R4, R5, R6, R7
7SW_PushButton_Switch_THT:SW_PUSH_6mmSW1, SW2, SW3, SW4, SW5, SW6, SW7
3Stepper_Motor_bipolarNEMA_17:NEMA-17M1, M2, M3
3TMC2209_SILENTSTEPSTICKTMC2209_MODULE:MODULE_TMC2209_SILENTSTEPSTICKU2, U3, U4
1DEVKIT_V1_ESP32-WROOM-32DEVKIT_V1_ESP32-WROOM-32:MODULE_DEVKIT_V1_ESP32-WROOM-32U1
1NEO-8MNEO-8M:GPS NEO-8MU6
1QMC5883L_COMPASSQMC5883L:QMC5883LU5
1i2c_LCDi2c_LCD:i2c_LCDU7

The 24 most common of 30 parts.

Questions

How big is the Astrotracker PCB?

It measures 111.3 × 70.7 mm and has 2 copper layers, 1.6 mm thick.

What parts does the Astrotracker use?

30 parts, built around the TMC2209SILENTSTEPSTICK. The full list of its parts is on this page, with links to each part's symbol and footprint where PCBKit's library has them.

Where can I download the Astrotracker KiCad files?

From the jaydenaleung/astrotrackerH1 repository on GitHub, at the commit this page was made from: the board is pcb/astrotracker.kicad_pcb and its schematic pcb/astrotracker.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the Astrotracker design in my own project?

Its repository states no licence, so its author keeps all rights: ask jaydenaleung before reusing the design.

Similar boards

  • 2 layers90.8 × 35.6 mmERCF easy brd, the printed circuit board in 3D

    ERCF easy brd

    Tircown/ERCF-easy-brd

    More informations on how to reset for flashing:\ https://wiki.seeedstudio.com/Seeeduino-XIAO/#enter-bootloader-mode

    28 parts195GPL-3.0
  • 2 layers92.5 × 62.5 mmDropGenPCB, the printed circuit board in 3D

    DropGenPCB

    harrislab-brown/DropGen

    DropGen uses a fluid reservoir and a piezoelectric buzzer to precisely and repeatably dispense small droplets on demand.

    25 parts12CC-BY-SA-4.0
  • 4 layers130.5 × 171 mmUniMixBase, the printed circuit board in 3D

    UniMixBase

    jarekkt/UniController

    This is a off-spin from my commercial controller for industrial ink printers. It is designed for pick & place machines controlled by OpenPnp

    157 parts6
  • 2 layers91.6 × 65 mmSCARA, the printed circuit board in 3D

    SCARA

    jobitjoseph/SCARA-Robot-Based-on-ESP32-C6

    SCARA Robot Based on ESP32-C6

    67 parts4
  • 2 layers185.7 × 101.9 mmTester circut, the printed circuit board in 3D

    Tester circut

    yazidta/Flying-Probe-Tester

    Automatic PCB Tester

    98 parts3
  • 4 layers102 × 102 mmController, the printed circuit board in 3D

    Controller

    Angelo13C/3d-printer

    Firmware, electronics, mechanics and control interface of a 3D printer

    97 parts2
  • 2 layers24.5 × 49.4 mmRoller blind controller, the printed circuit board in 3D

    Roller blind controller

    ItsRebaseTime/turbomansion

    Hello, welcome to the turbomansion repository.

    6 parts2Unlicense