A DuetWebControl plugin for visualising bd_pressure Pressure Advance calibration logs on RepRapFirmware-based printers.
Part of the bd_pressure RRF fork — a RepRapFirmware implementation of the bd_pressure sensor by markniu.
- Load from Duet — fetches
/sys/pa_calibrate_log.txtdirectly from the Duet SD card - Drag and drop or file browse for local log files
- Three-panel chart — pressure score (res), slopes (lk/rk), signal quality (Hk/Ha)
- Best PA line — red dashed vertical line on all charts with label
- Good zone — green shaded band on the res chart covering all PA values within 20% of best
- Metadata chips — date, RRF version, bd_pressure version, mode, nozzle temp, PA sweep parameters
- One-click Copy M572 — correct extruder index read from log
- Analysis panel — automatic assessment of sweep quality:
- Noise level (coefficient of variation)
- Whether the minimum is near the edge of the sweep range
- Curve flatness around the minimum
- lk/rk slope asymmetry
- Suggested next sweep — zoom-in or range-shift parameters as a copyable GCode block
- Raw data table — all iterations, best row highlighted
- Light and dark mode support
All analysis runs entirely in the browser — nothing is sent to the Duet board.
- DuetWebControl 3.5 or later
- RepRapFirmware 3.5 or later (standalone Duet, no SBC required)
- bd_pressure sensor with RRF firmware v2.24 or later
- Download
BdPressurePA-1.0.0.zipfrom the Releases page - In DWC go to Settings → Plugins → External plugins → Upload plugin
- Select the zip and click Install
- A PA Calibration tab appears under Plugins in the left sidebar
- Run a PA calibration with
M98 P"/sys/pa_calibrate.g"on your Duet - Open the PA Calibration tab in DWC
- Click Load from Duet — the log is fetched automatically from
/sys/pa_calibrate_log.txt - Review the charts and analysis panel
- If a suggested next sweep is shown, copy the parameters into
pa_calibrate.gand run again
The plugin is built against the DuetWebControl 3.6 source tree.
- Node.js 16+
- DuetWebControl 3.6 source (clone from Duet3D/DuetWebControl)
cd /path/to/DuetWebControl
node scripts/build-plugin-pkg.js /path/to/bd_pressure_dwc_pluginThe built zip will be written to dist/BdPressurePA-1.0.0.zip.
dwc-src/
├── index.js Plugin entry point — registers the route
└── PaCalibration.vue Main component — charts, analysis, file handling
plugin.json Plugin metadata
- bd_pressure RRF firmware & macros: https://github.com/jaysuk/bd_pressure
- Original bd_pressure (Klipper): https://github.com/markniu/bd_pressure
- Buy the sensor: https://www.pandapi3d.com/product-page/bdpressuree
MIT — do whatever you like with it.