Here is the link to the labbot files.
To generate a config.g file, go to: https://configtool.reprapfirmware.org/
Setting up servo. Details about how to set it up is at this link
Duet 2 WiFi and Duet 2 Ethernet
The miscellaneous pin numbers 60-63 correspond to the CS5-CS8 pins on the expansion connector. These were originally allocated for use as the E2-E6 endstop pins and are labelled as such on the expansion connector, but they are now used to address thermocouple and PT100 daughter boards on a Duex 2 or Duex 5 instead. Because most users don't need more than the four thermocouple and PT100 channels supported on the Duet 2, we make CS5-8 available as general purpose I/O if you do not have any daughter boards fitted to the Duex 2 or 5.
https://docs.duet3d.com/User_manual/Reference/Gcodes#m42-switch-io-pin
https://docs.duet3d.com/User_manual/Reference/Gcodes#m280-set-servo-position
https://docs.duet3d.com/User_manual/Reference/Gcodes#m950-create-heater-fan-spindle-or-gpioservo-pin
To upgrade the firmware there is documentation here: https://docs.duet3d.com/User_manual/RepRapFirmware/Updating_firmware
You need these files:
Duet2CombinedFirmware.bin |
Duet2_SDiap32_WiFiEth.bin |
DuetWiFiServer.bin |
DuetWebControl-SD.zip |
https://docs.duet3d.com/User_manual/Reference/Gcodes#m280-set-servo-position
; Configuration file for Duet WiFi (firmware version 3.3)^M ; executed by the firmware on start-up^M ;^M ; generated by RepRapFirmware Configuration Tool v3.3.12 on Tue Aug 16 2022 06:55:26 GMT-0700 (Pacific Daylight Time)^M ^M ; General preferences^M G90 ; send absolute coordinates...^M M83 ; ...but relative extruder moves^M M550 P"My Printer" ; set printer name^M M669 K1 ; select CoreXY mode^M ^M ; Network^M M552 S1 ; enable network^M M586 P0 S1 ; enable HTTP^M M586 P1 S0 ; disable FTP^M M586 P2 S0 ; disable Telnet^M ^M ; Drives^M M569 P0 S1 ; physical drive 0 goes forwards^M M569 P1 S1 ; physical drive 1 goes forwards^M M569 P2 S1 ; physical drive 2 goes forwards^M M569 P3 S1 ; physical drive 3 goes forwards^M M584 X0 Y1 Z2 E3 ; set drive mapping^M M350 X16 Y16 Z16 E16 I1 ; configure microstepping with interpolation^M M92 X80.00 Y80.00 Z400.00 E420.00 ; set steps per mm^M M566 X900.00 Y900.00 Z60.00 E120.00 ; set maximum instantaneous speed changes (mm/min)^M M203 X6000.00 Y6000.00 Z180.00 E1200.00 ; set maximum speeds (mm/min)^M M201 X500.00 Y500.00 Z20.00 E250.00 ; set accelerations (mm/s^2)^M M906 X800 Y800 Z800 E800 I30 ; set motor currents (mA) and motor idle factor in per cent^M M84 S30 ; Set idle timeout^M ^M ; Axis Limits^M M208 X0 Y0 Z0 S1 ; set axis minima^M M208 X300 Y280 Z200 S0 ; set axis maxima^M ^M ; Endstops^M M574 X1 S1 P"xstop" ; configure switch-type (e.g. microswitch) endstop for low end on X via pin xstop^M M574 Y1 S1 P"ystop" ; configure switch-type (e.g. microswitch) endstop for low end on Y via pin ystop^M M574 Z1 S1 P"zstop" ; configure switch-type (e.g. microswitch) endstop for low end on Z via pin zstop^M ^M ; Z-Probe^M M950 S0 C"exp.heater7" ; create servo pin 0 for BLTouch^M exp.heater7 is pin 31 M558 P9 C"^zprobe.in" H5 F120 T6000 ; set Z probe type to bltouch and the dive height + speeds^M G31 P500 X0 Y0 Z2.5 ; set Z probe trigger value, offset and trigger height^M M557 X15:215 Y15:195 S20 ; define mesh grid^M ^M ; Heaters^M M308 S0 P"bedtemp" Y"thermistor" T100000 B4138 ; configure sensor 0 as thermistor on pin bedtemp^M M950 H0 C"bedheat" T0 ; create bed heater output on bedheat and map it to sensor 0^M M307 H0 B1 S1.00 ; enable bang-bang mode for the bed heater and set PWM limit^M M140 H0 ; map heated bed to heater 0^M M143 H0 S120 ; set temperature limit for heater 0 to 120C^M M308 S1 P"e0temp" Y"thermistor" T100000 B4138 ; configure sensor 1 as thermistor on pin e0temp^M M950 H1 C"e0heat" T1 ; create nozzle heater output on e0heat and map it to sensor 1^M M307 H1 B0 S1.00 ; disable bang-bang mode for heater and set PWM limit^M M143 H1 S280 ; set temperature limit for heater 1 to 280C^M ^M ; Fans^M M950 F0 C"fan0" Q500 ; create fan 0 on pin fan0 and set its frequency^M M106 P0 S0 H-1 ; set fan 0 value. Thermostatic control is turned off^M M950 F1 C"fan1" Q500 ; create fan 1 on pin fan1 and set its frequency^M M106 P1 S1 H1 T45 ; set fan 1 value. Thermostatic control is turned on^M ^M ; Tools^M M563 P0 D0 H1 F0 ; define tool 0^M G10 P0 X0 Y0 Z0 ; set tool 0 axis offsets^M G10 P0 R0 S0 ; set initial tool 0 active and standby temperatures to 0C^M ^M ; Custom settings are not defined^M
To set up camera I did this … https://elinux.org/RPi-Cam-Web-Interface#Installation_Instructions