Skip to the content
2 layers61 × 61 mmJuwei17onstep bck, the printed circuit board in 3D

Juwei17onstep bck

xlazam01/Juwei179

Upgrade of Juwei17 Astronomy Mount

Size
61 × 61 mm
Copper layers
2
Thickness
1.6 mm
Parts
145
Nets
155
Pads
740
Tracks, vias
1,100, 245
Routed
Yes
KiCad
KiCad 8.0 (file 20240108)
Created
10 Aug 2025
Updated
25 Sep 2025

Overview

Juwei17onstep bck is an open-source printed circuit board by xlazam01, from the xlazam01/Juwei17 repository on GitHub, published under the MIT licence. It is a 2-layer board of 61 × 61 mm with 145 parts on 155 nets, routed with 1,100 tracks and 245 vias.

It is built around the BME280, USBLC6-2SC6 and 24AA64T-I/OT, with the DS3231MZ+, 0603ESDA-05N and 100UF/35V among its other parts. Its parts include 48 capacitors, 40 resistors, 15 connectors, 12 ICs and 12 diodes. It belongs with the STM32 boards of this library.

Main components

12

README

README.md

Juwei17 Mount Upgrade

Juwei17 Upgrade

🚀 Project Overview

This repository contains subprojects to upgrade the Juwei17 mount with enhanced hardware, software, and mechanics. The goal is to provide a modern, feature-rich, and user-friendly experience for astronomy enthusiasts.


🧑‍🔧 Skills Needed

  • Project is very DIY oriented
  • PCB is very dense and it is recommended to manufacture it via some service (JLCPCB or similar)
  • Some soldering (hall sensors, BME280, switch, connector crimping)

✨ Upgrade Features

  • Larger on/off switch
  • Homing
  • GPS
  • Weather sensors
  • Fast slewing possible
  • Support for TMC SPI or UART modules
    (TMC2209, TMC2130, TMC5160, etc.)
  • USB-C connector
  • Programming button (no ST-Link needed)
  • Loader application (semi-automatic programming for OnStep and SWS)

🧩 Hardware Features

  • Minimized PCB size
  • Support for Home and Limit switches
  • OnWire interface
  • GPS interface
  • STM32F446 as main processor
  • Power switch not needed:
    • Mount will start without switch connected
    • No high current goes through switch itself
    • When switch is closed, mount is off

💾 Software Features

  • Based on OnStepX (preconfigured, just upload)
  • Added STM32 RTC support
  • Modified Weather:
    • Due to excessive BME self-heating
    • Temperature from DS1820
    • Humidity and pressure from BME280
  • TLS fallback (STM32 → GPS)
  • PlatformIO is used for OnStepX - My preferred IDE
  • Arduino for SWS - due to specific version of ESP toolchain needed

🏗️ Mechanics

  • CAD files
  • STL files for 3D printing new covers

📦 Required Components

  • New hardware - data on this github repo
  • 2x TMC Drivers - you can reuse TMC2209 from your original main board
  • Beitian BK-280 GPS module - link
  • BME280 module - link
  • DS1820 - link
  • 2× 3144 hall sensors for homing functionality link
  • 16mm antivandal switch - 16mm, 12-24V, latching - link
  • Wires, connectors, hot glue, etc.
  • Crimping pliers (Iwiss IWS-2820M)
  • Magnetic rings:
    • Magnets 20×5×2mm link ⚠️ Warning: Large deviation in sizes experienced!
  • Screws M2×6 Voron style self-tapping screws - link
  • 4x M3x16, 4x M3x10 countersunk
  • optional 3144 hall sensor module for test link
    • 5V power
    • It can help you to check polarity and sensitivity for you DIY magnet rings

🛠️ Building Tips

  • Use hot glue to fix hall sensors and wires
  • Mind the hall sensor "polarity" and magnets orientation in rings - good to check with dry run before mounting everything together

📁 Folder Description

  • CAD: SolidEdge models (*.par files)
  • HW: KiCad files (design and schematic PDF)
  • Images: Build images
  • OnstepEspLoader: Python app to support you through flashing process
  • OnStepX: OnStep code (PlatformIO and VSCode)
  • SmartWebServer: ESP8266 code (built in Arduino due to specific Espressif version)
  • STLs: Files for 3D printing

📝 ToDo

  • PEC

🖼️ Photo Gallery

Juwei17 Upgrade
IMG_3873 IMG_3874
IMG_3877 IMG_3878
IMG_4165 IMG_4166
IMG_4168 IMG_4169
IMG_4171 IMG_4172
IMG_4173 IMG_4174

🛠️ Assembly Instructions

  1. Print the required parts.
  2. Prepare magnets for the magnet rings:
    • Ensure all magnets are oriented in the same direction.
    • Take care to prevent magnets from snapping together unexpectedly.
    • Test magnet polarity using a 3144 module or a bare sensor.
  3. Insert magnets into the rings.
    • Fill roughly 90-180degrees
  4. Secure magnets with a thin layer of epoxy.
    • 5min epoxy is ideal
  5. Assemble the front cover using small screws.
    • Put together PCB_holder and front_panel
  6. Install hall sensors and wiring into the new cover.
    • Insert hall sensor with right orientation (double check)
    • Fix them in place with hotglue
  7. Mount the new 16mm switch and do wiring.
    • We use NO contact for mount ON, NC contact for mount OFF
    • Switch backlight is connected to mainboard
  8. Prepare and install wiring for the GPS and BME280 modules.
    • Solder longer wires and cut them later to perfect length for BME280
    • For GPS just cut the wire to perfect length
    • Install modules in cavities
    • Fix GPS with GPS_holder and small screws
  9. Install the DS1820 sensor in the second cover.
    • Pressfit the sensor in place
    • Cut wires to size
  10. Secure all wires with hot glue.
    • Aim is to not have wires getting pinched during cover installation
  11. Trim wires to length and crimp connectors.
  12. Plug in jumper for UART/SPI TMC
  13. Insert TMC modules
  14. PCB installation
    • Reuse brass standoff - insert them into holes in front cover
    • Attach the PCB to these standoffs
  15. Connect all components together.
    • Install back cover
    • Plug in all connectors
    • Install front cover
    • Screw in four screws for the PCB from the bottom of the mount
  16. Assembly complete!
IMG_4173 IMG_4174

Juwei17 Upgrade

💻 Firmware Upload

  1. Power off the device.
  2. Press and hold the button next to the power connector.
  3. Power on the device.
  4. Observe the LEDs:
    • OnStep status LED will be off.
    • WiFi LED will blink if firmware is present; if the ESP is empty, both LEDs will be off.
  5. Start the OnstepEspLoader Python app.
  6. Select the correct TMC module type.
  7. Choose homing
  8. Click "Check STM32":
    • The bootloader should respond.
    • If it fails, click again.
  9. Click "Upload STM32":
    • Firmware upload will start.
  10. Wait for the OnStep status LED:
    • It should turn on after some time.
    • The first boot may take longer as EEPROM is being formatted.
  11. Click "Check OnStep":
    • It should respond with name and version.
  12. Switch to SWS mode:
    • OnStep enters transparent mode and is ready to upload ESP firmware.
  13. Click "Upload ESP":
    • Firmware for the webserver will be uploaded to the ESP.
  14. Finish:
    • A soft reset will occur after some time, or you can power cycle the device manually.

⚙️ Default Firmware Configuration

Default firmware configuration expects:

  • BME280, DS1820 - if initialization fails, there will be no weather information on webserver
  • TMC2209, TMC5160 or TMC2130 - according to selected firmware during programming
  • Correct polarity of HAL sensors for homing - if not fulfilled, homing will not work correctly
  • Motor current is set to 1.0A for RUN and 1.3A for GOTO
  • Homing sense is HIGH

🏗️ Build Your Own OnStepX

  • If you use OnStepX from Howard Dutton - there will be no support for STM32 RTC (time and date will not be stored) and weather service will provide false temperatures from BME280 (self-heating)
  • This could be potentially merged into main branch (I know that STM32 RTC was not planned - there are no official boards ready for this, weather fix is open)
  • For my Juwei17 board use the OnStepX from this repository
  • Change configuration as needed
  • For upload use Serial Bootloader - depending on your IDE (Arduino, PlatformIO) how to do it
  • There are three pads on the bottom of the PCB to connect to ST-Link - you need to solder wires or a connector with 2mm pitch
  • If you want to use OnstepEspLoader just browse for your STM32 firmware binary
  • Binary file pattern:
Firmware NameTMC ModuleHoming
firmware_5160_wHTMC5160With Homing
firmware_5160_woHTMC5160Without Homing
firmware_2130_wHTMC2130With Homing
firmware_2130_woHTMC2130Without Homing
firmware_2209_wHTMC2209With Homing
firmware_2209_woHTMC2209Without Homing

Parts

145
QtyValueFootprintReferences
9100n/50VCapacitor_SMD:C_0402_1005MetricC26, C27, C28, C29, C35, C36, C37, C38, C41
70603ESDA-05NDiode_SMD:D_0603_1608MetricD3, D4, D5, D6, D8, D9, D10
710uF/10VCapacitor_SMD:C_0603_1608MetricC3, C11, C14, C15, C16, C22, C47
6100kResistor_SMD:R_0402_1005MetricR10, R11, R18, R22, R31, R37
6100nCapacitor_SMD:C_0402_1005MetricC7, C8, C9, C10, C20, C21
610kResistor_SMD:R_0402_1005MetricR6, R21, R25, R26, R27, R34
64.7u/25VCapacitor_SMD:C_0805_2012MetricC23, C24, C30, C32, C33, C39
5100uF/35VCapacitor_SMD:CP_Elec_6.3x7.7C12, C40, C42, C43, C44
40.11R/0805Resistor_SMD:R_0805_2012MetricR19, R20, R23, R24
410kCapacitor_SMD:C_0402_1005MetricR2, R3, R4, R5
41kResistor_SMD:R_0402_1005MetricR9, R38, R39, R40
44k7Resistor_SMD:R_0402_1005MetricR16, R17, R30, R32
45k1Resistor_SMD:R_0402_1005MetricR7, R8, R35, R36
4EVQPUMButton_Switch_SMD:SW_Push_1P1T_NO_CK_KMR2ESP_BOOT1, ESP_RST1, RST1, RST2
4MountingHoleMountingHole:MountingHole_3.2mm_M3_Pad_ViaH1, H2, H3, H4
310u/25VCapacitor_SMD:C_0805_2012MetricC2, C18, C19
31kCapacitor_SMD:C_0402_1005MetricR28, R29, R33
322n/50VCapacitor_SMD:C_0402_1005MetricC25, C31, C34
2100nFCapacitor_SMD:C_0402_1005MetricC45, C48
21uF/10VCapacitor_SMD:C_0402_1005MetricC5, C13
220pFCapacitor_SMD:C_0402_1005MetricC1, C4
222RResistor_SMD:R_0402_1005MetricR12, R13
2AO4411Package_SO:SOIC-8_3.9x4.9mm_P1.27mmQ1, Q2
2LEDLED_SMD:LED_0603_1608MetricD1, D12
2RA_2.54mmConnector_Molex:Molex_KK-254_AE-6410-04A_1x04_P2.54mm_VerticalJ13, J14
2RA_2mmConnector_JST:JST_PH_B4B-PH-K_1x04_P2.00mm_VerticalJ11, J12
2USBLC6-2SC6Package_TO_SOT_SMD:SOT-23-6U5, U13
2USB_C_Receptacle_USB2.0Connector_USB:USB_C_Receptacle_G-Switch_GT-USB-7010ASVJ1, J10
2~Package_DFN_QFN:QFN-28-1EP_5x5mm_P0.5mm_EP3.75x3.75mm_ThermalViasU2, U3
1100n/50V/0603Capacitor_SMD:C_0402_1005MetricC17
11MEGCapacitor_SMD:C_0402_1005MetricR1
11uFCapacitor_SMD:C_0402_1005MetricC46
124AA64T-I/OTPackage_TO_SOT_SMD:SOT-23-5U9
12u2/6.3Capacitor_SMD:C_0402_1005MetricC6
136kResistor_SMD:R_0402_1005MetricR14
15.5/2.1 Barell DC3Connector_BarrelJack:BarrelJack_Wuerth_6941xx301002J3
16k8Resistor_SMD:R_0402_1005MetricR15
1BLM18HE601SH1DInductor_SMD:L_0603_1608Metric_Pad1.05x0.95mm_HandSolderL1
1BME280Package_LGA:Bosch_LGA-8_2.5x2.5mm_P0.65mm_ClockwisePinNumberingU11
1BZT52B12Diode_SMD:D_SOD-123FD7
1BZT52BxxDiode_SMD:D_SOD-123FD11
1Battery_CellmyLib_SMD:CR1220_holderBT1
1CP2102N-Axx-xQFN28Package_DFN_QFN:QFN-28-1EP_5x5mm_P0.5mm_EP3.35x3.35mmU12
1Conn_01x02Connector_Molex:Molex_KK-254_AE-6410-02A_1x02_P2.54mm_VerticalJ8
1DEC_HOMEConnector_JST:JST_PH_B3B-PH-K_1x03_P2.00mm_VerticalJ5
1DS3231MPackage_SO:SOIC-16W_7.5x10.3mm_P1.27mmU4
1DTC114EPackage_TO_SOT_SMD:SOT-23Q3
1ESP_UARTConnector_JST:JST_PH_B3B-PH-K_1x03_P2.00mm_VerticalJ9
1FNR5040S100MTmyLib_SMD:L_5.5x5.1mmL2
1GPSConnector_JST:JST_PH_B4B-PH-K_1x04_P2.00mm_VerticalJ7
1I2CConnector_JST:JST_PH_B4B-PH-K_1x04_P2.00mm_VerticalJ15
1LIMITConnector_JST:JST_PH_B3B-PH-K_1x03_P2.00mm_VerticalJ6
1ME3116myLib_SMD:SOT-23-6_HandsolderingU8
1ME6211Package_TO_SOT_SMD:SOT-23-5U7
1RA_HOMEConnector_JST:JST_PH_B3B-PH-K_1x03_P2.00mm_VerticalJ4
1RJ12Connector_RJ:RJ12_Amphenol_54601-x06_HorizontalJ2
1SMD0805P050TFFuse:Fuse_0805_2012MetricF1
1SS34Diode_SMD:D_SMAD2
1STM32F411CCUxPackage_DFN_QFN:QFN-48-1EP_7x7mm_P0.5mm_EP5.6x5.6mmU6
1SW_SPSTmyLib_THT:MTS-102-C4SW2
1SW_Slide_DPDTButton_Switch_THT:SW_CK_JS202011CQN_DPDT_StraightSW1
1TAXM8M4RDBCCT2T / 8MHz 3225Crystal:Crystal_SMD_3225-4Pin_3.2x2.5mmY1
1~myLib_SMD:ESP_M2U1

More from xlazam01/Juwei17

1
  • 2 layers61 × 61 mmJuwei17onstep, the printed circuit board in 3D

    Juwei17onstep

    xlazam01/Juwei17

    Upgrade of Juwei17 Astronomy Mount

    140 parts9MIT

Similar boards

  • 2 layers120.1 × 46 mmGeiger EDW, the printed circuit board in 3D

    Geiger EDW

    Sidolux/geiger_counter

    Geiger Counter (STS-5) designed with KiCad

    60 parts1
  • 4 layers70 × 50 mmPD Smart Supply, the printed circuit board in 3D

    PD Smart Supply

    JaphD/USB-C-PD-Smart-Power-Supply

    A compact STM32-controlled USB-C Power Delivery supply providing selectable 5 V, 9 V, 12 V, and 20 V outputs up to 3 A.

    73 parts
  • 2 layers71.1 × 120.9 mmNumpad, the printed circuit board in 3D

    Numpad

    inexcomp/NumpadA

    Programmable mechanical numpad

    90 parts9
  • 2 layers80 × 60 mmMecanum robot board, the printed circuit board in 3D

    Mecanum robot board

    adammat02/mecanum_robot_board

    A compact STM32-based controller board for a four-wheel mecanum robot. It drives four DC gear motors with quadrature-encoder feedback, reads two time-of-flight distance sensors, and breaks out the common serial buses -…

    88 parts
  • 4 layers300 × 200 mmFreyja gcs pcb, the printed circuit board in 3D

    Freyja gcs pcb

    aesirkth/freyja-gcs

    freyja ground control station

    306 parts
  • 4 layers100.8 × 21.8 mmGear80-M, the printed circuit board in 3D

    Gear80-M

    cosmosalad/GearSeries

    All Gear series keyboards are being uploaded.

    183 parts6
  • 4 layers130 × 110 mmOpenBeacon2, the printed circuit board in 3D

    OpenBeacon2

    etherkit/OpenBeacon2

    Multimode MEPT based on OpenBeacon

    261 parts15
  • 2 layers35 × 42 mmAstroUniBoard, the printed circuit board in 3D

    AstroUniBoard

    xlazam01/AstroUniBoard

    STM32G0B1-based telescope focuser/rotator controller — OnStepX firmware port + KiCad PCB

    146 parts1GPL-3.0

Questions

How big is the Juwei17onstep bck PCB?

It measures 61 × 61 mm and has 2 copper layers, 1.6 mm thick.

What parts does the Juwei17onstep bck use?

145 parts, built around the BME280, USBLC6-2SC6, 24AA64T-I/OT and DS3231MZ+. 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 Juwei17onstep bck KiCad files?

From the xlazam01/Juwei17 repository on GitHub, at the commit this page was made from: the board is HW/v2.1/juwei17onstep_bck.kicad_pcb and its schematic HW/v2.1/ME3116.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the Juwei17onstep bck design in my own project?

Its repository publishes it under the MIT licence: you may reuse it on that licence's terms (keep the author's notice, and for a copyleft licence share your changes alike).