· 9 min read

Bresser EQ-3 to GoTo, part 2: from spinning motors to a GoTo mount

Two spinning motors don't make a GoTo mount. The Arduino firmware that lets KStars/Ekos point, track and guide my EQ-3, and its first images.

On this page
  1. What a GoTo mount has to do
  2. How the pieces fit together
  3. Pretending to be a Meade telescope
  4. The idea that makes it work
  5. Tracking
  6. Calibrating by going outside
  7. The gears: grease, mesh and periodic error
  8. Moving by hand and guiding
  9. A night with it
  10. First light
  11. What it doesn’t do (yet)

At the end of part 1 I had a Bresser EQ-3 with a motor and a belt on each axis, and two motors that turned when I told them to. That’s not a GoTo mount yet. The mount still had no idea where it was pointing, and nothing told it where to go.

This part is the brain: a small program (firmware) running on the Arduino. With it, I click a target in a planetarium program and the telescope points there, follows the sky, and can be guided. Here is what it took, without the code details. If you want those, the full source is on GitHub: eq3-goto-firmware (MIT license).

Why not use OnStep, the open-source GoTo firmware whose kits inspired the mechanics in part 1? It supports the CNC Shield V3, but only on an ESP32 board (the WeMos D1 R32), not on my Arduino UNO R4 WiFi. So instead of changing boards, I wrote my own.

Update (October 2026): OnStep now runs on my board. I added support for the Arduino UNO R4 WiFi to OnStep, and the project accepted the change (pull request #132). I’ve used it on this mount under the sky, and GoTo, syncing and tracking all work with Ekos.

If you’re building something similar, I’d now start with OnStep rather than my own firmware. It’s been developed for years and is used on many home-built mounts. It already does much of what’s on my “doesn’t do yet” list at the end of this post, like safety limits, a park position and meridian flips. It also works with most astronomy software, and has an active community to ask when you get stuck. My firmware is still useful as a small, readable example of how a GoTo mount works.

Which board? If you already have an UNO R4 WiFi and a CNC Shield V3, like me, OnStep now works on them. The CNC Shield also fits the WeMos D1 R32, a cheap ESP32 board with the same shape as an Arduino UNO, which OnStep has supported for a long time. If you’re buying from scratch, the simplest ready-made option is the FYSETC E4, an ESP32 board with four motor drivers already on it.

I wrote the firmware together with Claude Code, an AI coding assistant, and then tested and tuned it in the field, under the real sky.

The motorised Bresser EQ-3 with a Newtonian telescope on a terrace at night, cables running to a laptop on a table

Ready for a night of imaging.

What a GoTo mount has to do

  1. Know where it’s pointing, in the sky’s coordinates, not in motor steps.
  2. Track: turn at exactly the rate the sky turns, so a star stays still in the camera.
  3. Talk to software, so I can pick a target on a screen and have the mount go there.

How the pieces fit together

The laptop does the hard astronomy: star catalogues, working out where the camera is looking from a photo (plate solving), and guiding. The Arduino only answers simple questions (“where are you pointing?”) and carries out simple orders (“go there”, “move north slowly”).

Pretending to be a Meade telescope

Instead of inventing my own protocol and writing a driver for it, I made the Arduino behave like a Meade LX200, a decades-old telescope that practically every astronomy program still knows how to talk to. In Ekos I pick the “LX200 GPS” driver, choose the Arduino’s USB port, and it connects as if a real Meade were on the other end.

That one decision gave me GoTo, syncing, manual moves and guiding without writing anything specific for any of them.

The idea that makes it work

A star’s position in the sky (its right ascension) doesn’t change, but the sky keeps turning, so the mount has to keep moving to stay on it. If the firmware stored the position as a fixed sky coordinate, it would be out of date one second later.

So the firmware stores something else: how far the mount has turned from the meridian, the north–south line overhead. The sky coordinate the mount reports is just the current sidereal time (the sky’s clock) minus that angle.

The nice consequence: when the mount tracks at the right speed, both numbers grow at the same rate, so the reported position of a tracked star stays constant. Nothing extra is needed to hold a star still in the software.

The sidereal clock itself needs no extra hardware. When Ekos connects, it tells the Arduino the date, time and my location, and the Arduino keeps time from there.

One trap worth knowing: the LX200 protocol counts longitude westwards, the opposite of the usual convention. Get the sign wrong and every GoTo lands far from its target.

Tracking

The sky turns once every sidereal day, about 23 hours 56 minutes, not 24. So the RA motor runs very slightly faster than a 24-hour clock would suggest. The motors are driven in small steps, each moving the mount by a fraction of an arcsecond, which is plenty smooth for my images.

Calibrating by going outside

Everything depends on one number per axis: how many motor steps turn the mount by one degree. I didn’t take these from a datasheet. I calibrated them in the field:

  1. Start from an estimate.
  2. Sync on a known star, then GoTo another target.
  3. See how far off the mount lands, and in which direction.
  4. Correct the number and repeat until the GoTos land where they should.

It’s slow but very reliable, and the RA number I ended up with matches the gearing I worked out on paper.

The gears: grease, mesh and periodic error

Good motors can’t make up for the mount’s own gears, and mine needed attention.

  • Grease. I opened both axes, cleaned out the old grease, and regreased the worms and wheels with Super Lube synthetic grease with Syncolon (PTFE). For the cleaning I followed this video, made for a much bigger mount but the same idea: AP1200GTO Regrease Project.
  • Mesh. Both worms sat too loosely against their wheels, which gave severe backlash: every time an axis changed direction, it rocked before it started to move. The screws on each worm housing set how firmly the worm presses into the wheel. I adjusted them until the play was gone but the axis still turned without binding.
  • Periodic error. No worm is perfectly round and centred, so the axis runs slightly fast, then slightly slow, once per turn of the worm. Before the regreasing the error was so large that the stars streaked out of the frame, so I couldn’t measure it. Afterwards I measured it with PHD2’s Guiding Assistant: I switched guiding off for 12 minutes and let it record where a star drifted. Even after the new grease and the mesh adjustment, the RA axis swung back and forth by about 170″, nearly 3 arcminutes, peak to peak:
−120 −60 0 +60 +120 0 2 4 6 8 10 12 minutes since guiding was switched off RA error (″) ≈ 171″ peak to peak (about 3′) RA, measured smooth fit Dec
Periodic error on the RA axis after the regrease, measured with PHD2's Guiding Assistant: 12 minutes unguided, one dot per 4-second frame, with the steady drift removed.

The swing repeated roughly every 8 minutes, not the 10 I expected for one turn of a 140-tooth worm wheel (a sidereal day ÷ 140 ≈ 615 s). But 12 minutes is only about one and a half turns, too short to pin the period down, so a run of half an hour or more is next. The 140 teeth are confirmed another way: the firmware tracks at the rate they imply, and in the same run the steady drift was only about 10″ per minute, about 1% of the sky’s own motion. With the wrong tooth count the star would have run off far faster.

That is the real limit of this mount, and why my frames are 15 seconds or shorter. The way past it is autoguiding, which corrects the drift as it happens, or periodic error correction in the firmware, which OnStep supports.

Moving by hand and guiding

The same LX200 commands also cover moving the mount by hand (north, south, east, west) at four speeds, from a slow crawl to a fast slew. Autoguiding is the slowest speed in use: the guiding software watches a star, and when it drifts it sends short nudges to bring it back. Since these are ordinary LX200 commands, the firmware needed nothing special for it.

A night with it

After power-on the mount doesn’t know where it’s pointing, so my routine is:

  1. Power on and connect from Ekos, which also sends the time and location.
  2. Take an image and let Ekos plate-solve it. It works out where the telescope is really pointing and syncs the mount.
  3. GoTo the target. Plate solving can run again to centre it.
  4. Start capturing.

First light

These were taken with my Bresser Newtonian and a ZWO ASI662MC, a small planetary camera. The mount was tracking only, with no guiding for these shots, which is why each frame is short: 15 seconds or less, before small tracking errors start to stretch the stars. Many short frames were then stacked in Siril.

The Dumbbell Nebula, M27: a green, apple-core-shaped cloud with reddish edges in a dense star field

M27, the Dumbbell Nebula.

The Bubble Nebula, NGC 7635: a faint reddish arc around a bright star, in a dense star field

NGC 7635, the Bubble Nebula: the faint shell blown around the bright star near the centre.

Saturn with its rings, small against a black background

Saturn, rings and all.

What it doesn’t do (yet)

This is a working first version, not a finished product:

  • No safety limits. There are no end stops or park position, so a wrong GoTo can wind the cables or hit the tripod. Keep an eye on it, and keep a hand near the power switch.
  • No meridian flip. GoTos across the meridian aren’t handled.
  • No memory of position. Every session starts with a sync.
  • Slow GoTos. A long slew takes a few minutes. Fine for imaging, a little boring to watch.
  • The motor drivers run in basic mode. They can be configured over a serial link, but I only use their step and direction pins so far.
  • No Wi-Fi yet, even though the Arduino has it. A cable-free connection would be a nice next step.

Total extra cost for this part: nothing. It’s the same hardware as part 1, and all the software is free. My first telescope mount now does what I used to think needed a new one.

Files

Firmware source code on GitHub (MIT license)AccelStepper libraryKStars and Ekos (free planetarium and observatory software)INDI (drivers for telescopes and cameras)Siril (free image stacking and processing)

← Projects