Builds · updated 19 November 2026

A motor focuser for the 150P

A NEMA 17 on a TMC2209 driver and an Arduino Nano turns the focuser from the laptop, strong enough to lift a cooled camera, filter wheel and corrector. The parts, the bracket, the wiring, the firmware, and the five weeks of getting it wrong first.

Working on the telescope since 18 November 2026

The telescope is a Sky-Watcher 150P on an EQ3 Pro, run from a laptop beside it. Everything could be done from indoors except focus, which meant going out to the knob in the cold, and on this kind of focuser the camera moves when you touch it. So the focuser has a motor, the laptop turns it, and the software measures the stars as it goes.

On 18 November it focused the telescope by itself for the first time with the full camera train on: from stars so far out they were rings 470 pixels across, to a half-flux radius of 1.67 pixels, through haze, with nobody touching the knob. My best with this camera is about 1.5, by hand on 15 November.

This is the second motor. The first, a 28BYJ-48, could push a light camera in but never reliably lift a heavy one out, and most of what’s below was learned from that.

What you need

Part What I used Notes
Motor 17HS4401 NEMA 17 40 mm long, 0.4 N·m, 1.7 A, 4-wire lead with a 4-pin plug
Driver BigTreeTech TMC2209 V1.3 Any TMC2209 StepStick should do. My two unbranded ones never turned it both ways, but neither did the BTT one until CN5 had its 5 V (see the wiring); the unbranded ones were never tried again after that
Carrier board A black A4988/DRV8825-style screw-terminal carrier Green VIN/GND terminal, three microstep switches, an EN/STEP/DIR header. It makes no 5 V of its own: see the wiring
Controller Arduino Nano clone (CH340 USB chip) on a screw-terminal board Kept from the first focuser
Power 12 V 2 A plug-in supply with a 5.5 × 2.5 mm socket lead
Coupler D20L25 elastic coupler, 4 × 5 mm 4 mm for the focuser’s shaft, 5 mm for the motor’s. Measure yours: two of mine came with bores far too big
Bracket Auto Focus Motor Mount on Crayford focuser by Tnever, printed Drawn for a Celestron Omni 150; it fits the 150/750. See the bracket, below
Fixings M3 screws and nuts, jumper leads
Meter A cheap multimeter Don’t wire a stepper driver without one. I did, and lost a week

The motor, the first two drivers, the carrier, the supply and the couplers came to about £32 from AliExpress, ordered on 22 October. The BTT drivers, the meter and the print were on top of that.

Optional: a 10 kΩ NTC thermistor (B3950, 1%) and a 10 kΩ resistor, to read the camera’s temperature on the same Nano.

The bracket

The bracket is Tnever’s, from Printables, unchanged except for one thing: its foot plate. The first print cracked at its 2 mm foot before it was ever fitted, so I had it printed again thickened to 4 mm underneath, with the face and the motor’s height left as they were.

Don’t make it thicker than that. When I fitted it I found out why it’s so thin: the four screws from the focuser that hold it are tiny, and a thicker plate leaves them too short to bite. Turning the motor round on the print to bring its leads to a better side also stripped the head off an M3 screw in a place too tight to grip, so decide which way the leads go before you tighten anything.

The motor turns the focuser’s knob one to one through the coupler. Half a turn of the knob is about half the drawtube’s whole travel, so small moves matter.

Setting up the focuser first

Under the 150P’s focuser plate there are no gears. It’s a Crayford: a smooth drawtube driven by friction from a smooth roller, and the tension has to be right. Gary, whose cooled camera rides on the drawtube now, set it on 17 November with the camera pointing straight up, so its whole weight was on the drawtube, bringing the tension screws up until the weight no longer ran the tube down on its own. Too slack and the camera slides; too tight and the motor fights it.

Wiring

How the motor focuser is wired The 12 V supply's plus goes to VIN and its minus to GND on the carrier's green terminal. The Nano's GND goes under the same GND screw. Nano D8, D9 and D10 go to the carrier's EN, STEP and DIR, and the Nano's 5V to the carrier's CN5 row, because the carrier makes no 5 V of its own. The carrier's four motor pins, 2B, 2A, 1A and 1B, go to the NEMA 17. Optionally, a 10 kOhm thermistor goes from the Nano's A0 to GND and a 10 kOhm resistor from A0 to A5. 12 V 2 A supply + − VIN GND Carrier board BTT TMC2209 V1.3 switches off EN STEP DIR CN5 (V) 2B 2A 1A 1B Arduino Nano USB to the laptop GND D8 D9 D10 5V A0 A5 NEMA 17 17HS4401 turns the knob Nano GND: the same screw as the 12 V − 10 kΩ NTC 10 kΩ, on the camera GND (optional) The carrier makes no 5 V of its own: the Nano's 5V must go to CN5
Nano Carrier
D8 EN
D9 STEP
D10 DIR
GND GND on the green terminal, under the same screw as the 12 V −
5V Any pin of the CN5 row, marked V
12 V supply Carrier
+ VIN on the green terminal
− GND on the green terminal

The motor’s plug goes straight onto the carrier’s four motor pins (2B, 2A, 1A, 1B). The Nano goes to the laptop on a USB lead. Tie the lead to the tube: with the weight of the box hanging on it, the plug worked loose and the Nano came and went every second or two.

The carrier doesn’t make its own 5 V. This cost me a week. The driver’s logic needs 5 V, and on this board the CN5 row is joined to the driver’s logic supply and nothing else. With nothing on it, the driver ran on what leaked in from the Nano’s signal wires: enough when DIR was high, too little when it was low. So the motor turned one way and hummed the other, on every driver I tried, and I blamed the drivers. A meter and the board’s pin map found it in an afternoon. Put the Nano’s 5V on CN5.

Seat the driver by its pins, not by how the board looks. The driver’s EN pin sits opposite VM, and DIR opposite GND. My first driver went in backwards on a guess about which end was which, and ran that way under 12 V. Before powering up for the first time, with the 12 V out and the driver out, find which socket hole is joined to the VIN screw with the meter on continuity, and put the driver’s printed VM pin in that hole.

Microstep switches all off, and measure what that gives you. A TMC2209 with both its microstep pins low runs at 1/8, which is what I assumed. On my carrier, with the switches off, one pin isn’t held low, so the driver runs at 1/64, 12,800 microsteps a turn: I found that on a dial, after every move had turned an eighth as far as it should. Another carrier may give you 1/8, so turn a marked shaft and check yours before trusting any distance.

Motor current. BTT’s driver gives about Vref × 0.71 amps RMS with its 0.11 Ω sense resistors. Its factory setting of about 1.2 V is about 0.85 A; leave it near that unless it reads outside 1.0 to 1.3 V. Turning the pot clockwise lowers it. That formula only holds for BTT’s resistors.

Rules I keep: every probe and lead goes on or comes off with the 12 V out, and never plug or unplug the driver or the motor with the 12 V in.

The thermistor (optional)

The camera has no thermometer, and the Nano sits a few inches from it with pins to spare. A 10 kΩ NTC thermistor goes from A0 to GND, flat on the camera body under aluminium tape, and a 10 kΩ resistor from A0 to A5, which the firmware holds high as the divider’s 5 V.

The firmware

The Nano runs focuser.ino, part of telescopeyoke and MIT licensed. It takes one-line orders over USB at 9600 baud, each starting with a colon, so stray bytes meant for something else move nothing:

Order Answer What it does
:? TY focuser 1 Says what it is
:M+1024, :M-1024 OK 1024 Turns that many half-steps out or in; 4096 is one turn of the knob
:S40 OK S40 40 ms a half-step from now on (2 to 200)
:H1, :H0 OK H1 Keeps the driver on between moves, holding the shaft, or off (the default)
:T T 512 The thermistor’s reading, 0 to 1023
:V V 1104 Millivolts on A2, for setting the driver’s current without a meter

:V needs a temporary jumper from A2 to the metal top of the driver’s current pot, only while you set the current; take it off afterwards.

Moves are still counted in the old 28BYJ-48’s half-steps, 4096 to a turn, so every distance telescopeyoke had already learned kept its meaning; the firmware turns them into microsteps, 200 for every 64, and keeps the remainder so moves out and back come to the same place. The driver is off whenever the motor is still: a warm motor beside the tube spoils the seeing.

telescopeyoke’s focuser.py loads the firmware with arduino-cli (./focuser.py flash) and turns the motor (test, move); focus.py does the focusing.

How it focuses

The way that works is the simplest one. From a little outside focus, the walk-in takes small steps in, measuring the stars after each, 64 half-steps at a time, then 32, then 8 near the best, down to the sharpest. Then it goes out past the best and back, to take up any slack, and finishes on the best. That’s what reached 1.67 on 18 November: HFR 10.89, 8.72, 5.69, 4.17, 3.16, 2.03, then the small steps from 1.98 down to 1.71, and 1.67 after the move back.

When the stars are only rings, a search steps a thirty-second of a turn at a time, following the rings’ size, and stops where they’re smallest.

There’s also a full sweep that fits a curve, the way N.I.N.A. and Ekos do it, but it stays switched off until the slack and the step are measured on a clear night with plenty of stars. On 23 October, before any of those guards existed, a sweep run on guessed sizes walked the drawtube about an inch from focus, the vanishing stars were put down to cloud, and the night was lost. Now no move goes further than a set travel from where a run started. That matters more with the NEMA 17: the old motor stalled and ticked harmlessly at the end of the drawtube’s travel, but this one is strong enough to force it, and I haven’t run it to either end yet.

Commissioning it, in order

  1. With the 12 V out, the Nano unplugged and the driver out, check the board with the meter: the VIN hole to the VIN screw, both GND holes and the Nano’s GND to the GND screw.
  2. Driver still out, Nano in, 12 V in: CN5 against GND should read about 5 V. Then 12 V out.
  3. Check the driver’s printed labels against the pin table, and its sense resistors (R110 is 0.11 Ω).
  4. Seat it by the pins, VM in the VIN hole, 12 V out.
  5. Read the pot with the driver off (the Nano holds EN high until a move), and leave it near 1.2 V unless it’s outside 1.0 to 1.3.
  6. On the bench, unloaded: mark the shaft and turn it one way and back. Both directions must turn, and warm is fine but too hot to touch isn’t.
  7. If one direction fails, stop, and measure DIR, the logic supply and VM during each move rather than trying another driver.
  8. Only then fit it to the focuser, and check it lifts the camera outward and lets it down.

How it got here

The first focuser, on 12 October, was a 28BYJ-48 on a ULN2003 board and a printed bracket from Thingiverse, for about £30 (the diary entry). It focused by motor on 13 October and reached 2.14 by 17 October. On 18 and 19 October I built a bench rig to see what it really did: a printed protractor round the shaft, a cocktail stick blacked with a marker across it, and a phone looking straight down, with the software reading the stick’s angle from the pictures. It measured 0.088° a half-step, about 30 half-steps of slack each way, and came back to the same place within a tenth of a degree.

Then the camera went on and it wouldn’t lift the drawtube outward. Run free it was weaker one way than the other, so this one was faulty as well as marginal. Two coils on at once gave about a quarter more torque, not enough. A powered USB hub helped for a while, and a metal coupler replaced the printed one, but on 4 November Gary’s cooled mono camera, filter wheel and corrector went on the drawtube, and the 28BYJ-48 couldn’t move them at all: 320 half-steps out did nothing. Focus went back to my hand.

The NEMA 17 parts came on 2 November. The bracket’s first print cracked; the thickened one held. On the bench the motor turned one way and hummed the other on every driver from 9 to 16 November, until the missing 5 V was found the same day the BTT drivers and the meter arrived. It went on the telescope on 16 and 17 November and focused it the next night.

What I learned

Still to do

Sources