Duet3D Logo

    Duet3D

    • Register
    • Login
    • Search
    • Categories
    • Tags
    • Documentation
    • Order

    Duet2 ethernet and 12864 display using ST7567

    Duet Hardware and wiring
    11
    35
    1480
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • CNCModeller
      CNCModeller last edited by

      Hi All,
      Is there a guide to using a 12864 display using ST7567 with the Duet2 ethernet anywhere?

      I've been reading up on the duet3 mini and there is a suggestion that one can also be used with the Duet2 as long as you're running RRF 3.2?

      I was shopping for a panel due but I'd rather put the money towards a mini for my other printer if I can use a couple of cheep 12864 displays for stand alone printer management.

      Any constructive thoughts would be much appreciated.

      All the best
      Barry M

      Polar Printer Duet3 Mini + 1HCL
      https://youtube.com/playlist?list=PLWjZVEdMv1BY82izahK45qKh-hp3NFkix

      Wanhao D4S: Duet2
      https://forum.duet3d.com/post/296755

      Wanhao D5S & K40 Laser, Duet2 TBD
      https://www.youtube.com/CNCModellerUK

      droftarts 1 Reply Last reply Reply Quote 0
      • droftarts
        droftarts administrators @CNCModeller last edited by

        @CNCModeller In general, see https://duet3d.dozuki.com/Wiki/Connecting_an_LCD_control_panel#Section_Connecting_a_12864_mono_graphics_LCD_display_with_rotary_encoder

        Compatible displays are https://wiki.fysetc.com/Mini12864_Panel/ and (I think) https://wiki.fysetc.com/Generic_12864_Panel/. For other displays, YMMV, but see the pinout below (some people have got the Ender 12864 panels working).

        You can connect one of the Fystec 12864 displays (with a ST7567 controller) to a Duet 3 Mini 5+ directly; see https://duet3d.dozuki.com/Wiki/Connecting_an_LCD_control_panel#Section_Duet_3_Mini_5_support_for_12864_displays

        For the Duet 2 WiFi/Ethernet, it's supported in RRF 3.2 firmware and later but you will need to make up your own wiring loom between the CONN_SD and CONN_LCD headers to the 12864 display ; see https://duet3d.dozuki.com/Wiki/Connecting_an_LCD_control_panel#Section_Connecting_a_12864_mono_graphics_LCD_display_with_rotary_encoder
        Though the information on connecting a 12864 with a ST7567 controller to the Duet 2 is not quite complete. I'll update it with the information below when I hear from @dc42 that it's correct!

        The pinout table used when ST7567 is selected with M918 is here: https://github.com/Duet3D/RepRapFirmware/blob/c565f35304b0d872d8671584dd6341ce13a82bbf/src/DuetNG/Pins_DuetNG.h#L231

        I've slightly reformatted this to show pin connections from CONN_LCD and CONN_SD (see Duet 2 WiFi/Ethernet wiring diagram HERE) and 12864 EXP1 and EXP2 connectors (see pin out diagram on the page HERE).

        connlcd.2 -> exp1.2 (gnd)
        connlcd.3 -> exp2.6 (EncoderPinB)
        connlcd.4 -> exp2.8 (EncoderPinA)
        connlcd.5 -> exp1.5 (LcdNeopixelPin)
        connlcd.6 -> exp1.6 (LcdResetPin)
        connlcd.7 -> exp1.7 (LcdA0Pin)
        connlcd.8 -> exp1.8 (LcdCSPin)
        connlcd.9 -> exp1.9 (EncoderPinSw)
        connlcd.10 -> exp1.10 (LcdBeepPin)

        connsd.1 -> exp1.1 (+5V)
        connsd.2 -> exp2.2 (gnd)
        connsd.3 -> exp2.7 (SD CS)
        connsd.4 -> exp2.9 (sck)
        connsd.5 -> exp2.5 (mosi)
        connsd.6 -> exp2.10 (miso)

        There's also a very long thread which charts the development of connecting 12864 displays here: https://forum.duet3d.com/topic/15611/logic-level-shifter-for-12864-display-on-duet-2-wifi/198

        Ian

        Cartesian bed-slinger with Duet 3 Mini 5+ WiFi : RRP Fisher Delta v1 with Duet 2 Maestro : TronXY X5S with Duet 2 Wifi (in progress)

        CNCModeller 1 Reply Last reply Reply Quote 1
        • jay_s_uk
          jay_s_uk last edited by

          The support for RRF using BTT TFT screens has recently improved to the point where its actually usable

          Owns various duet boards and is the main wiki maintainer for the Teamgloomy LPC/STM32 port of RRF. Assume I'm running whatever the latest beta/stable build is

          droftarts 1 Reply Last reply Reply Quote 0
          • droftarts
            droftarts administrators @jay_s_uk last edited by

            @jay_s_uk said in Duet2 ethernet and 12864 display using ST7567:

            The support for RRF using BTT TFT screens has recently improved to the point where its actually usable

            Can you post a link to the "useable" ones?!

            Ian

            Cartesian bed-slinger with Duet 3 Mini 5+ WiFi : RRP Fisher Delta v1 with Duet 2 Maestro : TronXY X5S with Duet 2 Wifi (in progress)

            jay_s_uk 1 Reply Last reply Reply Quote 0
            • jay_s_uk
              jay_s_uk @droftarts last edited by

              @droftarts
              Use the images from this link https://github.com/bigtreetech/BIGTREETECH-TouchScreenFirmware/tree/master/Copy to SD Card root directory to update or build your own from the latest sources if your screen isn't listed.

              Make the following adjustments

              • add M409 K"job.file.fileName" in start.g
              • add M118 P2 S"//action:cancel" in stop.g
              • add M118 P2 S"//action::paused" in pause.g
              • add M118 P2 S"//action::prompt_begin Resuming" in resume.g
              • add M575 P1 S2 B57600 in config.g of RRF to set baudrate to 57600(The baudrate of the TFT and motherboard must be the same)

              There is an RRF specific config.ini to use as a base with all the RRF requirements preset and thats in the same folder as the image above. Just rename it from config_rrf.ini to config.ini and flash as normal

              Owns various duet boards and is the main wiki maintainer for the Teamgloomy LPC/STM32 port of RRF. Assume I'm running whatever the latest beta/stable build is

              droftarts 1 Reply Last reply Reply Quote 1
              • droftarts
                droftarts administrators @jay_s_uk last edited by

                @jay_s_uk Thanks, interesting. I'll have to get hold of one, and write up how to connect them in the wiki.

                Ian

                Cartesian bed-slinger with Duet 3 Mini 5+ WiFi : RRP Fisher Delta v1 with Duet 2 Maestro : TronXY X5S with Duet 2 Wifi (in progress)

                jay_s_uk 1 Reply Last reply Reply Quote 0
                • jay_s_uk
                  jay_s_uk @droftarts last edited by

                  @droftarts i'll be adding it to our wiki for the LPC/STM port shortly.
                  The functionality has only been added in the last few days so I'm just waiting for it to settle down a bit.
                  I'll drop you a link when I've added it

                  Owns various duet boards and is the main wiki maintainer for the Teamgloomy LPC/STM32 port of RRF. Assume I'm running whatever the latest beta/stable build is

                  1 Reply Last reply Reply Quote 1
                  • CNCModeller
                    CNCModeller @droftarts last edited by

                    Thanks for the information @droftarts. I've just ordered one of the mini displays for my Duet ethernet.

                    I'll probably get a second and a duet mini if I like the interface. Sounds like it's configurable so I can get it set up with just the menu options I need.

                    I found out about this via the post you linked me to about using the display and now I have the pinout I'm really looking forward to seeing it work.

                    Thanks again
                    Barry M

                    Polar Printer Duet3 Mini + 1HCL
                    https://youtube.com/playlist?list=PLWjZVEdMv1BY82izahK45qKh-hp3NFkix

                    Wanhao D4S: Duet2
                    https://forum.duet3d.com/post/296755

                    Wanhao D5S & K40 Laser, Duet2 TBD
                    https://www.youtube.com/CNCModellerUK

                    droftarts 1 Reply Last reply Reply Quote 0
                    • droftarts
                      droftarts administrators @CNCModeller last edited by

                      @CNCModeller and @dc42 confirmed that I've got the pinout correct! I'll update the wiki when I get a moment.

                      Ian

                      Cartesian bed-slinger with Duet 3 Mini 5+ WiFi : RRP Fisher Delta v1 with Duet 2 Maestro : TronXY X5S with Duet 2 Wifi (in progress)

                      CNCModeller 1 Reply Last reply Reply Quote 0
                      • CNCModeller
                        CNCModeller @droftarts last edited by

                        @droftarts said in Duet2 ethernet and 12864 display using ST7567:

                        @CNCModeller and @dc42 confirmed that I've got the pinout correct! I'll update the wiki when I get a moment.

                        Ian

                        That's great, thanks Ian.

                        All the best
                        Barry M

                        Polar Printer Duet3 Mini + 1HCL
                        https://youtube.com/playlist?list=PLWjZVEdMv1BY82izahK45qKh-hp3NFkix

                        Wanhao D4S: Duet2
                        https://forum.duet3d.com/post/296755

                        Wanhao D5S & K40 Laser, Duet2 TBD
                        https://www.youtube.com/CNCModellerUK

                        1 Reply Last reply Reply Quote 0
                        • rilot
                          rilot last edited by

                          I’m going to be setting up one of the Fysetc displays with a Duet WiFi tomorrow. Thanks for the wiring layout.
                          If I only want display but don’t care about the SD cars I’m assuming I can do without some of the connections. Or are the all required?

                          CNCModeller 1 Reply Last reply Reply Quote 0
                          • CNCModeller
                            CNCModeller @rilot last edited by CNCModeller

                            Hi @rilot I'd appreciate it if you'd kindly update us on how it went.

                            I assume you're going to need the SD +5v connection as a minimum... But I'm only guessing.

                            Mine won't arrive until the weekend 🙂
                            Many thanks
                            Barry M

                            Polar Printer Duet3 Mini + 1HCL
                            https://youtube.com/playlist?list=PLWjZVEdMv1BY82izahK45qKh-hp3NFkix

                            Wanhao D4S: Duet2
                            https://forum.duet3d.com/post/296755

                            Wanhao D5S & K40 Laser, Duet2 TBD
                            https://www.youtube.com/CNCModellerUK

                            1 Reply Last reply Reply Quote 0
                            • rilot
                              rilot last edited by

                              OK, I got it working apart from the backlight. I'm guessing that the DuetWifi doesn't support the NEOPixel RGB. We have a connection for it though in the pinout for connecting the Mini 12864.

                              droftarts 1 Reply Last reply Reply Quote 0
                              • droftarts
                                droftarts administrators @rilot last edited by

                                @rilot can you control it using M150? This from the Duet 3 Mini 5+ section:

                                When using a version 2.1 controller, the colours of the three Neopixel LEDs built into the display can be set using the M150 command with LED type parameter X2.

                                Ian

                                Cartesian bed-slinger with Duet 3 Mini 5+ WiFi : RRP Fisher Delta v1 with Duet 2 Maestro : TronXY X5S with Duet 2 Wifi (in progress)

                                rilot CNCModeller 2 Replies Last reply Reply Quote 0
                                • rilot
                                  rilot @droftarts last edited by

                                  @droftarts I'm using a Duet2Wifi and M150 results in a Command not supported error. This is with 3.2.2

                                  CNCModeller 1 Reply Last reply Reply Quote 0
                                  • CNCModeller
                                    CNCModeller @rilot last edited by

                                    @rilot said in Duet2 ethernet and 12864 display using ST7567:

                                    @droftarts I'm using a Duet2Wifi and M150 results in a Command not supported error. This is with 3.2.2

                                    Same here on Duet Ethernet... no baclight and M150 "Command Not Supported"

                                    At least its working, I can now look at a custom menu set.

                                    I built a little connector conversion board to address custom the loom requirements, see below.

                                    Thanks for the help folks 🙂

                                    Cheers
                                    BPM

                                    12864 Display Connector.jpg

                                    Polar Printer Duet3 Mini + 1HCL
                                    https://youtube.com/playlist?list=PLWjZVEdMv1BY82izahK45qKh-hp3NFkix

                                    Wanhao D4S: Duet2
                                    https://forum.duet3d.com/post/296755

                                    Wanhao D5S & K40 Laser, Duet2 TBD
                                    https://www.youtube.com/CNCModellerUK

                                    1 Reply Last reply Reply Quote 1
                                    • CNCModeller
                                      CNCModeller @droftarts last edited by

                                      @droftarts @dc42

                                      Hi guys, it there any information on @rilot and my issue re Duet Ethernet / WiFi and the 12864 display doesn't have a working backlight and M150 "Command Not Supported".

                                      Any thoughts would be much appreciated.

                                      All the best
                                      Barry M

                                      Polar Printer Duet3 Mini + 1HCL
                                      https://youtube.com/playlist?list=PLWjZVEdMv1BY82izahK45qKh-hp3NFkix

                                      Wanhao D4S: Duet2
                                      https://forum.duet3d.com/post/296755

                                      Wanhao D5S & K40 Laser, Duet2 TBD
                                      https://www.youtube.com/CNCModellerUK

                                      1 Reply Last reply Reply Quote 0
                                      • fulg
                                        fulg last edited by

                                        @cncmodeller M150 is not supported on Duet2 due to lack of memory. There are some details in this thread but it is hard to follow. That thread specifically says V2.1 of the display (the one with a NeoPixel) does not work on Duet2.

                                        I can confirm a Fysetc V1.2 12864 display works on Duet2 with RRF 3.2.2, you just need a custom wiring loom. I have since moved on to a Mini5+ where the V2.1 is natively supported.

                                        VORON V2 CoreXY + Duet3 Mini5+ Ethernet v1.0 with Mini2+ expansion, VORON V0 CoreXY + Duet2 Maestro

                                        CNCModeller o_lampe 2 Replies Last reply Reply Quote 0
                                        • CNCModeller
                                          CNCModeller @fulg last edited by

                                          @fulg said in Duet2 ethernet and 12864 display using ST7567:

                                          @cncmodeller M150 is not supported on Duet2 due to lack of memory. There are some details in this thread but it is hard to follow. That thread specifically says V2.1 of the display (the one with a NeoPixel) does not work on Duet2.

                                          I can confirm a Fysetc V1.2 12864 display works on Duet2 with RRF 3.2.2, you just need a custom wiring loom. I have since moved on to a Mini5+ where the V2.1 is natively supported.

                                          Thanks for the heads up.

                                          As I've got one of the 2.1 displays now, perhaps I can drive the neopixel from a separate Arduino using the neopixel library? I just want a backlight running.

                                          If so do we know which pin is the neopixel data pin? It's not obvious to me from the fysetc page.

                                          http://wiki.fysetc.com/Mini12864_Panel/

                                          Many thanks

                                          Polar Printer Duet3 Mini + 1HCL
                                          https://youtube.com/playlist?list=PLWjZVEdMv1BY82izahK45qKh-hp3NFkix

                                          Wanhao D4S: Duet2
                                          https://forum.duet3d.com/post/296755

                                          Wanhao D5S & K40 Laser, Duet2 TBD
                                          https://www.youtube.com/CNCModellerUK

                                          gloomyandy 1 Reply Last reply Reply Quote 0
                                          • gloomyandy
                                            gloomyandy @CNCModeller last edited by

                                            @cncmodeller The schematic for the display is here: https://github.com/FYSETC/FYSETC-Mini-12864-Panel/blob/master/hardware/V2.1/Mini12864(RGB)V2.1_sch.pdf

                                            Looks like the Neopixel control signal is the "Red" pin 5 on EXP1

                                            CNCModeller 1 Reply Last reply Reply Quote 0
                                            • CNCModeller
                                              CNCModeller @gloomyandy last edited by

                                              @gloomyandy said in Duet2 ethernet and 12864 display using ST7567:

                                              @cncmodeller The schematic for the display is here: https://github.com/FYSETC/FYSETC-Mini-12864-Panel/blob/master/hardware/V2.1/Mini12864(RGB)V2.1_sch.pdf

                                              Looks like the Neopixel control signal is the "Red" pin 5 on EXP1

                                              Thanks @gloomyandy I'll give it a go and report back.

                                              Polar Printer Duet3 Mini + 1HCL
                                              https://youtube.com/playlist?list=PLWjZVEdMv1BY82izahK45qKh-hp3NFkix

                                              Wanhao D4S: Duet2
                                              https://forum.duet3d.com/post/296755

                                              Wanhao D5S & K40 Laser, Duet2 TBD
                                              https://www.youtube.com/CNCModellerUK

                                              1 Reply Last reply Reply Quote 0
                                              • o_lampe
                                                o_lampe @fulg last edited by

                                                @fulg said in Duet2 ethernet and 12864 display using ST7567:

                                                M150 is not supported on Duet2 due to lack of memory

                                                This statement frightens me. I'm planning on writting big(ger) meta command macros for Duet2.
                                                Now I'm afraid they don't fit....or is the Neopixel library so huge?

                                                droftarts 1 Reply Last reply Reply Quote 0
                                                • droftarts
                                                  droftarts administrators @o_lampe last edited by

                                                  @o_lampe it’s running out of flash ROM space for the firmware, not RAM. Your macros should be fine.

                                                  @CNCModeller I have asked @dc42 if he can add Neopixel support to Duet 2; the other forum post suggested he was going to look into it, and I don’t see a reply about lacking memory (though I know it is tight). If it isn’t possible, I’ll update the documentation to say that only boards with single colour backlight (ie v1.2 of Fysetc 12864 LCD) are supported.

                                                  Ian

                                                  Cartesian bed-slinger with Duet 3 Mini 5+ WiFi : RRP Fisher Delta v1 with Duet 2 Maestro : TronXY X5S with Duet 2 Wifi (in progress)

                                                  CNCModeller 1 Reply Last reply Reply Quote 0
                                                  • CNCModeller
                                                    CNCModeller @droftarts last edited by

                                                    @droftarts thanks for the update! It's usable now but not great. I'll hang on for an update from @dc42 but can always fall back on a separate Arduino if required.

                                                    Polar Printer Duet3 Mini + 1HCL
                                                    https://youtube.com/playlist?list=PLWjZVEdMv1BY82izahK45qKh-hp3NFkix

                                                    Wanhao D4S: Duet2
                                                    https://forum.duet3d.com/post/296755

                                                    Wanhao D5S & K40 Laser, Duet2 TBD
                                                    https://www.youtube.com/CNCModellerUK

                                                    rilot 1 Reply Last reply Reply Quote 0
                                                    • rilot
                                                      rilot @CNCModeller last edited by

                                                      @cncmodeller I'm using a seperate Arduino to drive the backlight. Works fine.

                                                      CNCModeller o_lampe 2 Replies Last reply Reply Quote 0
                                                      • First post
                                                        Last post
                                                      Unless otherwise noted, all forum content is licensed under CC-BY-SA