To anyone with the misfortune to come across this in future,
For my particular case, I didn't care about the web portal, and also didn't need or want to receive any information back from duet board, I simply needed to send G-code that I'd generated on my mobile phone to the board and have it carry out the commands. I wasn't thrilled about the idea of removing the wifi module and soldering the new connections for an SPI bus onto the board, so for the time being, I've just connected the board to the raspberry pi using the usb connections, and send the data using 'minicom'. I haven't finished building the machine yet, so I won't know for sure if its working, but at this stage it seems to be transmitting, and the board is replying with errors due to the fact there's no steppers connected. Possibly not a workable solution if it's a standard upgrade for a home printer, but for what I'm doing I think(hope) it will work well enough.
For reference the application is a custom mobile small engraver, with gcode that's generated on an iPhone. The firmware on the board is the Reprap 3.5(latest at time of posting), configured for SBC, and I wound up just using the standard 32 bit raspberrypi OS
Best posts made by RoyMackay
-
RE: Initital Connection of a Raspberry Pi to Duet 2 Wifi
Latest posts made by RoyMackay
-
RE: Duex5 pwm pin doesnt appear to output anything
@droftarts Hi Ian, Thanks for the reply my config is as follows
; Configuration file for RepRapFirmware on Duet 2 WiFi ; executed by the firmware on start-up ; ; generated by RepRapFirmware Configuration Tool v3.5.4 on Thu Aug 15 2024 10:24:24 GMT+0800 (Australian Western Standard Time) ; General G90 ; absolute coordinates M83 ; relative extruder moves M550 P"RMACEngraver" ; set hostname ; Network M552 S0 ; configure WiFi adapter M586 P0 S1 ; configure HTTP M586 P1 S1 ; configure FTP M586 P2 S1 ; configure Telnet ; Smart Drivers M569 P1 S1 D2 ; driver 1 goes forwards (X axis) M569 P2 S1 D2 ; driver 2 goes forwards (Y axis) ; Motor Idle Current Reduction M906 I30 ; set motor current idle factor M84 S30 ; set motor current idle timeout ; Axes M584 X1 Y2; set axis mapping M350 X32 Y32 Z16 I1 ; configure microstepping with interpolation M906 X2400 Y2400 ; set axis driver currents M92 X50 Y50 ; configure steps per mm M208 X0:200 Y0:200 Z0:200 ; set minimum and maximum axis limits M566 X900 Y900 Z12 ; set maximum instantaneous speed changes (mm/min) M203 X6000 Y6000 Z180 ; set maximum speeds (mm/min) M201 X500 Y500 Z20 ; set accelerations (mm/s^2) ; Kinematics M669 K0 ; configure Cartesian kinematics ; Endstops M574 X1 S1 P"xstop" ; configure X axis endstop M574 Y1 S1 P"ystop" ; configure Y axis endstop M574 Z0 ; configure Z axis endstop ; Disable all heaters M140 H-1 : Disable the bed heater M307 H1 A-1 C-1 D-1 ; Disable Heater 2 (Hotend) M307 H1 A-1 C-1 D-1 ; Disable Heater 2 (Chamber) ; Lasers M563 P0 S"Laser" M452 C"duex.pwm5" R255 F5000 M42 P"duex.pwm5" S1 T0
I've messed around with a few different things trying to make this work, nothing has given me the pwm signal.
I've just done another test as discussed entering the following
G28
G1 X75 F100 S125
This also didn't give any results. I've also attached the output of a M122 command.
M122.txt
Lastly, I've noticed a reasonable number of unresolved issues in the laser forum around getting this 5v pwm signal to work, is the board actually capable of what I'm trying to do here or is it just limited by the user?Kind Regards
Roydon Mackay -
RE: Duex5 pwm pin doesnt appear to output anything
Sorry should have been explicit, I'm just testing the voltage at the locations shown, multimeter is showing flat zeros
-
Duex5 pwm pin doesnt appear to output anything
Hi All,
I'm in the process of building a laser engraver from scratch using an atomstack R30 v2 and a duet2 wifi + duex5 board. I've got everything connected on the bench just testing the functions, and I can't get any signal from the duex pwm pin, and thus can't fire the laser. Note for testing I'm just using a multimeter (test location is noted on the schematic) also not that I don't currently have the laser connected (for safety), I'm just trying to confirm the 5v pwm signal is working correctly before I proceed any further. In any case I've attached a wiring mud map of how I've wired the relevant parts, if someone could confirm if the wiring is correct it would be much appreciatedKind Regards
Roydon Mackay -
Initial Setup of laser, laser isn't firing on G1
Hi All,
I'm building a new CNC engraver using a Duet 2 + Duex5 board. Were currently at the stage where all the components are wired up on the bench and checking everything works. Everything is working except the laser, which is powering up fine, but isn't firing for G1 move commands. It's also got a test button, and the laser activates properly when this button is pressed. The laser is controlled by the pwm1 plug on the Duex5 board.
I'm using an AtomStack R30 V2 - https://www.atomstack.net/products/atomstack-r30-v2-upgraded-infrared-laser-module-replacement-engraving-head?variant=44258606678266.
See my config file below, note this thing is a dedicated engraver so there's no Z axis, heaters or any of the other usual paraphernalia 3D printers have.
; Configuration file for RepRapFirmware on Duet 2 WiFi
; executed by the firmware on start-up
;
; generated by RepRapFirmware Configuration Tool v3.5.4 on Thu Aug 15 2024 10:24:24 GMT+0800 (Australian Western Standard Time); General
G90 ; absolute coordinates
M83 ; relative extruder moves
M550 P"RMACEngraver" ; set hostname; Network
M552 S0 ; configure WiFi adapter
M586 P0 S1 ; configure HTTP
M586 P1 S1 ; configure FTP
M586 P2 S1 ; configure Telnet; Smart Drivers
M569 P1 S1 D2 ; driver 1 goes forwards (X axis)
M569 P2 S1 D2 ; driver 2 goes forwards (Y axis); Motor Idle Current Reduction
M906 I30 ; set motor current idle factor
M84 S30 ; set motor current idle timeout; Axes
M584 X1 Y2; set axis mapping
M350 X32 Y32 Z16 I1 ; configure microstepping with interpolation
M906 X2400 Y2400 ; set axis driver currents
M92 X50 Y50 ; configure steps per mm
M208 X0:200 Y0:200 Z0:200 ; set minimum and maximum axis limits
M566 X900 Y900 Z12 ; set maximum instantaneous speed changes (mm/min)
M203 X6000 Y6000 Z180 ; set maximum speeds (mm/min)
M201 X500 Y500 Z20 ; set accelerations (mm/s^2); Kinematics
M669 K0 ; configure Cartesian kinematics; Endstops
M574 X1 S1 P"xstop" ; configure X axis endstop
M574 Y1 S1 P"ystop" ; configure Y axis endstop
M574 Z0 ; configure Z axis endstop; Disable all heaters
M140 H-1 : Disable the bed heater
M307 H1 A-1 C-1 D-1 ; Disable Heater 2 (Hotend)
M307 H1 A-1 C-1 D-1 ; Disable Heater 2 (Chamber); Lasers
M452 C"duex.pwm1" R255 F500 S1 ; configure Laser port
; M42 P"duex.pwm1" S0; Tools
M563 P0 D0 H1; create tool #0
M568 P0 R0 S0 ; set initial tool #0 active and standby temperatures to 0C; Miscellaneous
M452 ; select Laser mode
T0 select first toolOn log in to the machine I write the following commands
G28
M3 S125
G1 X50 F250
The motors move and the laser does nothing. I've double checked my wiring and I think that's correct. There's no issues flagged from an M122.If there's an obvious error in my config or commands that someone could point out it would be much appreciated.
Kind Regards
Roydon Mackay
-
RE: Initital Connection of a Raspberry Pi to Duet 2 Wifi
To anyone with the misfortune to come across this in future,
For my particular case, I didn't care about the web portal, and also didn't need or want to receive any information back from duet board, I simply needed to send G-code that I'd generated on my mobile phone to the board and have it carry out the commands. I wasn't thrilled about the idea of removing the wifi module and soldering the new connections for an SPI bus onto the board, so for the time being, I've just connected the board to the raspberry pi using the usb connections, and send the data using 'minicom'. I haven't finished building the machine yet, so I won't know for sure if its working, but at this stage it seems to be transmitting, and the board is replying with errors due to the fact there's no steppers connected. Possibly not a workable solution if it's a standard upgrade for a home printer, but for what I'm doing I think(hope) it will work well enough.
For reference the application is a custom mobile small engraver, with gcode that's generated on an iPhone. The firmware on the board is the Reprap 3.5(latest at time of posting), configured for SBC, and I wound up just using the standard 32 bit raspberrypi OS -
Initital Connection of a Raspberry Pi to Duet 2 Wifi
Hi All,
I'm working on a custom project here, using a duet 2 wifi board with a raspberry pi 4.0. I've gone through the forums and technical documentation and haven't found a specific wiring guide for how to connect these, so right now I've got the raspberry pi connected to the duet board using the usb (raspberry)/ usb mini port (duet). I've also installed the duetpi operating system on the raspberry pi. I'm connecting to the raspberry pi using a RealVNC, but its just showing the blue connecting box in the center of the screen, and at the bottom it has the error message "Failed to connect to localhost- Could not connect to DUET: Timeout while waiting for transfer ready pin. I'm assuming this means the usb connection isnt enough and I've got to add more, but what ...
If there some wiring guide that I've missed my apologies
Any assistance would be appreciated
Kind RegardsRoydon Mackay