ST7735S based LCD Display for Arduino - How to get it working

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
you hey what's happening guys I thought today we would take a look at this little display here this is pretty tiny as you can tell it's point nine six inch it uses the esti seven seven three 5s display driver and as you can see it's full color we are looking at eighty by a hundred and sixty pixels and don't look at this and see s cos da and think it's I squared to see it's not it is a it is SPI only they haven't implemented any I square C on this breakout just yet now I'm gonna put a link down below to the datasheet and the Arduino libraries but there's one thing you have to ignore if you try and run this at 3.3 volts as they tell you it's not gonna work I don't know what exactly they've done I believe this is a little voltage regulator here can't quite tell cuz I can't read it is too small but it only works correctly at 5 volts so it is good straight through for any of your Arduino projects now the ones we're looking at today are from Amazon and that's not the only place you can get them they are also advertised from a company called buy display calm which is a Chinese seller I don't know anything about the ones from buy display but I am assuming they're the same because here is our pictures from the Amazon ones and you get two of them for the 17 dollars okay now let me go and grab the other website for buy display hold on here's the buy displayed calm website and here is the same board and if we look at the back picture here well there we go g3y dope j3y is just a transistor so I don't know anyway but the backs look the same as we look at this one and then we can look at the not that look at that one yeah they look the same so I don't know if they're the same or not and yes it is a your own button again it is cheaper to get them here at 467 about half price yeah your choice but you know you're gonna wait a month to get these so and if they don't work you're kind of out of luck with Amazon you know you can always return them so here is the interfacing diagram it's really simple s clock goes to 13 SDA goes to 11 reset goes to 8 DC goes to 9 and chip select goes to 10 that's really all there is to it now find the right one again here okay so here's the datasheet and it is the ER - TFT M 0.96 - one from east rising is the name of the company and if we roll down here through all this lovely stuff you nor is it at where's it at where's it at there are our interface pins but we want is electrical characteristic is telling us power supply voltage is a maximum of 3.3 volts but I'll show you it at 3.3 volts and it really just doesn't work it works perfectly though at 5 volts so let's go back over the board and take a look here it is running on a nano at 3.3 volts and you can see there's like artifacts in the display and it's just absolutely come on my power supply is turning off there we go it just doesn't look right right I was wondering if it maybe it was you know because even though I'm running at a 3.3 volts you know VCC with we have the 5 volt logic here but that is just not the case how do I know that well let's swap this over here to 5 volts go in there there we go then I can power it back up and at 5 volts it is perfectly clean clear and crisp not a problem at all that looks good so that is it running on the Nano here is it running on a new dough there you can see hooked up to the older though and we can actually bring them both in here you see them both running there so it runs on the Nano and the uno equally well even though it doesn't say in the datasheet that it will run from banana runs perfectly fine off of the Nana here you can see the wiring is really simple we're just using a 13 11 10 9 and 8 pin 13 is s clock pin 11 is data pardon me pin 10 is chip select pin 9 is DC data command and pin 8 is our reset pin we're not using the backlight pin I don't know if this particular library doesn't support it but I mean you don't really need it with a TFT anyway it looks pretty good so let's talk about how to set it up in the Arduino IDE it is pretty simple alright so here's the code I used to set this up and you see it's really simple and I'll put a link to it down below so we start out with 4 libraries we have the u TFT which is to drive the display we have our I squared C which we need for the BM e sensor we have this Adafruit Master sensor library which I have tweaked and also the BM e2 80 library from Adafruit I have tweaked these so that they output a string like for temperature says temperature : then the value and then for you know Fahrenheit in my case I just got tired of doing everything in every program so I adjusted the library if you decide to run this on yours it's not gonna work that way but uh that's where we're at right now okay so then we set small front it has small font and a big font so we're just using small fonts then we're going to set our sea-level pressure here you can just look it up online here comes a guy to weed eat around the house always when I'm doing a video lovely then we're going to initialize the TFT called my G LCD using the driver with the pins eleven thirteen ten eight nine like we talked about we're also going to initialize the BM e to eighty then down here in our setup we will begin the LCD we will set the font size we will begin the BM e sensor down here we'll get our values again you can't use these as strings if you don't have my tweak libraries which I'm not making available because I'm not out of them they are horrible horrible examples of programming I am NOT a programmer then we're going to clear the screen we're going to fill the screen with black we're gonna set our first our front color as red and then on the next line sorry had to scratch my ear we're going to draw a filled round rect able to tangle so it's a rectangle with round corners it begins at ten comma seventeen towards the upper left and ends at one forty nine comma 72 towards the lower right then we're gonna set our our font color to white our background color to red and we're going to print the temperature and it's going to be centered on line twenty then we're going to set our color to green background still a red we're going to print our pressure it will be centered on line 45 then we're going to set our color to blue background still red and we're going to print our humidity centered on line 57 actually yeah let's leave it there so that's it we wait five seconds and we do it all again let's go take a look so there's our setup you can see how easy it is we've got VCC going to 5 volts ground goes to ground our clock goes to SCO our data goes to SDA plug her in here we clear the screen hello McFly draw a rectangle and put our values on there and that looks kind of purple but that's it is that is blue white green red I know I'm not very well lined up there but I think it's good enough for this demo to show you what can be done with this little TFT LCD pretty neat I know I realized it's more expensive than your standard little OLED this size but 65,000 colors and completely graph is capable and it even has onboard RAM so it can store some stuff so it's it's probably worth a little bit more money it's up to you to decide how much it's worth I'm just here to show you stuff so there'll be links down below to everything we talked about that's about it for this if you guys enjoyed it give me a thumbs up feel free to comment share and don't forget to subscribe big thanks to all my patrons big thanks to you guys for watching that's it I'm out peace [Music]
Info
Channel: learnelectronics
Views: 24,584
Rating: undefined out of 5
Keywords: ST7735S based LCD Display for Arduino - How to get it working, st7735, st7735s, tft lcd, st7735 arduino, st7735s arduino, st7735 library, st7735s library, .96 tft lcd, .96 tft lcd ardiono
Id: 7iVrj4m3drw
Channel Id: undefined
Length: 12min 1sec (721 seconds)
Published: Sun Oct 06 2019
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.