Duet Buddy - a proof of concept remote monitor
-
I love this thing! It would handy to monitor all of my printers. I'll be watching for more released info.
-
I've ordered an M5Stack Core so I can try it out
-
@richardmckenna Can you just keep us all uptodate with your progress please and if you need any further testing please just shout no need to start a new discussion just yet.
-
@jay_s_uk said in Duet Buddy - a proof of concept remote monitor:
I've ordered an M5Stack Core so I can try it out
I'm ordering one today as well.
-
@Dougal1957 will do. I just want to get my printer running with the Duet3 first then I will go back to this project.
-
@richardmckenna That is exactly what I was looking into doing also!
Do you have any documentation or guides on how to do this? I don't know how to code a Raspberry Pi..Just saw your comment, would love to see a guide in the future!
-
@zapta so will this be connected over wifi? Awesome idea since most users use just the UI online and not a touch screen
-
That's really cool.
On a side note, can you post the gcode for the shave and a haircut two bits tune in the background of the video? Asking for a friend...
-
@UnderDoneSushi said in Duet Buddy - a proof of concept remote monitor:
@zapta so will this be connected over wifi? Awesome idea since most users use just the UI online and not a touch screen
Yes, it's uses wifi to connect to the duet. It can work on batteries (there are third party replacement batteries with larger capacity if you need) or connected to a usb charger (Type C cable).
@Phaedrux, that tune is from here https://github.com/zapta/misc/blob/3639b3ed30d71bf4465b09f19e08cb888792e71a/duet3d_monitor/arduino/beeper.cpp#L111 this is Arduino code.
-
@zapta Thanks. I think I can translate that into gcode.
-
Just found out. The M5Stack has built in magnets and sticks to things
-
@zapta said in Duet Buddy - a proof of concept remote monitor:
@Phaedrux, that tune is from here https://github.com/zapta/misc/blob/3639b3ed30d71bf4465b09f19e08cb888792e71a/duet3d_monitor/arduino/beeper.cpp#L111 this is Arduino code.
Thanks again. Translated for Duet Gcode here:
; 0:/macros/Tunes/TwoBits.g ; Shave and a haircut, two bits ; NOTE(NOTE_C6, 4), 1047 ; NOTE(NOTE_G5, 8), 784 ; NOTE(NOTE_G5, 8), 784 ; NOTE(NOTE_A5, 4), 880 ; NOTE(NOTE_G5, 4), 784 ; NOTE(0, 4), ; NOTE(NOTE_B5, 4), 988 ; NOTE(NOTE_C6, 4), 1047 M300 P400 S1047 G4 P410 M300 P350 S783 G4 P355 M300 P400 S785 G4 P410 M300 P400 S880 G4 P410 M300 P400 S784 G4 P850 M300 P400 S988 G4 P410 M300 P600 S1047 G4 P600
Works good on my old style PanelDue 7"
Sorry for the distraction.
-
@Phaedrux said in Duet Buddy - a proof of concept remote monitor:
Works good on my old style PanelDue 7"
I thought you said it was 'for a friend'?!
Ian
-
@droftarts Well I had to test it out for him, obviously...
-
I use this tune to let me know when the printer is in pause mode (e.g. to insert magnets half way). My serial duet monitor detects the state from the PanelDue communication and plays it every few seconds.
Should be easily to do the same with the M4Stack since it knows the printer's state and has a 1W speaker.
(I tried to play tunes via gcode but barely hear them from the PanelDue's speaker).
-
Had more progress with the firmware and it's stable and usefulnow. Here is a video that demonstrates how it behaves with the sequence: print, pause, resume, pause, cancel.
The full source code is here https://github.com/zapta/misc/tree/master/duet3d_buddy/arduino and is in public domain so feel to do with it whatever you like. The main flow is straight forward Arduino style and should be easy to understand and modify.
If any programmer here is looking for ideas on how to improve it, here are a few:
- Some mechanism that will allow people to buy the M5Stack and program it by inserting a SD card with downloaded software.
- UI to select from a few duet related mini apps (e.g. a Pressure Advance Buddy that allow to increase/decrease pressure advance on the fly using a + and - buttons)
- Sound effects. E.g. a periodic tune when in pause mode to get the attention of the operator.
-
@zapta is it working with the DUET3 & RRF3?
-
@tobias_munich said in Duet Buddy - a proof of concept remote monitor:
@zapta is it working with the DUET3 & RRF3?
Didn't tested it with duet3 and RRF3 (I have neither) but it it doesn't work, a small change should fix it.
The duet buddy polls the printer at the URL below with xx.xx.xx.xx representing the IP address of the printer.
http://xx.xx.xx.xx/rr_status?type=3
It expect to get back a json document with the printer status and then extract a few values such as progress, temp and z height. You can try it manually from a browser and see if you get a json doc. If you will post it here, I can text if the existing firmware will parse it correctly.
-
@zapta not sure about standalone mode duet3 but I don't think it will work with duet3 + pi as DSF has a new REST API so it would be a GET at http://{{RASP_PI_IP}}/machine/status.
Also not sure if the JSON model that is returned has changed from the old version. I will see what it returns tonight if no one else has by the time I get to it
-
@richardmckenna, shouldn't be too difficult to handle the difference. The duet buddy reads its configuration from an SD card so instead of the duet IP it can read the full duet status URL. As for json field names, if they changed, should be difficult to select an alternative parsing.
This is the current duet status parser logic. It's straight forward and can be easily adapted to pick whatever fields.
https://github.com/zapta/misc/blob/master/duet3d_buddy/arduino/duet_parser.cpp