Logic Level shifter for 12864 display on Duet 2 Wifi
-
(will re-do to try and match the stuff dc42 did, got some 7408 today, still trying to get some alcohol for cleaning so i can make a board though)
-
@antlob said in Logic Level shifter for 12864 display on Duet 2 Wifi:
@dc42 Can you please confirm if that wire arrangement ( https://forum.duet3d.com/post/157139.) will work not only for the MINI LCD 12864 but also for a standart LCD 12864, mine is a BigtreeTech. Many thanks! If that's the case from lines 11 to 17 I must connect them only if I want the LCD 12864 SD Card support, right? If I prefer the one on the panel due I only need to connect the LCD 12864 to ConnLCD on the Duet 2 Wifi, right?
You need pins from both CONN_LCD and CONN_SD to make both the LCD and the encoder and buzzer working. It is shown on the schematic.
@antlob said in Logic Level shifter for 12864 display on Duet 2 Wifi:
@bearer uploaded his *.bin file
the RRF3 binary have had the hang printer support removed to fit the LCD code.
I'm currently waiting to see what the status is when dc42 is done, to possibly redo the schematic and board to match a similar pinout and adjust the patch. However if the ST7920 support is being dropped in favour of the 756x then I'll probably just get a new display instead.
-
@bearer Many thanks! Just to be sure, this is the schematic I should connect, right? (without the swapping).
-
@antlob think so, but probably easier to reference the stuff we published at https://easyeda.com/oliof/duet2wifi-lcd12864-adapter (it should at least be in sync with the attached patch)
-
@bearer Perfect! I'll give it a try later today.
-
@bearer Didn't work, I get a blank screen, it turns on but is blue, nothing else, is the same as to give it 5v and ground.
What I did was to use the Duet2CombinedFirmware-rrf3-lcd.bin file and update the firmware with it.
I saw that attached you had this file lcd12864rrf2.patch. Should I upload it in the Display menu in the DWC? Also, the patch says RRF2 so Will it work on RRF3?
Sorry for having so many questions.
-
@antlob said in Logic Level shifter for 12864 display on Duet 2 Wifi:
I saw that attached you had this file lcd12864rrf2.patch
no that is for applying to the 2.05.1 source code to build it yourself.
Didn't work, I get a blank screen, it turns on but is blue, nothing else, is the same as to give it 5v and ground.
you have uploaded a set of menu files? (its kinda like batteries .. not included)
-
@antlob did you enable and configure the display with M918 in your config.g as well?
-
@bearer OK, so the menus are uploaded manually ... OK. So, if I don't have one I get a blank display? Finally could open the patch and saw that it is a library to compile, how silly of me. Do you know where can I find an example of a menu for LCD12864? Many thanks!
-
-
@Schmart Yes, actually rereading all the threads and a message you sent about the use of M918, in my case I put M918 P1 E4 F2000000, since my display is a 12864 with a ST7920. But maybe all my problem is that I don't have a menu and therefore there's nothing to show, rigth?
-
@bearer OK, so I just upload them and that's it?
-
@bearer Did a little reading on the links you sent me, used this one https://github.com/jadonmmiller/UltimateDuetMenuSystem/releases follow the instructions and a funny thing happened. When uploading the Zip file from the display menu in DWC and rebooted everything stopped working. I took out the SD card and it turns out that all the /sys directory was written with the menu files it erased the existing files and on the /menu directory was nothing. Luckily had a backup so arranged everything and put the menu files in their corresponding directory but still can't make the LCD12684 to work. Have even rewired everything just in case and the result the same. Maybe is the firmware I'm using is the one you gave me the link https://www.dropbox.com/s/f7fjuu7f0wcf7dc/Duet2CombinedFirmware-rrf3-lcd.bin?dl=1. Don't know what else to do.
-
@antlob i never had any success with uploading macros or menu files through dwc, but erasing existing files is new, sounds like an issue with dwc.
i didn't do anything but M918 P1 E2, put the files in /menu, wired according to the schematic and the firmware with the patch. seems to work for me and others before me so odds are you've missed a step or your display has a different pinout to the reprap smart grpahics controller.
-
@antlob even without menu files, if you do a firmware upgrade from DWC, a message "Upgrading firmware..." should be shown on the display (providing the firmware was compiled with the correct font set).
If no text appears during a firmware upgrade, other than pinout, it could be one of the issues from this post as well, mentioning the contrast trimpot and such.
I didn't read back this entire thread, but have you seen the display working correctly before?
-
@bearer @Schmart First of all sorry for not replying until today, yesterday couldn't find time to continue. I know I say it everytime I write but I'm really grateful for all the help you've given me so far, without you gys I counldn't by any change connect the display.
I think that I've read in diagonal all the posts about this LCD and all the suggested help you adviced, even a guide to connect the Ender 3 to Duet Maestro. Since I was running RRF 3.1.1 and then installed @bearer RRF 3.0 I thought that maybe I needed to wipe and do a clean install. What I did was:
- Erase the Duet
- Using BOSSA uploaded the @bearer firmware version 2.05
- Downloaded this menu https://github.com/mudcruzr/Duet-Maestro-12864-Menu-Files
- Copy again all the sys and rest of menus
What happened?
- The same issue but in a thread of another post @dc42 suggested to another person put in the terminal M918 P1 and then voilà the display worked. The funny thing is that in my config file at the end was the M918 P1 E-4 F2000000. What I did was take out the frequency parameter and the display worked.
- On DWC the menu tab was not displayed.
- The encoder works but cannot select anything, the press doesn't do anything.
Then I erased the Duet again and did a clean install of @bearer RRF 3.0. And have the following issues:
- On reboot the display is blank (is lighted but with no text on the matrix).
- I have to manually type M918 P1 E-4 and then the display works
- The encoder works but can't select anything, nothing happens when I press the encoder button.
- The display show correctly the temps, coordinates.
- In DWC now I have the menu tab
My thoughts about my issues are the following:
- The encoder press must have a command or something that I'm missing in the menus since they were made for a Duet Maestro. I know I have to dig in every menu file to adapt it to my Duet 2 Wifi.
- I can't understand why in my config.g the M918 doesn't work
What I haven't find yet is if there's a guide to create menus and the usage of encoder. Could you give me a little assistance please?
-
@antlob said in Logic Level shifter for 12864 display on Duet 2 Wifi:
Then I erased the Duet again and did a clean install of @bearer RRF 3.0. And have the following issues:
On reboot the display is blank (is lighted but with no text on the matrix).
I have to manually type M918 P1 E-4 and then the display works
The encoder works but can't select anything, nothing happens when I press the encoder button.
The display show correctly the temps, coordinates.
In DWC now I have the menu tabwould suggest one of us messed up the enc_sw connection and/or code. i didn't explicitly test the encoder as i won't use it, however its a simple normally open switch to ground, just like enc_a/b. starting to look like i won't revisit this for a couple of weeks (one handed bandit for a while)
-
@bearer said in Logic Level shifter for 12864 display on Duet 2 Wifi:
one handed bandit for a while
Sorry @bearer, since I'm from Spain and not a native English speaker don't understand the "one handad bandit for a while". Do you have, by any chance, the master of your fork so maybe I can dig a little bit and try to find out why the encoder's push button does not work?
-
(temporarily disabled hand, so only one working hand left for a while)
anyways its all in the thread, i haven't forked the code
https://forum.duet3d.com/post/147841
https://forum.duet3d.com/post/147937 -
@bearer OK, hope you get better!