Feat: Use Neptune 4 Plus built-in ADXL345 as default
The Neptune 4 Plus has a built-in ADXL345 accelerometer on the mainboard. This is more reliable than the Cartographer integrated ADXL which has version-specific pin requirements (V3: PA3, V4: PA0). Configuration: - cs_pin: PG11 (Neptune 4 Plus mainboard ADXL) - spi_bus: spi2 The Cartographer ADXL config is kept as a commented alternative for users who prefer to use it. This fixes: 'Invalid adxl345 id (got 0 vs e5)' errors by using the known-working mainboard accelerometer.
This commit is contained in:
parent
02fec8adbe
commit
4db5c7e423
2 changed files with 32 additions and 10 deletions
|
|
@ -42,19 +42,30 @@ min_temp: 5
|
|||
max_temp: 105
|
||||
|
||||
# ============================================================================
|
||||
# ADXL345 ACCELEROMETER (integrated in Cartographer probe)
|
||||
# ADXL345 ACCELEROMETER
|
||||
# ============================================================================
|
||||
# IMPORTANT: Select the correct cs_pin for your Cartographer version!
|
||||
# Option 1: Cartographer integrated (V3 or V4)
|
||||
# - Cartographer V3: cs_pin: cartographer:PA3
|
||||
# - Cartographer V4: cs_pin: cartographer:PA0
|
||||
# Using the wrong pin causes: "Invalid adxl345 id (got 0 vs e5)"
|
||||
#
|
||||
# Option 2: Neptune 4 Plus mainboard (fallback if Cartographer ADXL fails)
|
||||
# - cs_pin: PG11 (Neptune 4 Plus built-in ADXL)
|
||||
# - spi_bus: spi2
|
||||
# ============================================================================
|
||||
|
||||
# Neptune 4 Plus built-in ADXL345 (use this if Cartographer ADXL fails)
|
||||
[adxl345]
|
||||
cs_pin: cartographer:PA3 # ← CHANGE TO cartographer:PA0 FOR V4!
|
||||
spi_bus: spi1
|
||||
cs_pin: PG11
|
||||
spi_bus: spi2
|
||||
axes_map: x, y, z
|
||||
|
||||
# Cartographer ADXL (alternative - comment out above, uncomment below)
|
||||
#[adxl345]
|
||||
#cs_pin: cartographer:PA3 # V3
|
||||
#cs_pin: cartographer:PA0 # V4
|
||||
#spi_bus: spi1
|
||||
#axes_map: x, y, z
|
||||
|
||||
[resonance_tester]
|
||||
accel_chip: adxl345
|
||||
probe_points: 165, 165, 20
|
||||
|
|
|
|||
|
|
@ -42,19 +42,30 @@ min_temp: 5
|
|||
max_temp: 105
|
||||
|
||||
# ============================================================================
|
||||
# ADXL345 ACCELEROMETER (integrated in Cartographer probe)
|
||||
# ADXL345 ACCELEROMETER
|
||||
# ============================================================================
|
||||
# IMPORTANT: Select the correct cs_pin for your Cartographer version!
|
||||
# Option 1: Cartographer integrated (V3 or V4)
|
||||
# - Cartographer V3: cs_pin: cartographer:PA3
|
||||
# - Cartographer V4: cs_pin: cartographer:PA0
|
||||
# Using the wrong pin causes: "Invalid adxl345 id (got 0 vs e5)"
|
||||
#
|
||||
# Option 2: Neptune 4 Plus mainboard (fallback if Cartographer ADXL fails)
|
||||
# - cs_pin: PG11 (Neptune 4 Plus built-in ADXL)
|
||||
# - spi_bus: spi2
|
||||
# ============================================================================
|
||||
|
||||
# Neptune 4 Plus built-in ADXL345 (use this if Cartographer ADXL fails)
|
||||
[adxl345]
|
||||
cs_pin: cartographer:PA3 # ← CHANGE TO cartographer:PA0 FOR V4!
|
||||
spi_bus: spi1
|
||||
cs_pin: PG11
|
||||
spi_bus: spi2
|
||||
axes_map: x, y, z
|
||||
|
||||
# Cartographer ADXL (alternative - comment out above, uncomment below)
|
||||
#[adxl345]
|
||||
#cs_pin: cartographer:PA3 # V3
|
||||
#cs_pin: cartographer:PA0 # V4
|
||||
#spi_bus: spi1
|
||||
#axes_map: x, y, z
|
||||
|
||||
[resonance_tester]
|
||||
accel_chip: adxl345
|
||||
probe_points: 165, 165, 20
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue