• Tags
  • Documentation
  • Order
  • Register
  • Login
Duet3D Logo Duet3D
  • Tags
  • Documentation
  • Order
  • Register
  • Login

Logic Level shifter for 12864 display on Duet 2 Wifi

Scheduled Pinned Locked Moved
Duet Hardware and wiring
11
200
16.5k
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.
  • undefined
    antlob @A Former User
    last edited by 8 Jun 2020, 08:52

    @bearer I solved, not in a fancy way but it works. Many thanks!

    1 Reply Last reply Reply Quote 0
    • ?
      A Former User
      last edited by 8 Jun 2020, 09:07

      Not sure I quite followed you there, but sounds like the rrf3 binary may have been built before i swapped the two pins

      undefined 1 Reply Last reply 8 Jun 2020, 09:27 Reply Quote 0
      • undefined
        antlob @A Former User
        last edited by 8 Jun 2020, 09:27

        @bearer I think so and it makes sense since the patch says v2.05. The funny thing is that when I uploaded v2.05 the encoder switch didn't work also, maybe was bad wiring from my part, since I'm on a breadboard.

        Just tested the SD card and works perfect, remembered I had another in an old phone.

        I will solder now and make the wires. Again, many thanks guys. @bearer or @oliof if in the future you want my schematic (the change I made from @bearer's) I'll post it.

        1 Reply Last reply Reply Quote 0
        • undefined
          oliof
          last edited by 8 Jun 2020, 14:47

          Please post what you have (-;

          <>RatRig V-Minion Fly Super5Pro RRF<> V-Core 3.1 IDEX k*****r <> RatRig V-Minion SKR 2 Marlin<>

          undefined 1 Reply Last reply 10 Jun 2020, 13:49 Reply Quote 0
          • undefined
            antlob @oliof
            last edited by antlob 6 Oct 2020, 13:50 10 Jun 2020, 13:49

            @oliof Sorry for taking so long to reply. Couldn't make some time until today to return to this personal project. The change I made from @bearer schematic is ENC_SW and LCD_CS pins, below the image with the changes. I think this could only work for @bearer's RRF3 https://www.dropbox.com/s/f7fjuu7f0wcf7dc/Duet2CombinedFirmware-rrf3-lcd.bin?dl=1.
            SCHEMATIC_CLD1864_DUET_2.png
            The only issue I find is that when accesing the SD card on the LCD12864 some lines appear on the display and have to clean them by manually entering M918 P1, even make a macro to just run it.
            I'll be looking regurlarly at this posts in case anyone needs help or when @dc42 uploads his 3.2 version. See you guys around and again many thanks to everyone!

            1 Reply Last reply Reply Quote 1
            • undefined
              oliof
              last edited by 10 Jun 2020, 13:51

              If you get artifacts when accessing the SD card slot, it's likely noise on the SPI connection. Try shielded it at least twisted cables.

              <>RatRig V-Minion Fly Super5Pro RRF<> V-Core 3.1 IDEX k*****r <> RatRig V-Minion SKR 2 Marlin<>

              undefined 1 Reply Last reply 10 Jun 2020, 15:26 Reply Quote 0
              • undefined
                antlob @oliof
                last edited by 10 Jun 2020, 15:26

                @oliof OK, thanks for the tip! Surely is that now that you mention it. I did the circuit soldering wire graps and the rest is ribbon cable unshielded.

                undefined 1 Reply Last reply 7 Oct 2020, 06:39 Reply Quote 0
                • undefined
                  seraser @antlob
                  last edited by seraser 10 Jul 2020, 06:42 7 Oct 2020, 06:39

                  Tested 12864 fysetc mini in beta 3.2.2 duetwifi and dont work @dc42 connected as you sugested in previous post, M122 dont report error.

                  Try P1 and P2 with M918 and dont work.

                  undefined 1 Reply Last reply 7 Oct 2020, 14:23 Reply Quote 0
                  • undefined
                    Schmart @seraser
                    last edited by 7 Oct 2020, 14:23

                    @seraser said in Logic Level shifter for 12864 display on Duet 2 Wifi:

                    Tested 12864 fysetc mini in beta 3.2.2 duetwifi and dont work @dc42 connected as you sugested in previous post, M122 dont report error.

                    Try P1 and P2 with M918 and dont work.

                    Please post your exact config line for the M918 command.

                    1. I'm not sure of the Duet Wifi situation and what display support it currently includes. Did you build the firmware yourself?
                    2. P2 is definitely the display type you want.
                    3. If you are sure of the electrical connections, logical levels and voltage levels, then trying R6 for the resistor ratio and playing around with the C parameter (contrast 0-100) could work.
                    4. Perhaps starting with a slow SPI frequency (F parameter) also helps.

                    So something like M918 P2 R6 C60 F200000 may just work.

                    Creality CR-20 Pro with a Duet 2 Maestro, 3Dfused X+Z-axis rail kit, HIWIN-based DIY solution for the Y-axis, E3D Hemera, working ST7565 MiniPanel and various other small hardware improvements.

                    undefined 1 Reply Last reply 7 Oct 2020, 15:34 Reply Quote 0
                    • undefined
                      seraser @Schmart
                      last edited by 7 Oct 2020, 15:34

                      @Schmart thank you for your response.

                      Changelog of 3.2 beta 2 says:

                      Supports ST7567-based 12864 displays on Duet Maestro and Duet WiFi (thanks to SchmartMaker for writing the ST7567 driver code)

                      So Im testing with 2.1 and 1.2 versión of fysetc mini 12864 with the pin asignement by @dc42, exp1 of mini to LCD exp in duet and exp2 mini to sd exp of duet, direct conection.

                      But something is not good, not work with your M918 line and if I rotate the encoder duet restart, maybe shorcut, with two LCDs.

                      1 Reply Last reply Reply Quote 0
                      • undefined
                        oliof
                        last edited by 7 Oct 2020, 17:46

                        If the encoder turning causes a reset, the wires might be turned 180 degrees.

                        <>RatRig V-Minion Fly Super5Pro RRF<> V-Core 3.1 IDEX k*****r <> RatRig V-Minion SKR 2 Marlin<>

                        undefined undefined 2 Replies Last reply 7 Oct 2020, 18:16 Reply Quote 0
                        • undefined
                          seraser @oliof
                          last edited by 7 Oct 2020, 18:16

                          @oliof I used dc42 pin asignement.

                          1 Reply Last reply Reply Quote 0
                          • undefined
                            Schmart @oliof
                            last edited by Schmart 10 Aug 2020, 14:54 8 Oct 2020, 14:54

                            @oliof said in Logic Level shifter for 12864 display on Duet 2 Wifi:

                            If the encoder turning causes a reset, the wires might be turned 180 degrees.

                            Oliof might be right. Just to rule out a wiring problem, can you provide a photo of the connections you made between the display and the mainboard so we can check?

                            You may have done so already, but for troubleshooting purposes, I would also suggest to only connect the wires that are absolutely necessary for a working display.

                            Just checked the source code and the pin mapping that David mentioned hasn't changed. You compiled the firmware yourself with #define SUPPORT_12864_LCD?

                            The only change made to the source code recently was to the default contrast (changed to C30) for a ST7565 display. I believe David has used the Fysetc Mini12864 display to test the code with, so the default settings for the P2 display type should be already optimized for that model.

                            Creality CR-20 Pro with a Duet 2 Maestro, 3Dfused X+Z-axis rail kit, HIWIN-based DIY solution for the Y-axis, E3D Hemera, working ST7565 MiniPanel and various other small hardware improvements.

                            undefined 1 Reply Last reply 8 Oct 2020, 15:42 Reply Quote 0
                            • undefined
                              seraser @Schmart
                              last edited by seraser 10 Aug 2020, 16:17 8 Oct 2020, 15:42

                              @Schmart Firmware is 3.2beta2, public, not compiled for me.

                              Wiring is simple, exp1 of lcd to explcd on duet and exp2 of lcd to expsd on duet, checked pin asignement but maybe I miss some thing.

                              With fysetc mini v1.2 backlight and leds light but with fysetc v2.1 nothing light and with both displays rotate the encoder result restart.

                              duet_fysetc.jpg

                              From github sources:

                              pins_define.JPG

                              Pinout fysetc:

                              fysetc_pinout.JPG

                              Edit:

                              My bad, checked under board pinout and my wiring is bad for bad initial comprension, I will redo the wiring with board pinout, sorry my bad english Im spanish.

                              board.jpg

                              undefined 1 Reply Last reply 8 Oct 2020, 16:42 Reply Quote 0
                              • undefined
                                Schmart @seraser
                                last edited by 8 Oct 2020, 16:42

                                @seraser, yes, I think the one-to-one pin mapping of standard ribbon cables will not cut it in this case. For this purpose, I made a custom cable using Dupont connectors and twisted wires from a UTP cable (not solid core but the stranded kind).

                                Pinouts for your board are also here BTW.

                                Creality CR-20 Pro with a Duet 2 Maestro, 3Dfused X+Z-axis rail kit, HIWIN-based DIY solution for the Y-axis, E3D Hemera, working ST7565 MiniPanel and various other small hardware improvements.

                                1 Reply Last reply Reply Quote 0
                                • undefined
                                  seraser
                                  last edited by seraser 10 Sept 2020, 17:20 9 Oct 2020, 16:48

                                  @Schmart doesn't work, conected from connlcd2 to connlcd10 and supply 5v and only light with 1.2 version and no lights with 2.1 version tested with many M918 P2 configs.

                                  I will test both LCD with ramps and if work ok I will stop because best choice is wait other guy trying.

                                  Best regards.

                                  1 Reply Last reply Reply Quote 0
                                  • dc42undefined
                                    dc42 administrators
                                    last edited by 9 Oct 2020, 16:52

                                    The version 2.1 Fysetc display won't work on the Duet WiFi (yet) because RRF for Duet 2 doesn't support the Neopixel backlight.

                                    I will investigate the other problem with ST7567-based 12864 display and Duet 2.

                                    Duet WiFi hardware designer and firmware engineer
                                    Please do not ask me for Duet support via PM or email, use the forum
                                    http://www.escher3d.com, https://miscsolutions.wordpress.com

                                    undefined 1 Reply Last reply 9 Oct 2020, 17:19 Reply Quote 0
                                    • undefined
                                      seraser @dc42
                                      last edited by 9 Oct 2020, 17:19

                                      @dc42 Ok, thank you very much.

                                      1 Reply Last reply Reply Quote 0
                                      • undefined
                                        pixelpieper
                                        last edited by pixelpieper 10 Sept 2020, 22:02 9 Oct 2020, 21:49

                                        I am trying to get the Mini 12864 working with my maestro, but it seems like I may have gotten the pinout wrong - the display lights up, but does not show anything... - is the final pinout somewhere documented?

                                        I tried to follow the Maestro side identically to this post from Schmart i.e. Exp0 -> A0, Exp1 ->CS, remaining SPI pins from the EXP1 connector. For the display I followed the pinout from github. My config.g contains "M918 P2 E2". Issuing M112 yields "RepRapFirmware for Duet 2 Maestro version 3.2-beta2 running on Duet Maestro 1.0"

                                        Did I miss anything?

                                        IMG_7934.jpg

                                        Voron V2.434 / Duet 3 Mini5+, Duet 3 Expansion Mini 2+, Duet 1LC V1.1 Toolboard
                                        Voron V0.250 / Duet 2 Maestro

                                        ? 1 Reply Last reply 9 Oct 2020, 22:19 Reply Quote 0
                                        • ?
                                          A Former User @pixelpieper
                                          last edited by 9 Oct 2020, 22:19

                                          @pixelpieper said in Logic Level shifter for 12864 display on Duet 2 Wifi:

                                          , but does not show anything...

                                          you have added menu files to the sd card?

                                          is the final pinout somewhere documented?

                                          best source will always be the source on github / Pins_DuetNG.h for the version in question

                                          undefined 1 Reply Last reply 9 Oct 2020, 22:27 Reply Quote 0
                                          • First post
                                            Last post
                                          Unless otherwise noted, all forum content is licensed under CC-BY-SA