{"schema_version":1,"id":"jawald-starhinge","name":{"en":"StarHinge","zh":"用 ESP32 和 NEMA17 步进电机制作的天文摄影门架追踪器。"},"summary":{"en":"DYI astrophotography barn-door tracker (ESP32 + NEMA17)","zh":"用 ESP32 和 NEMA17 步进电机制作的天文摄影门架追踪器。"},"purpose":"barn-door star tracker","tier":"community","author":"JaWald","repository":"https://github.com/JaWald/StarHinge","license":"MIT","shape":"robot","scenes":["home","art"],"boards":[{"name":"ESP32"}],"native_board":{"en":"Espressif ESP32-S3-DevKitC-1","zh":"乐鑫 ESP32-S3-DevKitC-1","page":"https://esp32gallery.com/boards/espressif-esp32-s3-devkitc-1/"},"motion":false,"hardware":{"en":"ESP32-class board. Verify the exact board revision, display, power source and wiring in the upstream build guide.","zh":"ESP32 类开发板；请在上游构建文档中核对具体板型、屏幕、供电与接线。"},"notes":{"en":"A barn-door star tracker cut from wood and ball bearings, turning a camera at sidereal rate to cancel Earth's rotation. Two boards meet at a hinge aimed at the celestial pole; an ESP32-S3-DevKitC-1 steps a NEMA17 motor through a TMC2209 at 1/8 microstepping, pushing an M8 threaded rod of 1.25 mm pitch. A constant rod speed builds up tangent error, so the firmware instead solves the exact rod length for the target hinge angle and converts it to steps, timed by the microcontroller's microsecond hardware timer. Power comes from a 2S Li-ion pack through a step-down converter, and the rod turns in 20mm pillow block bearings. Code is C++ on the Arduino framework built with PlatformIO. Wi-Fi control, automatic rewind and printed parts are still planned.","zh":"赤道仪买不起就自己铰一个：两块木板用合页对极轴，NEMA17 步进电机推 M8 丝杆（1.25 mm 螺距），把相机按恒星时转过去，抵消地球自转。难点是匀速推杆会累积切线误差，所以固件反过来算：按目标角度 θ(t) = ω · t 求出此刻丝杆该多长，再折成步数，用微秒级硬件定时器发脉冲。驱动板 TMC2209 走 1/8 细分，丝杆两端 20mm 轴承座，供电是 2S 锂电加降压。代码是 C++、Arduino 框架、PlatformIO 工程，板子 ESP32-S3-DevKitC-1。Wi-Fi 调速度、自动回位和 3D 打印件都还列在计划里。"},"readme_excerpts":[{"label":"Motor","quote":"NEMA17, TMC2209 (1/8 microstepping)"},{"label":"Drive","quote":"M8 threaded rod, 1.25 mm pitch"},{"label":"Power","quote":"2S Li-ion battery pack, step-down converter"},{"label":"Bearings","quote":"20mm pillow block bearings for the threaded rod"},{"label":"Planned","quote":"Wi-Fi access point for speed and direction control via dedicated website"}],"images":{"type":"gallery","primary":"https://esp32gallery.com/previews/jawald-starhinge/poster.jpg","poster":"https://esp32gallery.com/previews/jawald-starhinge/poster.jpg","sources":["https://esp32gallery.com/previews/jawald-starhinge/frames/view-001.jpg"]},"media_credit":{"status":"upstream-project-media","creator":"JaWald","source":"https://github.com/JaWald/StarHinge/tree/4e397d1965e9ff2786eb617be65b65dc8bf782bf","note":{"en":"Screenshots from the upstream README. Code and firmware were not executed. License notices are included.","zh":"来自上游 README 的真实截图；未运行代码或固件，预览包保留许可证声明。"},"reviewed":"2026-10-20"},"preview":{"browser_playable":false,"kind":"media_gallery","label":{"en":"Project screenshots","zh":"项目截图"},"width":960,"height":720,"shape":"square","source_commit":"4e397d1965e9ff2786eb617be65b65dc8bf782bf"},"stars":1,"pushed_at":"2026-10-20T06:01:29Z","added_at":"2026-10-20T14:44:01+08:00","urls":{"html":"https://esp32gallery.com/projects/jawald-starhinge/","html_zh":"https://esp32gallery.com/zh/projects/jawald-starhinge/","json":"https://esp32gallery.com/data/catalog/projects/jawald-starhinge.json","markdown":"https://esp32gallery.com/data/catalog/projects/jawald-starhinge.md"}}
