Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ jobs:
- mksgenlv1
- esp32
- ramps
- rp2040_jackw01
- rp2040_skr_pico
steps:
- uses: actions/checkout@v6
- uses: ./.github/actions/setup-pio
Expand Down
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,9 @@ CMakeListsPrivate.txt
build_cache

Configuration_local*
MeadeToWikiOutput.txt

!Configuration_local_examples/
!Configuration_local_examples/*
MeadeToWikiOutput.txt

# macOS
**/.DS_Store
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "1.13.22"
".": "1.14.0"
}
17 changes: 17 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,22 @@
# Changelog

## [1.14.0](https://github.com/OpenAstroTech/OpenAstroTracker-Firmware/compare/v1.13.22...v1.14.0) (2026-11-05)


### Features

* **rp2040:** 5 kHz stepping, hardware info, SSD1306 display, CI coverage + TMC hold-current fix ([#309](https://github.com/OpenAstroTech/OpenAstroTracker-Firmware/issues/309)) ([82b8592](https://github.com/OpenAstroTech/OpenAstroTracker-Firmware/commit/82b859232eca8c0e999dcfd1449656cf02449bb5))
* **rp2040:** add support for JackW01 and BTT SKR Pico boards ([#298](https://github.com/OpenAstroTech/OpenAstroTracker-Firmware/issues/298)) ([2f77d61](https://github.com/OpenAstroTech/OpenAstroTracker-Firmware/commit/2f77d61fb783f7b1142534da3fbf0d5867171d5e))


### Bug Fixes

* AZ ALT drivers staying energized on 0 length moves ([#311](https://github.com/OpenAstroTech/OpenAstroTracker-Firmware/issues/311)) ([42d2982](https://github.com/OpenAstroTech/OpenAstroTracker-Firmware/commit/42d29825285c1be1ff0f180c3afdc10055e0352e))
* **build:** clear espressif32 8.0.0 -Werror blockers (buffer size, binary literals) ([#319](https://github.com/OpenAstroTech/OpenAstroTracker-Firmware/issues/319)) ([be86480](https://github.com/OpenAstroTech/OpenAstroTracker-Firmware/commit/be86480eec993f0505f6b687db9d0802bba3ffc2))
* **guiding:** guide pulses dropped during active pulses + display render delaying pulse end ([#313](https://github.com/OpenAstroTech/OpenAstroTracker-Firmware/issues/313)) ([3ad0c21](https://github.com/OpenAstroTech/OpenAstroTracker-Firmware/commit/3ad0c21adb27becca56bda4d51da5998018e1e07))
* **steppers:** honour negative speed in InterruptAccelStepper::setSpeed ([#318](https://github.com/OpenAstroTech/OpenAstroTracker-Firmware/issues/318)) ([6c41f8d](https://github.com/OpenAstroTech/OpenAstroTracker-Firmware/commit/6c41f8dd15b85d0e203bbfb7101f1da57b895859))
* use UTC date for LST calculation ([#312](https://github.com/OpenAstroTech/OpenAstroTracker-Firmware/issues/312)) ([034b190](https://github.com/OpenAstroTech/OpenAstroTracker-Firmware/commit/034b1907eae935dd23615e60c4b3e57e96f7c1c8))

## [1.13.22](https://github.com/OpenAstroTech/OpenAstroTracker-Firmware/compare/v1.13.21...v1.13.22) (2026-10-05)


Expand Down
25 changes: 22 additions & 3 deletions Configuration.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,24 @@
#define INFO_DISPLAY_I2C_ADDRESS 0x3C
#endif
#ifndef INFO_DISPLAY_I2C_SDA_PIN
#define INFO_DISPLAY_I2C_SDA_PIN 5
#if (BOARD == BOARD_RP2040_SKR_PICO)
// The SKR Pico has exactly one header-accessible I2C-capable GPIO pair:
// GP0/GP1 on the left-side header (shared with the default GPS wiring).
#define INFO_DISPLAY_I2C_SDA_PIN 0
#elif (BOARD == BOARD_RP2040_JACKW01)
#define INFO_DISPLAY_I2C_SDA_PIN 20
#else
#define INFO_DISPLAY_I2C_SDA_PIN 5
#endif
#endif
#ifndef INFO_DISPLAY_I2C_SCL_PIN
#define INFO_DISPLAY_I2C_SCL_PIN 4
#if (BOARD == BOARD_RP2040_SKR_PICO)
#define INFO_DISPLAY_I2C_SCL_PIN 1
#elif (BOARD == BOARD_RP2040_JACKW01)
#define INFO_DISPLAY_I2C_SCL_PIN 21
#else
#define INFO_DISPLAY_I2C_SCL_PIN 4
#endif
#endif
#ifndef INFO_DISPLAY_UPSIDE_DOWN
#define INFO_DISPLAY_UPSIDE_DOWN 0
Expand Down Expand Up @@ -164,7 +178,12 @@
* See Constants.hpp for predefined SERIAL_BAUDRATE options, or customize as required.
*/
#ifndef SERIAL_BAUDRATE
#define SERIAL_BAUDRATE SERIAL_BAUDRATE_ASCOM
#if defined(ARDUINO_ARCH_RP2040)
// The 19200 ASCOM default exists because the 8-bit AVR platforms cannot keep up.
#define SERIAL_BAUDRATE SERIAL_BAUDRATE_FAST
#else
#define SERIAL_BAUDRATE SERIAL_BAUDRATE_ASCOM
#endif
#endif

/**
Expand Down
23 changes: 11 additions & 12 deletions ConfigurationValidation.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,17 @@
#error Unsupported GPS configuration. Use at own risk.
#endif

// RP2040 SKR Pico: info display pin sharing.
#if defined(ARDUINO_ARCH_RP2040) && (BOARD == BOARD_RP2040_SKR_PICO) && (INFO_DISPLAY_TYPE != INFO_DISPLAY_TYPE_NONE)
#if (USE_GPS == 1)
#error On the SKR Pico the info display and GPS share GP0/GP1 on the left-side header. Enable only one, or remap the pins explicitly.
#endif
#if (INFO_DISPLAY_I2C_SDA_PIN == 20) || (INFO_DISPLAY_I2C_SCL_PIN == 21) || (INFO_DISPLAY_I2C_SDA_PIN == 21) \
|| (INFO_DISPLAY_I2C_SCL_PIN == 20)
#error GP20/GP21 on the SKR Pico only drive on-board MOSFETs (HB/FAN/Laser power outputs); they are not exposed as GPIO on any connector and cannot be used for I2C. Use GP0/GP1 on the left-side header.
#endif
#endif

#if (USE_GYRO_LEVEL == 0)
// Baseline configuration without gyro is valid
#elif defined(ESP32) || defined(__AVR_ATmega2560__)
Expand Down Expand Up @@ -240,12 +251,6 @@
// Required pin assignments missing (ATmega uses SoftwareSerial for this driver)
#error Missing pin assignments for configured AZ DRIVER_TYPE_TMC2209_UART driver
#endif
#if !defined(AZ_DIAG_PIN)
// AZ_DIAG_PIN (TMC2209 DIAG output) is used only for stallGuard-based homing.
// It is optional: omit it if your hardware does not wire the DIAG output to a GPIO.
// Without it, stallGuard homing is unavailable but all other AZ motion works normally.
#pragma message "AZ_DIAG_PIN not defined. StallGuard homing unavailable for AZ axis."
#endif
#if !((defined(AZ_SERIAL_PORT_TX) && defined(AZ_SERIAL_PORT_RX)) || defined(AZ_SERIAL_PORT))
// Required pin assignments missing for UART serial
#error Missing pin assignments for configured AZ DRIVER_TYPE_TMC2209_UART driver serial connection
Expand All @@ -264,12 +269,6 @@
// Required pin assignments missing (ATmega uses SoftwareSerial for this driver)
#error Missing pin assignments for configured ALT DRIVER_TYPE_TMC2209_UART driver
#endif
#if !defined(ALT_DIAG_PIN)
// ALT_DIAG_PIN (TMC2209 DIAG output) is used only for stallGuard-based homing.
// It is optional: omit it if your hardware does not wire the DIAG output to a GPIO.
// Without it, stallGuard homing is unavailable but all other ALT motion works normally.
#pragma message "ALT_DIAG_PIN not defined. StallGuard homing unavailable for ALT axis."
#endif
#if !((defined(ALT_SERIAL_PORT_TX) && defined(ALT_SERIAL_PORT_RX)) || defined(ALT_SERIAL_PORT))
// Required pin assignments missing for UART serial
#error Missing pin assignments for configured ALT DRIVER_TYPE_TMC2209_UART driver serial connection
Expand Down
56 changes: 33 additions & 23 deletions Configuration_adv.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,19 @@
// ////////
// MOTOR & DRIVER SETTINGS ////////
// ////////
//////////////////////////////////////
//
// Interval at which the stepper control timer/interrupt services the steppers.
// Shorter intervals mean finer step timing. AVR is capped at 2 kHz: higher rates
// there interfere with serial communications. The RP2040 has ample headroom.
#ifndef STEPPER_CONTROL_INTERVAL_MS
#if defined(ARDUINO_ARCH_RP2040)
#define STEPPER_CONTROL_INTERVAL_MS 0.2f // 5 kHz
#else
#define STEPPER_CONTROL_INTERVAL_MS 0.5f // 2 kHz
#endif
#endif

//////////////////////////////////////
//
// This is how many steps your stepper needs for a full rotation.
Expand Down Expand Up @@ -345,9 +358,9 @@
#ifndef AZ_CIRCUMFERENCE
#ifdef OAE
// Roughly from the joint to the rod placement is 70mm
#define AZ_CIRCUMFERENCE 56.0f * 2 * PI
#define AZ_CIRCUMFERENCE 57.0f * 2 * PI
#ifndef AZ_ROD_PITCH
#define AZ_ROD_PITCH 0.5
#define AZ_ROD_PITCH 0.8
#endif
#define AZIMUTH_STEPS_PER_REV \
+(AZ_CORRECTION_FACTOR * (AZ_CIRCUMFERENCE / AZ_ROD_PITCH) * AZ_STEPPER_SPR * AZ_MICROSTEPPING) // Actually u-steps/rev
Expand Down Expand Up @@ -556,16 +569,15 @@
// Enable RA End Switches in your local configuration. Do not edit here!
#ifndef USE_RA_END_SWITCH
#define USE_RA_END_SWITCH 0
#else
#ifndef RA_END_SWITCH_ACTIVE_STATE
#define RA_END_SWITCH_ACTIVE_STATE LOW
#endif
// You can define how many degrees to slew back after the end switch has triggered.
// Mechanical end switches might have a hysteresis behavior, meaning once signaled,
// it needs to move well back beyond the signal point to become un-signaled.
#ifndef RA_ENDSWITCH_BACKSLEW_DEG
#define RA_ENDSWITCH_BACKSLEW_DEG 0.5
#endif
#endif
#ifndef RA_END_SWITCH_ACTIVE_STATE
#define RA_END_SWITCH_ACTIVE_STATE LOW
#endif
// You can define how many degrees to slew back after the end switch has triggered.
// Mechanical end switches might have a hysteresis behavior, meaning once signaled,
// it needs to move well back beyond the signal point to become un-signaled.
#ifndef RA_ENDSWITCH_BACKSLEW_DEG
#define RA_ENDSWITCH_BACKSLEW_DEG 0.5
#endif

//////////////////////////////////////////
Expand All @@ -574,17 +586,15 @@
// Enable DEC End Switches in your local configuration. Do not edit here!
#ifndef USE_DEC_END_SWITCH
#define USE_DEC_END_SWITCH 0
#else
#ifndef DEC_END_SWITCH_ACTIVE_STATE
#define DEC_END_SWITCH_ACTIVE_STATE LOW
#endif
// You can define how many degrees to slew back after the end switch has triggered.
// Mechanical end switches might have a hysteresis behavior, meaning once signaled,
// it needs to move well back beyond the signal point to become un-signaled.
#ifndef DEC_ENDSWITCH_BACKSLEW_DEG
#define DEC_ENDSWITCH_BACKSLEW_DEG 0.5
#endif

#endif
#ifndef DEC_END_SWITCH_ACTIVE_STATE
#define DEC_END_SWITCH_ACTIVE_STATE LOW
#endif
// You can define how many degrees to slew back after the end switch has triggered.
// Mechanical end switches might have a hysteresis behavior, meaning once signaled,
// it needs to move well back beyond the signal point to become un-signaled.
#ifndef DEC_ENDSWITCH_BACKSLEW_DEG
#define DEC_ENDSWITCH_BACKSLEW_DEG 0.5
#endif

//////////////////////////////////////////
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* Stepper slot : E0 -> ALT (TMC2209, UART addr 3)
* Motor rating : 0.9 deg / step (400 SPR), 470 mA
* Pulley : 16T aluminium GT2
* RA homing : Hall sensor on GPIO4 (X-STOP / RA_DIAG_PIN)
* RA homing : Hall sensor on GPIO4 (X-STOP)
*
* All pin assignments are in boards/RP2040_SKR_PICO/pins_RP2040_SKR_PICO.hpp.
* R_SENSE (0.11 ohm) is set globally in src/a_inits.hpp for all TMC2209_UART
Expand Down Expand Up @@ -124,15 +124,25 @@
#endif

// ── RA Hall sensor auto-home ──────────────────────────────────────────────────
// Hall sensor is wired to GPIO4 (X-STOP input / RA_DIAG_PIN on SKR Pico).
// Hall sensor is wired to GPIO4 (X-STOP input on SKR Pico).
// Active state LOW: sensor pulls GPIO4 LOW when the magnet is present.
// Search distance: 30° default (RA_HOMING_SENSOR_SEARCH_DEGREES in Configuration_adv.hpp).
// GPIO4 is configured INPUT (no pull-up); add external 10kΩ to 3.3V if sensor
// is open-drain, or change to INPUT_PULLUP in b_setup.hpp.
#define USE_HALL_SENSOR_RA_AUTOHOME 1
#define RA_HOMING_SENSOR_PIN 4 // GPIO4 = RA_DIAG_PIN (X-STOP)
#define RA_HOMING_SENSOR_PIN 4 // GPIO4 (X-STOP)
#define RA_HOMING_SENSOR_ACTIVE_STATE LOW // sensor pulls LOW when active

// ── Info display (alternative to GPS) ─────────────────────────────────────────
// The SKR Pico has exactly one header-accessible I2C-capable GPIO pair: GP0/GP1
// on the left-side header (IO0/IO1/GND/5V). This example uses it for GPS below.
// For an SSD1306 128x64 info display instead, set USE_GPS to 0 and enable:
// #define INFO_DISPLAY_TYPE INFO_DISPLAY_TYPE_I2C_SSD1306_128x64
// (SDA/SCL then default to GP0/GP1: SDA->IO0, SCL->IO1, VCC->5V, GND->GND.)
// NOTE: GP20/GP21 must NOT be used for the display on this board - they only
// drive the HB/FAN/Laser MOSFET power outputs and never reach a connector as
// raw GPIO (wiring I2C there hangs the bus). Enforced by ConfigurationValidation.

// ── GPS ───────────────────────────────────────────────────────────────────────
// ATGM336H-5N wired to left-side header: GPS TX→IO1, GPS RX→IO0, VCC→5V, GND.
// GPS_SERIAL_PORT, RP2040_GPS_TX_PIN, RP2040_GPS_RX_PIN defined in pins file.
Expand Down
5 changes: 4 additions & 1 deletion Constants.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@
#define BOARD_ESP32_ESP32DEV 1001
#define BOARD_OAE_V1 1002

// RP2040 based boards
// RP2040 based boards (2000-2999)
// 2101-2199: Pico family + JackW01 printer carrier board
// 2201-2299: BTT SKR Pico family
#define BOARD_RP2040_JACKW01 2101
#define BOARD_RP2040_SKR_PICO 2201

Expand Down Expand Up @@ -67,6 +69,7 @@

// USB serial port speed according to external controller
#define SERIAL_BAUDRATE_ASCOM 19200
#define SERIAL_BAUDRATE_FAST 115200 // For platforms that keep up (RP2040 USB CDC)

// Wifi operating modes (ESP32 only)
#define WIFI_MODE_INFRASTRUCTURE 0 // Infrastructure Only - OAT connects to an existing Router
Expand Down
Loading
Loading