PrintEye; simple information panel for Duet boards.



  • So; this is what I did to prove to myself that I could. Maybe for my CV, I had fun and learned a lot doing this. Enjoy, or ignore, as you wish.

    printeye-printing.jpg

    PrintEye is a minimalist information panel for Duet boards; it plugs into the DanelDue UART port, taking power from there and sending M408 S0 once a second, and otherwise waiting for a reply and updating the display based on their contents.

    It consists of a ATMega328P on a simple standalone board, linked to 2x 0.96' I2C OLED displays, a LED, a Button, and two mosfet level converters for the serial connection to the 3.3v UART on the Duet board.

    hardware.jpg

    The Primary connector for the Board doubles as a FTDI programming port, allowing me to update and debug without yanking the CPU out of it's socket. There is no reason why the current cable could not be adapted to the spiffy new 5-pin IO connector of the Duet3 and then that port configured as a UART. Afik the D3 does not have a dedicated panelDue port,

    The displays I used have hard-set identical I2C addresses, to avoid using a multiplexer I create two separate software I2C interfaces, one per display, this works surprisingly well. The U8x8 Arduino library handles all the heavy lifting on the display side.

    Most of my effort went into the software, which:

    • Follows printer status; can turn displays off when printer is in psu-off mode. (configurable)
    • Heartbeat/Status LED; brightness configurable.
    • Pause/Resume button; configurable on/off and hold-down time.
    • Bed plus selected tool heater set and actual temps are reported; as are 'off' and 'fail' states.
    • Screen brightness, timeouts, etc are all configurable.

    Processing the M408 response Json proved a challenge with minimal memory; I ended up using the Jsmn library. Once I had this running I realised I could leverage this to provide config control too. 🙂

    The Project exists as two repos on GitHub: Software and Hardware. Both have TL;DR readme's. The Hardware repo has the full KiCad project, and Gerber files.

    I have also written this up as a formal project on Hackaday, with archives, gallery and a better summary but lacking very detailed instructions, I assume you know which end of a soldering iron to pick up etc..

    assembled-running.jpg

    PrintEyeCase-layout.png

    My plan for the V2 of this drops the displays in flavor of a LED dot-matrix (16x2) and four servos plus these; for a mad plan to put a delta printer into a 70's era Tardis console. Possibly.



  • Very nice!! I like the fact that you went full custom, new board, etc, etc.



  • Very nice, and the OLED displays have great contrast.

    Can you use PanelDue while this is connected?

    Next step is to add buttons and joystick and make it the first Duet pendant (discussed in another thread here).



  • @zapta said in PrintEye; simple information panel for Duet boards.:

    Can you use PanelDue while this is connected?

    As it is, no. Not unless you can find another UART/Port for it.

    But.. you could wire the RX line only on some sort of splitter cable, this would leave it 'parisitic' on the same serial port as the PanelDue. It would then rely on PaneDue for sending the requests, but should independently recieve and process the responses. (theoretically.. ymmv).

    Next step is to add buttons and joystick

    I'm more thinking of a CNC pendant, xyz(+a) position and tool info on a single display, jog and probe buttons etc.



  • @EasyTarget said in PrintEye; simple information panel for Duet boards.:

    I'm more thinking of a CNC pendant, xyz(+a) position and tool info on a single display, jog and probe buttons etc.

    I think this idea will have a lot of interest here, per https://forum.duet3d.com/topic/11389/cnc-st



  • @EasyTarget said in PrintEye; simple information panel for Duet boards.:

    @zapta said in PrintEye; simple information panel for Duet boards.:
    You could wire the RX line only on some sort of splitter cable,

    It should work with just the TX out of Duet that go to RX on the Panel, have that wire also go to the RX into PrintEye, There should be no need for any active components, diodes, etc. The one output gate on the Duet should drive 5 or more inputs on Panels and PrintEyes and so forth; they are very low impedance.

    Going "pendant" is a whole nother kettle of fish. The TX lines from the Pendant and the Panel probably need a diode so they don't backwash into each other. Then, there may need to be some sort of collision detection. Or maybe not; just don't attempt to use Panel commands and Pendant buttons at the same time. Maybe.



  • @Danal said in PrintEye; simple information panel for Duet boards.:

    There should be no need for any active components, diodes

    Yes, this should work. I used something similar for my status led. It just sniffs on traffic from the duet and passively extracts information from the jsons.

    The TX lines from the Pendant and the Panel probably need a diode so they don't backwash into each other.

    Theoretically you can also you can also run it in proxy mode. Your device has two rx/tx pairs, one for the paneldue and one for the duet, and have smart software that will buffer duet commands and send them to the duet when idle. Or something like that. Requires more thinking.



  • @zapta said in PrintEye; simple information panel for Duet boards.:

    Theoretically you can also you can also run it in proxy mode. Your device has two rx/tx pairs, one for the paneldue and one for the duet, and have smart software that will buffer duet commands and send them to the duet when idle. Or something like that. Requires more thinking.

    The current implementation, on an ATMega328P, has only one UART.

    There are LOTS of other chips, and selecting something with 2 UARTS would be easy. Proxy mode would work great with two UARTs. Very straightforward.



  • @Danal said in PrintEye; simple information panel for Duet boards.:

    current implementation, on an ATMega328P

    One of the design goals was to keep it on the 328P since I have a bag of them on my desk. I guess I always assumed that someone with a PanelDue already has a superior display on their machine and would go 'meh' at this.

    PS: Having lworked on this a lot, my go to choice for an alternate processor would be something like an ESP8266. So I could connect via wifi and never have to worry about serial cables or limited cpu resources again.

    Something like this in fact: https://github.com/Qrome/printer-monitor

    • I use two of these at home.
    • It's an octoprint accessory with a better display and functionality,
    • it helped inspire me, I contributed some code to it.
    • But I made PrintEye and so never got round to implementing Duet support on it.


  • I have implemented a Duet specific, ESP8266 based, monitor. Designed for the little boards that have the ESP, a 1.2 (or was it 0.9??) OLED, and a carrier for a single lithium 18650 style cell. It has a built in charger, micro usb.

    It was based on one of the octoprint monitors, possibly even the one mentioned above.

    I need to post the code on Github.

    If it can't connect to the WiFi network, it flips over into Access Point mode, and you connect to it (with your phone or whatever) and config the SSID and Password.

    After that, there is a web page that can be used to set the Name or IP of the printer.

    After that, it scrolls through various temperatures and times regarding the print in progress.

    It could be VERY easily upgraded to also be a "pendant".



  • @Danal
    Nice, I like the sound of that, if you do get it to a state where you push it out please let us know 🙂

    I'm currently playing with ESP32-CAM units; yet another plan(*) involves one of them (using Wifi this time) since there should be enough IO left over for a stepper and endstop, or servo.
    Idea is to make a webcam that can self track current Z height, and turn on when needed, auto time-lapse while printing etc.. Think This, but with power coming via the rods+wifi

    (*) Note to self: Stop. Finish other stuff first.



  • @EasyTarget said in PrintEye; simple information panel for Duet boards.:

    (*) Note to self: Stop. Finish other stuff first.

    Aaaaaaaaaaaaaaaaaaamen!!


Log in to reply