Biggest TFT 7" for Arduino or ESP32 - Parallel Communication

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
this here is the biggest TFT display I have to control directly with an Arduino or maybe an esp32 for example and I say directly because it has an 8-bit parallel input and you could connect that to a microcontroller because of course there are bigger screens on the market such as for example this one that I've used for my smart mirror project with Raspberry Pi but this one comes with a separate driver PCB with an HDMI or VGA input and the Arduino or the esp32 don't usually work with HDMI that's why I say this is the biggest F2 display I have for Arduino and today we learned how to use it so guys let's get started my new project was requiring some flexible pcbs and PCB way was the right solution for that and the order process is so simple just go to pcbway.com and select flexible pcbs upload your Gerber files as always and select your settings directly on their website you also have the option for rigid Flex pcbs if you want and other settings for the color the thickness the gold immersion and so on I received my pcbs in just a couple of days and they look amazing the tracks are very small but even so PCB way did a great job and they have capabilities that go even lower than that and you could check them on their website so try yourself their services for flexible pcbs like mine and like that you can complete your awesome project and check more for other services for prototyping pcbs automatic assembly SMD stencil and much more on pcbway.com what's up my friends welcome back the reason I found this big display is because I'm making the second attempt of making an msla printer remember that with the old project I was using a tiny screen of 128 by 160 pixels and compared with that the new LCD is huge so working on that project between other LCDs that I've tested I found a 3.5 inch display a 4 inch display but also this 7 inch display this would be the size of this display and it works with the sdd 1963 driver the 3.5 inch works with the ili 9341 driver and the 4-inch display works with the St 7796 driver for my msla printer I removed the screen from the module PCB and I've already designed all the needed pcbs and I'm also working on the 3D design of the printed body and I've gone with a 4 inch display instead of the big one because it has an Spa communication so let's start first let's control the big display and later we'll also control the small ones in case that you want to know how these LCD comes as a module meaning that it already has the driver on it it also has an SD card reader and also a touchscreen film on top the module has the spin out for a parallel connection we need to connect the data pins for the input db0 to db7 and also the chip select write reset Rd and rs pins also 5 volts ground and 3.3 volts I won't use the SD card for this screen so I won't connect the card pins so I connected like this to an esp32 for an Arduino Mega I think that you would need a display Shield such as this one from AliExpress which I don't have right now to make the connections I've made this prototyping PCB to control the screen I found this library on GitHub the TFT espi by bodmar this library is great and compatible with all these displays drivers so download it and install it into the Arduino libraries folder to use this Library we first have to open the user setup file and change the parameters for our screen just by uncommenting that part I open the file with Arduino so I can clearly see which part is commented and which is not in the driver section I uncomment the SSD 1963 800 driver you scroll down and come on the spa pins because you won't use SPI now scroll down and here we uncomment the TFT parallel 8-bit mode because we'll use the 8 parallel pins to control the screen then uncomment all these pins for CS DC reset VR and RD and also the pins that I use for the data from 0 to 7. and now save the file in the Arduino IDE make sure that you install the esp32 boards using the link I already have a tutorial on how to do that or if you are using the last Arduino ID version you can directly install them from the board manager then go to example and from the TFT espa Library we open the graphic test select the esp32 dev module board and upload the code and the first try didn't work and I've had this problem for a few hours till I figured out that the ESP that I was using had an error because in the code we are using pin 33 for the cheap select but if you check the pin 33 on this ESP you can see that we have a pin 23. but we have another pin 23 here so I think this was a mistake of some sort so then I've used this other esp32 with fewer pins but at least this one has the PIN 33. so make sure that you use the correct Hardware I've changed the wiring on my prototyping PCB for the new ESP and I uploaded the same code and this time you have better results we can finally see something on the screen some text lines and shapes and screen rotation so this is a success but then I uploaded a PNG example and as you can see we get some sort of noise and some pixels are not okay the poor SpongeBob has some sort of bad pixels to fix this error after some tests I figured out that we need to use the next driver on the list so in the setup file uncomment the SSD 1963 800 alt driver so now the pixels are fixed but the colors are not right because as you can see SpongeBob is blue and it should be yellow right so in the setup file we have this line here that we have to uncomment basically with this we change the red green and blue order now I upload the code once again and success finally we have good pixels and also colors we can also install the JPEG and PNG decoder libraries and print some pictures so this here is another example for some simple pictures another example for some simple pictures and this is another example for different fonts that you can use with this library and screen if you want to use the touchscreen and the SD card you have to connect the spa pins as well for both the SD card and the touchscreen in the setup file Define the spa pins and the Cs pins for the SD card and the other one for the touch driver okay so let's see some more examples from this library but using the 4 inch or the 3.5 inch display which are the ones that I will use with my msle printer for the 4 inch one in the setup file we need to select the sd7796 driver and for the 3.5 inch one we have to select the ili 9480a driver these displays are using SPI connection so we need only a few wires so in the setup file we come on the back the parallel pins then we go and uncommon the SPI pins I've made another prototype board for the spa connections so make sure that you connect the screens like this now I upload the graphic test code and there you go it works but now I've also connected the SD card wires I copy some files to an SD card and these are the files for all the layers for a 3D printed object now I upload this jpeg from SD card example I insert the SD card and as you can see we now bring the JPEG files on the screen so I could now use this display with my msle printer I'm now ready for my project but I wanted to also show you the big screen for my project I'll remove the screen from the module PCB and create my own PCB these flexible pins are the connections for the SPI and I will also remove the backlighting so the screen gets transparent so stay tuned for that project it should be awesome by the way the smaller screens also have an option for a touch screen but I've ordered them without because for the msle printer I need to remove all the layers and make it transparent so guys I hope that you have learned something new about DFT screens if so give me a like or comment below thanks again and see you later guys so guys here I am in my workshop another video that ended I hope that you like it and the most important part I hope that you have learned something new anyway I just wanted to give a thank you to all my patrons to you guys to the viewers who are supporting me liking my content sharing it commenting below just check my website check my shop check my t-shirts all this kind of stuff will support my channel so thank you very much once again
Info
Channel: Electronoobs
Views: 51,536
Rating: undefined out of 5
Keywords:
Id: ZjPZcyIQFhw
Channel Id: undefined
Length: 10min 15sec (615 seconds)
Published: Sun Sep 17 2023
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.