

AstroUniBoard
STM32G0B1-based telescope focuser/rotator controller — OnStepX firmware port + KiCad PCB
- Size
- 35 × 42 mm
- Copper layers
- 2
- Thickness
- 1.6 mm
- Parts
- 146
- Nets
- 131
- Pads
- 575
- Tracks, vias
- 1,403, 379
- Pours
- 2
- Routed
- Yes
- KiCad
- KiCad 10.0 (file 20260206)
- Created
- 21 Mar 2026
- Updated
- 6 Nov 2026
Overview
AstroUniBoard is an open-source printed circuit board by xlazam01, from the xlazam01/AstroUniBoard repository on GitHub, published under the GPL-3.0 licence. It is a 2-layer board of 35 × 42 mm with 146 parts on 131 nets, routed with 1,403 tracks and 379 vias.
It is built around the TMC2209-LA-T, ME3116AM6G and CH213K, with the USBLC6-2SC6, 24AA64T-I/OT and CH334P among its other parts. Its parts include 68 capacitors, 32 resistors, 14 ICs, 9 connectors and 6 diodes. It belongs with the STM32 boards of this library.
Main components
12TMC2209-LA-T
QFN-28-EP(5x5)-40℃~+125℃ 2 256、8、16、32、64 2A 340mΩ 4.75V~29V 4.75V~29V Bipolar Driver Overcurrent Protection、Short-Circuit Protection、Over temperature protection、Under-voltage lockout、Motor step-out prevention function、Built-in charge pump、Thermal warning STEP/DIR、UART Yes QFN-28-EP(5x5) Stepper Motor Driver ROHSTRINAMIC Motion Control GmbHStepper Motor DriverME3116AM6G
SOT-23-6-40℃~+125℃@(TJ) 1 1.35mA 1A 4.75V~40V 550kHz Adjustable Buck Buck Built-in No SOT-23-6 DC-DC Converters ROHSMICRONEDC-DC ConvertersCH213K
SOT-23-32.2V~5.5V 240mV 240mΩ 3.6uA Integrated FET SOT-23-3 ORing Controllers ROHSWCH (Nanjing Qinheng Microelectronics)Power Distribution SwitchesUSBLC6-2SC6
SOT-23-60.35pF、0.8pF 100nA 150W@8/20us 15V 2 5V 6A@8/20us 6V ESD SOT-23-6 ESD and Surge Protection (TVS/ESD) ROHSUMWESD And Surge Protection (TVS/ESD)24AA64T-I/OT
SOT-23-5-40℃~+85℃ 1,000,000 cycles 1.7V~5.5V 200 Years 400kHz 5ms 64Kbit Hardware write protection function、Noise suppression function I2C SOT-23-5 EEPROM ROHSMicrochip TechnologyEEPROMCH334P
QFN-16(3x3)-40℃~+85℃ 0.4mA 3.3V 4 480Mbps 85mA Hub USB 2.0 QFN-16(3x3) USB HUB Controllers ROHSWCH (Nanjing Qinheng Microelectronics)USB HUB ControllersME6231A33M3G
SOT-23-3-40℃~+85℃@(Ta) 1 1.8uA 125mV@(100mA) 18V 3.3V 500mA 76dB@(100Hz) Fixed Over Current Protection、Over Temperature Protection、Enable Positive SOT-23-3 Voltage Regulators - Linear, Low Drop Out (LDO) Regulators ROHSMICRONEVoltage Regulators - Linear, Low Drop Out (LDO) RegulatorsMPU-6000
QFN-24-EP(4x4)-40℃~+85℃ 16bit 1KB 2.375V~3.46V 5uA IMU (accelerometer + gyroscope) SPI、I2C X,Y,Z X,Y,Z ±16g ±2000dps 运动事件检测、同步与时间戳、过量程保护功能 QFN-24-EP(4x4) Accelerometers ROHSTDK InvenSenseAccelerometersB4B-PH-K
UncategorisedJSTTS-1088-AR02016
SMD,4x3mm-30℃~+80℃ 1.6N 100,000 cycles 12V 2mm 3.9mm 3mm 50mA Black Round Button SMD(SMT) Tab SPST Surface Mount,Vertical Without Bracket SMD,4x3mm Tactile Switches ROHSXUNPUTactile SwitchesMC-311D
SMD-35℃~+75℃ 1 12V 16P 5A 7.35mm 8,000 times、10000 times Black Female Surface Mount, Right Angle Type-C SMD USB Connectors ROHSSOFNGUSB ConnectorsB3B-PH-K
UncategorisedJST
README
README.mdAstroUniBoard
A small (35 × 42 mm) STM32G0B1 controller for the imaging train. It drives a focuser and a camera rotator, reads temperature, humidity and camera roll, and has a USB hub, so the camera's USB cable runs through the board. It is built to sit on the moving part of the train and rotate with the camera, so only one USB cable and one 12 V cable leave the rotating side.
| Status | Release v2.0.0: HW rev 2.1, firmware V2 2.0.0, protocol 2. Current ASCOM driver 0.2.1 (pre-release). Firmware 2.0.0 is not yet tested on a rev 2.1 board |
| MCU | STM32G0B1CBT6, Cortex-M0+ 64 MHz, 128 KB flash, 144 KB RAM |
| Motors | 2 × TMC2209 (UART, StealthChop / SpreadCycle, StallGuard), up to 1.5 A RMS each (firmware limit) |
| Sensors | SHT31 temperature/humidity on board (+ optional external SHT31), MPU-6000 accelerometer for camera roll |
| Host | USB-C, CDC serial, VID/PID 1209:0001 (pid.codes test PID until our own is assigned) |
| Hub | CH334P, one downstream USB-C for the camera (or a guide camera, or any other device) |
| Power | 12 V on an XT30 (motors + 5.3 V buck). Logic also runs from USB alone, without motors |
| Licences | firmware and software GPL-3.0, hardware CERN-OHL-S-2.0 |
Renders are from KiCad and show the board as JLC delivers it (DNP sockets left out). Schematic: docs/astrouniboard-rev2.1-schematic.pdf.
Contents
- What is on the board and why
- Other applications
- Alternatives considered
- Connectors and jumpers
- Bill of materials
- Assembly, including the J5 / XT30 order
- First power-up
- Firmware
- Host software
- Repository layout
What is on the board and why
| Feature | Part | Why it is there |
|---|---|---|
| Two identical motor channels: focuser and rotator | 2 × TMC2209 (U3 focuser, U2 rotator), same parts and 0.11 Ω sense on both | The same driver circuit twice, so either channel can take either job, and one BOM line covers both. Focuser: version 1 targets the guide-camera focuser behind an OAG, which N.I.N.A. cannot focus on its own (see the Secondary Focuser plugin); StallGuard can stop a move against a hard stop. Rotator: the firmware keeps the mechanical angle and never crosses the cable-wrap limits (default ±180°, configurable); the sky offset stays with the host. StealthChop keeps both silent and avoids vibration during exposures |
| One UART for both drivers | USART2, addresses 0 / 1 | Run current, hold current, microsteps and mode can be set at runtime and saved, with no pots to adjust. Driver faults, overtemperature and StallGuard are visible to the host |
| Camera roll sensor | MPU-6000 U10 (I²C, 0x68) | The board rotates with the camera, so the accelerometer measures camera roll against gravity. That gives IMU homing: the rotator finds its zero without a switch, flag or Hall sensor. Calibrate once (three captures, any mounting orientation, also upside down) |
| Temperature / humidity | SHT31 U8 (0x45) | For temperature compensation of focus (done on the host) and for dew point (ASCOM ObservingConditions). It is on the board because the board sits on the optical train |
| Switched sensor supply | PB9 → R32 → SHT31 VDD and ADDR | Less self-heating: the SHT31 sits on a board that warms up from the drivers and the buck, and a sensor that is powered all the time adds its own heat. Powering it only around a measurement keeps the reading closer to the air temperature, which matters for focus temperature compensation. (Firmware 2.0.0 still keeps it powered and uses the switch to power-cycle a stuck sensor; duty-cycling it is a firmware option for later.) Tying ADDR to the same pin moves the on-board sensor to 0x45, so an external SHT31 on J9 (0x44) fits on the same bus, for example on the dew shield |
| Position memory | 24AA64 EEPROM U4 | Focuser and rotator positions survive a power cycle. A 256-slot ring with CRC spreads the wear (two writes per move). A move cut by power loss is detected and flagged "unverified" |
| USB hub | CH334P U6, USBLC6 ESD on both ports, CH213K current-limited switch on the downstream VBUS | One cable from the PC carries the board and the camera. The downstream port is protected against shorts and ESD. The hub is USB 2.0 (480 Mbit/s): fine for a guide camera, but a USB 3 imaging camera loses speed on it and should get its own cable |
| Power path | XT30 J6 → F1 2 A polyfuse → D24 SMF15A TVS (rev 2.1) → ME3116 buck (5.3 V) → CH213K ideal-diode OR with USB VBUS → ME6231 3.3 V LDO | 12 V for the motors and a 5 V rail for the hub. D24 clamps the plug-in ringing of a long cable on the all-ceramic input capacitance to below the TMC2209's 29 V limit. F1 trips on a short or overload behind it and resets when cooled. There is no reverse-polarity FET: a reversed supply drives D24 forward until F1 trips, which may cost D24. Rely on the keyed XT30 and check home-made pigtails. The board also comes up from USB alone (bench work, firmware updates) while the motors stay unpowered. 5.3 V leaves headroom for the drop across the ideal diode and the downstream current switch |
| 12 V sense (rev 2.1) | R33/R34 divider on PB10 | The firmware can see that motor power is missing or low before a move, instead of finding out from a driver that stops answering |
| Motor supply jumper | JP4, one 3-pad solder jumper 12V – Vdrive – 5V, 12 V side bridged | 5 V motors can be used from USB power for light loads. One middle pad means only one source can be selected (rev 2.0 had two separate jumpers that could short 12 V onto 5 V), see Assembly |
| Status LEDs | D1 status (PB12), D2 activity (PB4), D3 = 12 V present, D4 = 5 V present | You can see power, motion and errors without a PC. The brightness is adjustable and the LEDs are dim, because the board sits next to a camera |
| Buttons | RST, LEFT (= BOOT0), RIGHT | RST and BOOT0 are for recovery. LEFT/RIGHT are not used by the firmware: in the Triton enclosure the board is mounted upside down and out of reach |
| Spare I/O | J4 Hall/index, J8 AUX1/AUX2, J9 I²C, J10 UART6 — all DNP | For other uses of the board (filter wheel index, dew heater MOSFET, GPS, SQM). See docs/USE_CASES.md |
| Mounting | 4 × M2 (29 × 29 mm) and 4 × M3 (26 × 26 mm), overlapping keyholes | Fits both standoff patterns used in the rig enclosures. The 26 × 26 mm M3 pattern is the NEMA 14 hole pattern, so the board also screws straight onto the back of a NEMA 14 stepper: ideal for a focuser motor or a small mount axis, with no bracket and the shortest possible motor cable |
Pin map and electrical details: docs/HARDWARE.md.
Other applications
The board is a general two-stepper controller with an IMU, a temperature/humidity sensor and a USB hub. Besides the focuser + rotator it was designed for, these uses came up (details in docs/USE_CASES.md):
| Use | What it takes |
|---|---|
| Dual focuser (main + guide scope, or OAG guide camera) | Firmware only: both channels as focusers |
| Filter wheel | Firmware only: one channel drives the wheel, J4 Hall input as the index |
| Motorised dust cap / flat panel | Firmware only for the cap; the panel dimming needs PWM on AUX (J8) |
| Small mount or star tracker (barn door, camera-lens mount) | Both channels as RA/Dec, board mounted straight on a NEMA 14; the IMU helps with levelling. OnStepX-based, needs more flash (G0B1CC/CE) |
| Telescope cover, roof or small dome shutter | Light loads only (TMC2209, about 2 A peak) |
| Mount / observatory monitor | IMU for vibration, wind shake and "scope bumped" alarms; SHT31 for dew-point alerts |
| Dew heater control | PWM on AUX1/AUX2 to an external MOSFET, closed loop on the dew point |
| GPS, sky quality meter, cloud sensor | GPS on UART6 (J10); TSL2591 or MLX90614 on I²C (J9), as an ASCOM SafetyMonitor / ObservingConditions |
| Non-astro | Camera slider or pan/tilt for timelapse, microscope focus stacking, 3D-scan turntable, syringe pump or slow linear stage |
Alternatives considered
These options were weighed during the design, with the reason for each decision. Most are recorded in more detail in docs/V2_PLAN.md §9 and docs/adr/.
| Topic | Chosen | Considered instead | Why |
|---|---|---|---|
| Firmware | Own small firmware V2 (fw/) | Keep the OnStepX port (fw-onstepx/) | OnStepX filled 93 % of flash and carried mount code and the LX200 dialect we never use. V2 uses 65 %. The OnStepX build stays for rev 1 boards and for users who want OnStep clients |
| Step generation | Hardware timer + STEP pin, exact step count | TMC2209 VACTUAL internal generator | VACTUAL loses the step count, and a focuser must know its position |
| Motion | One axis at a time (ERR,8 while busy) | Both axes at once | One step timer, a simpler ISR, and there is no real need to focus and rotate at the same moment |
| Protocol | OpenWheel family :NN…# | LX200 / OnStep dialect | The host libraries (detection, transport, watchdog) are shared with OpenWheel. Every command gets an answer |
| Code sharing with OpenWheel | Copy & adapt | Common library or submodule | Only two devices so far; extract a library when a third one needs it (ADR 0001) |
| Rotator homing | IMU gravity homing (optional at boot) | Hall sensor or limit switch on J4 | No extra parts on the rotating ring. J4 stays available for a Hall index |
| Focuser homing | None: soft limits 0…max, position kept in EEPROM, manual sync | Home switch or StallGuard homing | A focuser rarely needs a home position. Fewer moving parts and no slamming into the end stop |
| Temperature compensation | On the host (driver / N.I.N.A.) | In the firmware | The host knows the filter, the optics and the AF history. The firmware only reports SHT31 data |
| ASCOM architecture | One LocalServer: Focuser + Rotator + ObservingConditions on one port | In-process DLLs | N.I.N.A., the debug app and the plugin can be connected at the same time |
| Network | USB only. Alpaca after 2.0 | Alpaca / Wi-Fi on the device | No ESP on the board. Keeps the device simple and the attack surface small |
| Power connector | XT30 (keyed, 15 A class) | 5.5/2.1 barrel jack (rev 1) | Barrel jacks fall out and short when they are plugged in. The XT30 is keyed against reverse polarity and locks firmly |
| Motor connectors | J5 horizontal JST-PH for the rotator, focuser wires soldered (J3 DNP) | Vertical JST-PH on both | Edge entry: the cable leaves in the board plane, next to the USB cables. The trade-off is the stacking with the XT30 |
| MCU | STM32G0B1CBT6 (128 KB) | G0B1CCT6 (256 KB), G0B1CET6 (512 KB), same pinout | V2 fits in 128 KB. The larger parts are drop-in replacements if stock or features need them (avoid the …N variants, they have a different pinout) |
| LEDs | 0402 red (Extended part at JLC) | 0603 (Basic part, one less Extended fee) | Space next to the USB ports. Could change in a later revision |
| Buttons as hand controller | Not used | Manual focus in/out on LEFT/RIGHT | Not reachable in the Triton enclosure |
| Rev 3 ideas | — | 2–3 PWM dew-heater outputs, switched 12 V, INA219 power monitor, SWD pads | Would make it a focuser + rotator + hub + power box. See docs/USE_CASES.md |
Connectors and jumpers
| Ref | Side | What | Pinout |
|---|---|---|---|
| J2 | top edge | USB-C to the PC (upstream, board + hub) | — |
| J7 | top edge | USB-C to the camera (downstream, hub port) | — |
| J5 | top edge, horizontal | Rotator motor, JST-PH 4 (S4B-PH-K) | 1 B2, 2 B1, 3 A1, 4 A2 |
| J6 | bottom edge, under J5 | 12 V in, XT30PW-M (male pins on the board); F1 polyfuse and TVS D24 on top next to its pins | + / − marked on the bottom silkscreen. Not reverse-polarity protected |
| J3 | pads, DNP | Focuser motor (solder wires or a vertical JST-PH 4) | 1 B2 (G), 2 B1 (BK), 3 A1 (R), 4 A2 (BL): colours on the bottom silkscreen |
| J4 | pads, DNP | Hall / index input | 1 3V3, 2 GND, 3 HALL |
| J8 | pads, DNP | AUX GPIO | 1 3V3, 2 AUX1 (X1), 3 AUX2 (X2), 4 GND |
| J9 | pads, DNP | External I²C (second SHT31 at 0x44) | 1 SDA, 2 SCL, 3 3V3, 4 GND |
| J10 | pads, DNP | UART6 | 1 3V3, 2 TX6, 3 RX6, 4 GND |
| JP4 | top, between the XT30 pins | Motor supply (Vdrive), 3 pads 12V – Vdrive – 5V | 12V side bridged by default |
The motor pin order (B2 B1 A1 A2) matches common 4-wire NEMA cables. Check your motor's coil pairs with a meter: a swapped pair makes the motor buzz instead of turning. It does not damage anything.
Bill of materials
Rev 2.1, JLCPCB assembly. Every fitted part carries an LCSC field in the schematic, so the JLC fabrication toolkit
fills the BOM by itself. Snapshot 2026-11-06. Check stock before ordering, see the notes below the table.
| Ref | Qty | Value | Package | LCSC |
|---|---|---|---|---|
| U5 | 1 | STM32G0B1CBT6 | LQFP-48 | C2847904 |
| U2, U3 | 2 | TMC2209-LA-T | QFN-28 5×5 | C2150710 |
| U6 | 1 | CH334P USB 2.0 hub | LQFN-16 3×3 | C5373042 |
| U10 | 1 | MPU-6000 | QFN-24 4×4 | C92401 |
| U8 | 1 | SHT31-DIS-B | DFN-8 2.5×2.5 | C80862 |
| U4 | 1 | 24AA64T-I/OT | SOT-23-5 | C2061092 |
| U12 | 1 | ME3116AM6G buck | SOT-23-6 | C97643 |
| U1 | 1 | ME6231A33M3G 3.3 V LDO | SOT-23 | C2765181 |
| U11, U13, U14 | 3 | CH213K ideal diode / current-limited switch | SOT-23 | C5456874 |
| U7, U9 | 2 | USBLC6-2SC6 ESD | SOT-23-6 | C2687116 |
| Y1 | 1 | 8 MHz crystal (TAXM8M4RDBCCT2T) | 3225 | C400090 |
| Y2 | 1 | 12 MHz crystal (TAXM12M4RDBCCT2T) | 3225 | C164041 |
| L4 | 1 | 10 µH (IHLP2020BZER100M11) | IHLP-2020 | C844984 |
| D23 | 1 | SS34 Schottky | SMA | C8678 |
| D24 | 1 | SMF15A TVS (12 V input) | SOD-123FL | C123802 |
| F1 | 1 | Polyfuse 2 A hold / 3.5 A trip, 16 V (Ruilon SMD1206P200TF/16) | 1206 | C55125664 |
| D1–D4 | 4 | LED red | 0402 | C130719 |
| J2, J7 | 2 | USB-C receptacle (G-Switch GT-USB-7010ASV) | THT/SMD | C2988369 |
| J5 | 1 | JST S4B-PH-K, horizontal | THT | C265452 |
| J6 | 1 | Amass XT30PW-M | THT, bottom | C431092 |
| RST1, LEFT/BOOT1, RIGHT1 | 3 | TS-1088-AR02016 | SMD | C720477 |
| C2, C3, C13, C16, C36–C44 | 13 | 22 µF 25 V | 0805 | C45783 |
| C29 | 1 | 10 µF 25 V | 0805 | C15850 |
| C24, C28, C31, C32, C45–C47, C53, C59–C66 | 16 | 10 µF 10 V | 0402 | C315248 |
| C14, C48–C51 | 5 | 10 µF 6.3 V | 0402 | C15525 |
| C1, C10, C11, C33 | 4 | 1 µF | 0402 | C52923 |
| C19–C23, C25–C27, C30, C56 | 10 | 100 nF 50 V | 0402 | C307331 |
| C6, C8, C9, C12, C15, C17, C34, C35, C52, C54, C55, C58, C69, C70 | 14 | 100 nF 16 V | 0402 | C1525 |
| C7, C18 | 2 | 22 nF 50 V | 0402 | C1532 |
| C57 | 1 | 2.2 nF 50 V | 0402 | C1531 |
| C4, C5 | 2 | 10 pF | 0402 | C32949 |
| R10, R11, R19, R20 | 4 | 0.11 Ω (sense) | 0805 | C5126077 |
| R3, R4, R5, R9, R13, R15, R22, R24, R34 | 9 | 10 kΩ | 0402 | C25744 |
| R6, R7, R8, R14, R16, R17 | 6 | 5.1 kΩ | 0402 | C25905 |
| R21, R33 | 2 | 100 kΩ | 0402 | C25741 |
| R25, R26 | 2 | 56 kΩ | 0402 | C25796 |
| R27 | 1 | 33 kΩ | 0402 | C25779 |
| R23 | 1 | 1.78 kΩ 1 % | 0402 | C113478 |
| R12 | 1 | 1 kΩ | 0402 | C11702 |
| R18 | 1 | 510 Ω | 0402 | C25123 |
| R32 | 1 | 47 Ω | 0402 | C25118 |
| R28–R31 | 4 | 22 Ω | 0402 | C25092 |
| JP4 | — | 3-pad solder jumper, 12 V side bridged | — | — |
| Not fitted (DNP) | ||||
| J3, J8, J9, J10 | 4 | JST B4B-PH-K, vertical (optional) | THT | C131334 |
| J4 | 1 | JST B3B-PH-K, vertical (optional) | THT | C131339 |
Hand parts (not from JLC): XT30U-F cable plug with 16–18 AWG silicone wire, a JST PH 4-pin housing with crimped contacts for the rotator motor, M2 or M3 standoffs.
Notes before ordering:
- U5 STM32G0B1CBT6 had no JLC stock on 2026-11-06. Use global sourcing or a consigned part, or the STM32G0B1CCT6 (C5270241, 256 KB, same pinout).
- 17 Basic, 3 Preferred and 24 Extended unique parts. The 0402 LEDs and R23 are avoidable Extended parts.
- All SMD parts are on the top side (single-sided assembly).
- Production files (gerbers, drill, BOM, CPL) are not in the tree. Take them from the GitHub release (
v2.0.0for rev 2.1), or generate them yourself as described in docs/HARDWARE.md.
Assembly
JLC fits all SMD parts. What is left (or what to check, if JLC also fits the through-hole parts) is the two edge connectors, the optional sockets and the jumpers. The order matters.
1. J5 before J6 (the XT30) — read this first
The rotator socket J5 sits on the top edge directly above the XT30 J6 on the bottom edge. Both are through-hole parts, so J5's four pins come out on the bottom, under the XT30 body:
- If the XT30 goes on first, J5 cannot be soldered any more: its solder side is covered. If J5 is already in, its pins hold the XT30 off the board.
- When both are fitted, J5 can only be reworked after the XT30 comes off again. The XT30 is soldered into a large ground and 12 V copper area and is hard to remove without damaging pads. A wrong order or a bad J5 joint means the rotator output is lost, unless you are equipped to desolder the XT30.
Do it in this order:
- J5 first. Insert the S4B-PH-K from the top with the opening towards the board edge, flush and square. Solder its 4 pins from the bottom.
- Check J5 now, while you still can: shiny joints, no bridges between the 2 mm pins, continuity from each pin to the TMC2209 U2 outputs, and no short to GND or to its neighbours.
- Trim J5's pins flush on the bottom (≤ 0.5 mm, flush cutters) and remove the cut ends. Optional: one layer of Kapton tape over the four joints.
- XT30 J6 on the bottom with the opening towards the board edge. It has to sit flat on the board. If it rocks, a J5 pin is still too long. Solder the two power pins and the two mounting legs from the top. The legs sit right next to J5's housing: use a fine tip and do not melt the JST plastic.
- Mind F1 and D24 on top next to the XT30 pins. F1's pad touches the
+pad on purpose (that overlap is the connection), so F1 reflows while you solder the+pin: keep the iron short and check F1 is still seated. D24's GND pad is only 0.15 mm from the+pad: use little solder and check under a loupe that the+joint does not bridge to D24. A bridge shorts 12 V to GND (F1 then trips). - Check polarity against the
+/−marks on the bottom silkscreen, and that the XT30 pins are not shorted to each other (> 1 kΩ between+and−; it starts low and rises while the capacitors charge).
If JLC fitted J5 for you, start at step 2. The bottom silkscreen says J5 FIRST next to the XT30 as a reminder.
2. Focuser motor (J3)
Either solder the motor wires directly into J3 (colours on the bottom silkscreen: G, BK, R, BL), or fit a vertical B4B-PH-K from the top. Leave some strain relief: a zip tie through one of the mounting holes works.
3. Optional sockets
J4 (Hall), J8 (AUX), J9 (external SHT31 / I²C), J10 (UART6): vertical JST-PH, inserted from the top. They are DNP because most users don't need them, and a vertical socket in the cable path is in the way in a tight enclosure.
4. Solder jumper JP4
JP4 has three pads, 12V – Vdrive – 5V (silkscreen 12V left, 5V right). The middle pad feeds the motor drivers.
- Default: the 12V side is bridged by a copper trace (motors from 12 V).
- For 5 V motors only: cut the trace between the
12Vpad and the middle pad first, check with a meter that it is open, then bridge the middle pad to5Vwith solder. - Never bridge all three pads. That ties +12 V directly to the 5 V rail, and the 12 V supply then feeds 12 V into the hub, the 3.3 V LDO (and with it the MCU and the sensors) and the camera on J7. With one middle pad this needs a blob across all three pads, which is easy to see; rev 2.0 boards still have the two separate jumpers JP4/JP5.
5. Mounting
Use either the M2 or the M3 set, not both. Keep metal standoffs and screws away from the XT30 legs and J5. Mind the parts under the board (only J6). In the Triton enclosure the board is mounted upside down, so the buttons are not reachable: flash and test the firmware before you close the enclosure.
First power-up
- USB only first (no 12 V): D4 (5 V) and D1 (status) light up, and Windows shows a COM port
AstroUniBoard Focuser Rotator(VID 1209, PID 0001). A board without firmware enumerates asSTM32 BOOTLOADER(0483:DF11) instead: flash it, see Firmware. - Identify it: send
:32#→ASTROUNIBOARD,REV2,FW2.0.0,2,<serial>,F#. Every command other than:25#/:32#answersERR,16until the host has sent:32#. - Then 12 V on the XT30 (current-limited bench supply, 0.5 A): D3 lights up.
- Set the motor current before the first move:
:48,F,<run mA>,<hold mA>,<usteps>,<mode>,<idle_off s>#, the same forR, then:23#to save. Start at about 60 % of the motor's rating. - Small test moves: focuser
:52,100#, rotator:72,500#(5°). Before you attach the camera cable, set the cable-wrap limits and sync the rotator angle (:76,0#).
Always plug in 12 V with the XT30 before or after a move, never during one, and don't unplug the motors while the board is powered (TMC2209 outputs can be damaged by an open coil under current).
Firmware
fw/ — V2 (current) | fw-onstepx/ — V1 | |
|---|---|---|
| For | HW rev 2.x | HW rev 1 (also runs on rev 2) |
| Protocol | docs/PROTOCOL.md (OpenWheel family) | OnStepX LX200 |
| Flash used | 85 KB (65 %) | 122 KB (93 %) |
| Clients | AstroUniBoard ASCOM driver, debug app | OnStep ASCOM / INDI drivers |
Build: pio run -d fw (PlatformIO, env rev2). Update: in the debug app (Firmware tab) or with :31# (reboot into
the ROM DFU bootloader), then
dfu-util -d 0483:df11 -a 0 -s 0x08000000:leave -D fw/.pio/build/rev2/firmware.binOn Windows the DFU bootloader needs the WinUSB driver once (Zadig). Recovery when the firmware does not start:
hold LEFT (BOOT), press RST, release LEFT. The board comes up as STM32 BOOTLOADER. This works on a
programmed board too (checked on the prototype), so no option-byte change is needed. The board has no SWD pads: this
button sequence is the recovery path, and in the Triton enclosure the board has to come out to reach it. Details, V1 and the
firmware_manager MCP tool: docs/FIRMWARE.md.
Host software
-
ASCOM (Windows, Platform 7): one LocalServer with Focuser, Rotator and ObservingConditions, so N.I.N.A. and the debug app can be connected at the same time. Installer: releases (
driver-v0.2.1, pre-release). Sources and structure: driver/ASCOM/README.md, spec in driver/ASCOM/SPEC.md. -
Control & debug app: live status, jog, motor setup, IMU calibration, environment, raw console, log and firmware update. README.
-
Simulator: a Python fake board on a virtual serial port for host tests (driver/sim/).
-
N.I.N.A. plugin for guide-camera autofocus and filter-offset compensation: SecondaryFocuser-NINA (separate repo).
-
INDI driver: planned (M8 in the plan).
Repository layout
fw/ firmware V2 (PlatformIO, Arduino core) — module map in fw/MODULES.md
fw-onstepx/ firmware V1, OnStepX port
hw/ KiCad 10 project (schematic, PCB, project symbols and footprints, 3D models); production files are release assets
driver/ASCOM/ ASCOM LocalServer, Core library, debug app, tests, installer, ConformU reports
driver/sim/ Python board simulator
docs/ HARDWARE, PROTOCOL, FIRMWARE, USB_IDS, USE_CASES, V2_PLAN, ADRs, imagesPlanning and status: docs/V2_PLAN.md, issues on GitHub.
Licence and credits
- Firmware and software (
fw/,fw-onstepx/,driver/): GPL-3.0, see LICENSE. - Hardware (
hw/): CERN-OHL-S-2.0, see LICENSE-HARDWARE. fw-onstepx/is derived from OnStepX by Howard Dutton and contributors.- Sibling project, same protocol family: OpenWheel filter wheel.
Parts
146| Qty | Value | Footprint | References |
|---|---|---|---|
| 16 | 10uF/10V | Capacitor_SMD:C_0402_1005Metric | C24, C28, C31, C32, C45, C46, C47, C53, C59, C60, C61, C62, C63, C64, C65, C66 |
| 14 | 100nF | Capacitor_SMD:C_0402_1005Metric | C6, C8, C9, C12, C15, C17, C34, C35, C52, C54, C55, C58, C69, C70 |
| 13 | 22uF/25V | Capacitor_SMD:C_0805_2012Metric | C2, C3, C13, C16, C36, C37, C38, C39, C40, C41, C42, C43, C44 |
| 10 | 100nF/50V | Capacitor_SMD:C_0402_1005Metric | C19, C20, C21, C22, C23, C25, C26, C27, C30, C56 |
| 9 | 10k | Resistor_SMD:R_0402_1005Metric | R3, R4, R5, R9, R13, R15, R22, R24, R34 |
| 6 | 5k1 | Resistor_SMD:R_0402_1005Metric | R6, R7, R8, R14, R16, R17 |
| 5 | 10uF | Capacitor_SMD:C_0402_1005Metric | C14, C48, C49, C50, C51 |
| 4 | 0.11R/0805 | Resistor_SMD:R_0805_2012Metric | R10, R11, R19, R20 |
| 4 | 1uF | Capacitor_SMD:C_0402_1005Metric | C1, C10, C11, C33 |
| 4 | 22R | Resistor_SMD:R_0402_1005Metric | R28, R29, R30, R31 |
| 4 | B4B-PH-K | Connector_JST:JST_PH_B4B-PH-K_1x04_P2.00mm_Vertical | J3, J8, J9, J10 |
| 4 | LED red 0402 | LED_SMD:LED_0402_1005Metric | D1, D2, D3, D4 |
| 4 | MountingHole_Pad | MountingHole:MountingHole_3.2mm_M3_DIN965_Pad | H5, H6, H7, H8 |
| 4 | MountingHole_Pad | MountingHole:MountingHole_2.2mm_M2_DIN965_Pad | H1, H2, H3, H4 |
| 3 | CH213K | Package_TO_SOT_SMD:SOT-23 | U11, U13, U14 |
| 3 | TS-1088-AR02016 | Button_Switch_SMD:SW_Push_SPST_NO_Alps_SKRK | LEFT/BOOT1, RIGHT1, RST1 |
| 2 | 100k | Resistor_SMD:R_0402_1005Metric | R21, R33 |
| 2 | 10pF | Capacitor_SMD:C_0402_1005Metric | C4, C5 |
| 2 | 22nF/50V | Capacitor_SMD:C_0402_1005Metric | C7, C18 |
| 2 | 56k | Resistor_SMD:R_0402_1005Metric | R25, R26 |
| 2 | MC-311D | Connector_USB:USB_C_Receptacle_G-Switch_GT-USB-7010ASV | J2, J7 |
| 2 | TMC2209-LA-T | Package_DFN_QFN:QFN-28-1EP_5x5mm_P0.5mm_EP3.75x3.75mm_ThermalVias | U2, U3 |
| 2 | USBLC6-2SC6 | Package_TO_SOT_SMD:SOT-23-6 | U7, U9 |
| 1 | 10uF/25V | Capacitor_SMD:C_0805_2012Metric | C29 |
| 1 | 10uH | AstroUniBoard:L_5.5x5.1mm | L4 |
| 1 | 12V|Vdrive|5V | Jumper:SolderJumper-3_P1.3mm_Bridged12_RoundedPad1.0x1.5mm | JP4 |
| 1 | 1k | Resistor_SMD:R_0402_1005Metric | R12 |
| 1 | 1k78 1% | Resistor_SMD:R_0402_1005Metric | R23 |
| 1 | 2.2nF/50V | Capacitor_SMD:C_0402_1005Metric | C57 |
| 1 | 24AA64T-I/OT | Package_TO_SOT_SMD:SOT-23-5 | U4 |
| 1 | 2A/16V | Fuse:Fuse_1206_3216Metric | F1 |
| 1 | 33k | Resistor_SMD:R_0402_1005Metric | R27 |
| 1 | 47R | Resistor_SMD:R_0402_1005Metric | R32 |
| 1 | 510R | Resistor_SMD:R_0402_1005Metric | R18 |
| 1 | B3B-PH-K | Connector_JST:JST_PH_B3B-PH-K_1x03_P2.00mm_Vertical | J4 |
| 1 | CH334P | Package_DFN_QFN:LQFN-16-1EP_3x3mm_P0.5mm_EP1.7x1.7mm | U6 |
| 1 | Logo_WorksOnMySky_14mm | AstroUniBoard:Logo_WorksOnMySky_14mm | LOGO1 |
| 1 | ME3116AM6G | Package_TO_SOT_SMD:SOT-23-6 | U12 |
| 1 | ME6231A33M3G | Package_TO_SOT_SMD:SOT-23 | U1 |
| 1 | MPU-6000 | Sensor_Motion:InvenSense_QFN-24_4x4mm_P0.5mm | U10 |
| 1 | S4B-PH-K | Connector_JST:JST_PH_S4B-PH-K_1x04_P2.00mm_Horizontal | J5 |
| 1 | SHT31-DIS-B | Sensor_Humidity:Sensirion_DFN-8-1EP_2.5x2.5mm_P0.5mm_EP1.1x1.7mm | U8 |
| 1 | SMF15A | Diode_SMD:D_SOD-123F | D24 |
| 1 | SS34 | Diode_SMD:D_SMA | D23 |
| 1 | STM32G0B1CBTx | Package_QFP:LQFP-48_7x7mm_P0.5mm | U5 |
| 1 | TAXM12M4RDBCCT2T / 12MHz | Crystal:Crystal_SMD_3225-4Pin_3.2x2.5mm | Y2 |
| 1 | TAXM8M4RDBCCT2T / 8MHz | Crystal:Crystal_SMD_3225-4Pin_3.2x2.5mm | Y1 |
| 1 | XT30PW-M | AstroUniBoard:AMASS_XT30PW-M_1x02_P2.50mm_Horizontal | J6 |
Similar boards
- 2 layers26.9 × 35.2 mm

- 4 layers42 × 42 mm

Motor42
zhbi98/Motor42
【小型 42mm 伺服电机】支持 RS485 和 CAN 协议的闭环功能的步进电机,支持功率和通信级联(节点串联连接),适用于 3D 打印机,舵机,小型机械臂
89 parts8MIT - 4 layers35 × 35 mm

Motor35
zhbi98/Motor35
【小型 35mm 伺服电机】支持 CAN 协议的闭环功能的步进电机,支持功率和通信级联(节点串联连接),适用于 3D 打印机,舵机,小型机械臂
71 parts2MIT - 4 layers90 × 90 mm

Pump Controller
citrineio/Pump-Controller-V2
Second Version of the pump controller PCB
68 partsApache-2.0 - 4 layers90 × 100 mm

8ch v3
saewoonam/8ch_currentsource_jlc_v3
V3 of 8 channel current source for biasing superconducting circuits
237 parts - 4 layers130 × 110 mm

- 2 layers61 × 61 mm

- 2 layers60 × 30 mm

Esp8266-mitsubishi cn105-pcb
carmisergio/esp8266-mitsubishi-cn105-pcb
A simple PCB that allows control of Mitsubishi AC units via CN105
30 parts
Questions
How big is the AstroUniBoard PCB?
It measures 35 × 42 mm and has 2 copper layers, 1.6 mm thick.
What parts does the AstroUniBoard use?
146 parts, built around the TMC2209-LA-T, ME3116AM6G, CH213K and USBLC6-2SC6. 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 AstroUniBoard KiCad files?
From the xlazam01/AstroUniBoard repository on GitHub, at the commit this page was made from: the board is hw/astrouniboard.kicad_pcb and its schematic hw/astrouniboard.kicad_sch. PCBKit opens the board in the browser, with nothing to install.
Can I use the AstroUniBoard design in my own project?
Its repository publishes it under the GPL-3.0 licence: you may reuse it on that licence's terms (keep the author's notice, and for a copyleft licence share your changes alike).