Case study
Ptolemy
Point your phone at the sky and know what you're looking at.

Ptolemy is an Android stargazing app. Hold your phone up and it names the stars, planets, constellations, galaxies, and nebulae in front of you, tells their stories, and helps you decide when to go out. Everything is computed on the phone, so it works anywhere on Earth without a connection.
The challenge
A sky map has to line up with the real sky, in real time, wherever the user is standing. That means fusing noisy phone sensors into a steady view, correcting the compass for local magnetic variation, computing planet and Moon positions on the device, and drawing hundreds of thousands of stars smoothly, often in a dark field with no signal, while protecting the user's night vision.
What we built
Steady, accurate pointing
A sensor-fusion filter combines the gyroscope, accelerometer, and compass, with automatic magnetic declination correction from NOAA's World Magnetic Model, so the sky lines up with true north anywhere on Earth.
Fast drawing on the GPU
A Skia renderer draws about 9,000 naked-eye stars and 346,000 fainter ones as you zoom, all 88 constellations with their artwork, the Messier catalogue, and about 1,300 more galaxies, clusters, and nebulae, with the Sun, Moon, and planets computed on the phone.
Made for the dark
A deep-red night-vision mode protects dark adaptation, and guided tours tell you where to look in plain terms, buzz when you're on target, and read the story aloud so your eyes stay on the sky.
Planning the night
Tonight's outlook scores each hour on darkness, moonlight, and an optional cloud forecast, flags aurora, lists space station passes, and rates a year of eclipses, meteor showers, and conjunctions for visibility from where you are.
Tested without a phone
Astronomy, coordinate transforms, and sensor fusion are unit-tested, and the real renderer can draw sample frames headlessly, so visual changes are checked before they reach a device.
Results
- Published on Google Play
- Works fully offline; internet is optional and only used for cloud forecasts and satellite orbits
- Available in English, Spanish, French, German, and Portuguese, including stories and the guided-tour voice
- No account and no ads; telescope GoTo control for ASCOM Alpaca and LX200 mounts for serious observers
Technology
Services behind this project
Next case study
rolehike.com
A whole job search in one place, with AI that doesn't make things up.