I liked to way that klipper does the pressure advance tuning, so i worked out how to do the same for the duet.
the steps are the same as the klipper guide with the follow differences.
https://github.com/KevinOConnor/klipper/blob/master/docs/Pressure_Advance.md
Setting the acceleration is done via
M201 X500 Y500
instead of the TUNING_TOWER COMMAND we use a prusaslicer feature.
In the Printer settings for custom g-code we set the After layer change g-code to
M572 D0 S{layer_z*0.005}
or for boden
M572 D0 S{layer_z*0.02}