Arduino Tutorial: Using the ST7735 1.8" Color TFT Display with Arduino.
Вставка
- Опубліковано 3 жов 2024
- The ST7735 1.8" color TFT display is a great little display to use with you Arduino projects. It works on every Arduino board, like the Arduino Uno, the Arduino Nano, the Arduino Mega and the Arduino Due.
The resolution of the display is 160x128 pixels and on the back of the module one can find an SD card module! Great! I am really impressed with this display. I am going to use it a lot from now on!
The cost of the display is very low. It costs around 5$! It is impressive.
Want to learn to code?
👨💻 Check my new UA-cam channel: bit.ly/3tku2n0
Dude I really like your videos. It is simple and straight forward none of the jibber jabber and wasting of time. Thank you, will subscribe and pass the word on! Rock on bro.
Great Video. Very easy to follow and with slight connection changes and pin number changes to the code, I was able to run this on MEGA 2560 board all within 1 hr. Thanks a lot for your effort in making this video.
This is the best video I've seen so far about this kind of screen, thank u
Thank you for the video. I need a display to plot a simple map for a crazy lawn project and this'll do nicely. I just ordered it.
Great video as always. Very nice little display and very well explained. Cheers!
+Eric William -MKme Tech Thanks Eric, it is a nice display if we want to display some color! Cheers!
Temperature controller would be a nice project with upper and lower set points and relay output for my workshop heater thanks, Bob I love your explanation and detail
i have watched a lot of your videos you do a great job explaining things thank you
Thank you for the video.
Note: Does say on the website you should have a 5 ohm resistor on the 3.3V supply as the recommended backlight power supply is no more then 3.2V (or 25 ohm if running from 5v)
Nick, followed this 15th February 2018 and can confirm it all works exactly as in this video
Thank you for helping us all here, your videos are concise, accurate and easy to follow!
fyi I tried running VCC at 3.3V just in case, but it did not work, VCC has to be 5V :((
I got it working on 3.3V
Nice! I like that display better than the other one because of the color! :-)
+Dog Rox Thanks! More to come :-)
*It will be great display for multiple wireless temperature/humidity sensors.*
Like one in Living room, one in Kitchen ... and able to view it all from central location.
Great video btw.
+Robert S. Yes, some wireless modules are coming from China already!
Gut, multiple wireless sensors displayed on one sreen - will be great! Also it will be good to be reliable (the wireless transfer(means not to send/receive any bad data))
+Robert S. Since it is the first time I go wireless with Arduino it will take me some time to figure everything out. If you have any experience, feel free to share it with the community!
+Educ8s.com Well, I think that You are better in figuring stuff out than me :)
I had to add series resistors (1k) to all data connections to get mine to work. I am using a 5V Nano. I have the supply connected to 5V and the backlight connected to 3.3V.
True that. It works without them sometimes too but datasheets found online say data should run at 3.3V so use resistors or level shifter otherwise you can damage the LCD, I imagine.
3:46 "If this is your first time here, I would love to have you subscribed..."
Thank you, good Sir; I will subs right away 😃
I love ur vids they are easy to follow and I have the best results using ur tutorials, I would like to see a signal generator project with a ad9850 DDs and a 16/2 LCD if u could, plenty on UA-cam but they never well made vids that are easy to follow or get the codes. Cheers from a regular viewer😀
+Glynn H Thank you very much! I will try to do it, but I can't promise anything..
Built an Arduino birthday clock 18 months ago for the kids in Thailand using a 3132 RTC, Arduino pro mini, and a 1602 I2C LCD display....it looks at an array of names and birthday dates and if the date matches, it displays name of the person, flashes an LED 4 times every minute or so. One can also push a button and have the unit scan through and display all the names, one at a time, with their birthday date if one forgets. Only problem......most people there cannot read the display (English) and there doesn't appear to be any Thai text library for Arduino. Well, not without generating my own text symbols and that would be limited anyhow.
Idea now is to use your TFT display and , as above, display their photo when the birthday arrives. Possibly have a similar button arrangement for display their birthday date which would need modifying to allow for Thai year ( common era plus 543)...any ideas??
Can you make a fpv system using OV7670, nrf24l01 and this display module
It's a challenge, a fun and hard one. lol
Just want to let you know that in your connection diagram you have pins 8 and 9 reversed for the adafruit example.
I do the same things but my screen stays white does not show other things.
Hi, Your JP1 is shorted and You are using 5V. What about this ?? :
"If you use 3.3V, please short JP1. If you use 5V, you must open JP1, or LCD will be broken" - from manufacturer site
what would be the pin layout for wemos d1? it basically doesnt have any pin 11-13, but those are somehow predefined in the code?
Hi Nick
I like your channel.
Thank you for the nice ideas.
I have a nice idea , what you can build in the future with this display:
A post mail notifier with two Wemos D1 minis.
One is buildin the post box with a mircoswitch und a lipo batterie, wemos d1 is on deep sleep.
When the lit form the post box is opened, the wemos d1 wakes up and send a message the the second wemos d1 mini with this diplay connected.
On the Display is written: you have a mail in your postbox.
When you got the mail from the post box, the status must set to no mail in the box.
Greatings from Germany
Ernie
How can I connect this TFT type with node MCU 8266.
I have the arduino uno r3. I have this screen and hooked it up like yours.
I have a personal project I'm working on." 790s head" from an old tv show called Lexx. I have printed the head. Now to program the eyes or 1 eye as is in the tv show. Would coding like this be possible. To mimick the robots eyes from the show?
Is this a touch screen ? Anyway very detailed tutorial
Эдуард Гильмутдинов is it a touch screen?
Nice video! can I use the bitmap thingy and the LCD assistant on this LCD Display??
Great video! Can you I different pins for the display? I have a shield plugged in that uses D7, D8, and D9. Can I change the pins used with this screen to avoid conflicts?
Thx for LED pin. I don't known how to backlight on.
How expert are you with it? Do u thin you could get it to draw up specific pictures of scenarious - for ex. if I program a humanoid robot that thinks or is automated to draw up scenarios to take a snap shot of the image it comes up with could you do it? And number 2 this would be a continuous function also. For ex. it would be automated to draw images continuously according to a program. New images. ??? And anyone reading this who thinks they can and would like to discuss a humanoid robotic project hit this up. Thx!
the code was not download sir,please check it ,thanks
Is this a touch screen ? Anyway very detailed tutorial
no
The adafruit library is not working for my st7735 display.
Great video !! I am following this and your Clock and Temperature w Arduino video to do that project. I have one question please. The Banggood site you reference for the 1.8 Inch 128x160 SPI Serial TFT LCD Display Module explicitly says to use 3.3 V on all data pins and VCC and even less (3.2 V) on the backlight pin (LED Pin). But it looks like you are using 5 V data connections directly from the Arduino pins and a 5 V VCC as well as 3.3 V for backlight !! Have you noticed any failures or other problems with this? Why isn't that burning out your LCD display module ? Thanks for your response - and your videos !! -- Don
+Donald Filbert Hello Donald, thanks for the comment. So far I had no problem at all! It works fine!
My ST7735 1.8" SPI TFT arrived - but the pins are marked differently, the last 3 connections are not there - instead I have DIN, CLK, BL I am missing SDA, SCK, LED any ideas?
Hi! Thanks for the great video. I have a question! Is it possible to stop the flickering of numbers when updating variables?
I had a same question! :(
Could you post a video regarding a menu implementation on this display?
Great video thank you. I am using a 6 channel relay with my Arduino, is it possible for the display to show the relays and perhaps flash when they are active..?
any help would be appreciated..
Very good video explaining in detail even for newbies like me. I fixed the project but when it comes to the end it shows the media buttons all the time .One has to press the reset button of the board in order to start the "show".Is it possible to do that through the sketch ?
put the code in loop rather than in setup
Hello Sir, do you think you can do a predator countdown Timer with the alien symbols like in the movie (end scene predator 1). That would be awesome! Greetings from germany
Why some other youtubes suggested buying a shield for TFT LCD?
Also my pins layout is VCC, GND,NC, NC, NC, CLK, SDA,RS,RST,CS. Is this the same TFT Module?
Hey Paul, could you connect the module?
I have the same problem
@@jonathanramirezolvera5858 I already fixed the problem. Now I can use both screen and sd card at the same time. There is still a problem that prevents my TFT from using some libraries. My screen turns white if i use other libraries.
Basically, I can use only this this generic library -> www.arduino.cc/en/Reference/TFTLibrary.
Does your TFT have the same pin layout?
@@jumbo999614 thanks bro I watched this video to conect my tft:
ua-cam.com/video/1K2CYmb3YqA/v-deo.html
And now I going to play with the fuctions that you gave me
@@jonathanramirezolvera5858 Yeah, the link to the video shows exact TFT module that I have. By the way, the TFT library that I use in my code has some bugs. Instead of RGB color, I have BGR. Blue and Red are swapped. For example, if you want blue, you have to write code like this rgb(255,0,0) which normally gives you red color.
Hi sir,
I hope if you make video about how can I get video from sd card using arduino Then I can display this video using buttom
this will give some error with the new library:
"error: 'class Adafruit_ST7735' has no member named 'Color565' "
and to fix it, you just need to change all "Color565" to "color565" in the code....
Hi, I would like to use this with arduino uno or mega 2560 to build a clock with temperatur, could you make a video with that? Great videos
Hello - Do you happen to have a datasheet or specification for the board you are using please?
Also my pins layout is VCC, GND,NC, NC, NC, CLK, SDA,RS,RST,CS. Is this the same TFT Module?
hi. thank you for nice video.
can you please display value from variable resistor like 10K.
but the important thing is screen should be stable.i mean when you write the new value from variable resistor during this time screen should not be flicker.
Great vid!
My screen is identical except that I have 9 pins and not 8! They are as follows
1. VCC 2. GND 3. CS 4. RESET
5. D/C 6. SDI (MOSI) 7. SCK 8. LED 9. SDO (MISO)
What about the connections to the Arduino then? And, what about the libraries, can they still be used? It says that those TFT libraries are retired.
And what about hard flickering?
Unfortunately it is out of date
Sağolasın kardeşşş sayende yaptım +helal tenks gülüm.
hello! I would like to use it with Ableton Live 10. what I want to get is feedback to what device I'm using. i.e. compressor, eq8, effects rack, etc. the goal is to compliment a 4 potentiometer device I already have with Arduino UNO
Hello, How did you perform landscape view for this screen? Like I saw in 2:25
How do get the ST7735 to scan left to right instead of top to bottom?
Does this work with the breadboard Arduino with only the chip and the other capacitors and clocks?
Anyone know how to get around the 3.3v led requirement? My custom pcb won't have 3.3v.
You can add ds3231 and dht22
When this boots, will it always have to go through the "Arduino Start-up screen"? :/
no, you can program your own stuff
Is this a touch screen?
Can you make this mini screen for video playback?
I am getting adafruit errors in the cpp file. I tied all versions of the library but no luck?
can i re program the color of icon in my samsung keystone 3?
Can I use nokia 5200 display with Arduino
Very good. I could understand how to do this. Please tell me if I can write code to convert integer inputs (e.g. LM35 temperature data) to pixel coordinates for real-time graph of temperature over 1 full day?
+Cambria399 I found a good example program in the arduino IDE example menu. TFTgraph. Thanks again for your tutorial. I will subscribe
hi can u help me on connecting it to tft spi 2.8"inch ..it has an extra miso pin
Gday
Could you have an "smart" watch from this display/Arduino ?
Awesome.
Hey there I wired my screen like showed and only have a white screen, could you help me please?
#metoo
Phil Chandler did you figure out what you did wrong?
@@vanessawei7144 try using github.com/Bodmer/TFT_ST7735 instead of the adafruit library
you might have a cheap chinese version, rather than the regular adafruit version
Can you make a temperature monitor for CPU and GPU?
Hi.. Thanks for the video. Do you know how to use the SD card input on the board? Can I put Images in the SD card and display them on the screen? Thanks..
Check out this video: ua-cam.com/video/X8syt55ITUo/v-deo.html
Subbed.
Hi!
I have an Arduino mini pro and i don't know, to whic ''pins'' on arduino do i have to connect Vcc and LED pins!!!
if your pro mini runs at 3.3 volts you can safely connect voltage to VCC
if it runs at 5 volts, I'm sorry, you might need a 5v-3.3v regulator
Pls make FM radio with this display .
Looks very good, but, How much current it draws?... compared with the nokia screen and the 0.96" OLED that you've reviewed before. Thanks.
+.rpv I can recall correctly it draws around 20-30 mA. Much more that the other two displays we have used so far.
+Educ8s.com Great, I some how expected for more consumption, but isn't that much. Thanks.
OK, I checked it again because I wasn't sure. It is 40-50 mA not 20-30 I told you before.
+Educ8s.com Thanks for the following, well, besides of the colors feature it's a bigger screen, so it's still great for what it does. Thanks.
All I get is a blank screen. I also get Documents\Arduino\libraries\TFT\src/utility/Adafruit_ST7735.h:30:26: fatal error: avr/pgmspace.h: No such file or directory
#include
When using the very basic TFT exemple.
did you install a new version via Library manager or are you trying to use the built-in libraries?
it worked for me when i installed the new version, but could not figure the pins out at all....
Why not you try building a smart watch.
A panel meter showing Amps, Volts and Watts please.
+Eric Gee Yes, that's coming!
Great vid.
Could you tell me how to connect wires to Arduino Mega 2560 please.
And which library use it.?
+Tomasiniii I haven't tried it, but I think it will work on an Arduino Mega without any changes
+Tomasiniii I have tried on Arduino Mega 2560. It will not work with the same pinouts for Arduino Uno. You have to connect SCK to pin 52 (instead of 13), SDA to pin 51 (instead of 11) and CS to pin 53 (instead of 10). This worked for me. Hopefully, it will work for you as well. Basically, you have to use the Hardware SPI resources for it to work properly.
Working, thanks guys :-)
Glad to be of some help.
@@dhruvaacharyya3678 i love you
Can i set the orientation of the display with the library?
+StarTrek123456 I am not sure about that. I have to check it.
+educ8s.tv would also like to know that. With kind regards!
slap_my_hand anyone know?
IT FLICKERS SO MUTCH, AHHH MY EYES ( im making a game but this screen is no match )
great video. but im having a problem. i connected my tft to the arduino board and uploaded the example. nothing is happening. the screen is still white. is it possoble that i purchased a faulty tft screen ?
Hello Danish, please check everything again and try different wires. I think there is something wrong with the connections..
Same problem, any luck in 2020?
how to connect this to a raspberry pi?
I believe raspi has SPI communication as well...
A digital alarm clock
How the screen can be wired with pins arduino mega 2560?
the same except that DIN connects to 51 and CLK connects to 52.
hello,i wanted to connect the tft to a arduino mega. I connected all wires rightly! can you help me ???
+Die Hobbylosen The Arduino Mega has different SPI pins than the Arduino Uno. Please check the Arduino.cc website in order to see where the SPI pins for the Mega are located.
Did you get this resolved? I just connected to a Mega2560 and got it to work.
Hi ,I wired a tft to an arduino mega(ATmega1280) and nothing happen.I try with two tft and nothing.Sambody can
give me some clue.(is posible that the two tft are damaged?).Besides i measure with an oscilioscope lines csk and sda
and there is any activity.What happen please!
+Leopoldo Maragno Please double check everything to make sure that you have connected everything correctly.
+Leopoldo Maragno I had similar problem where both my TFT screens were completely unresponsive and white. I was able to fix it. Look up the pinout on your board and connect the TFT SPI connections to the Hardware SPI resources (SS -> CS, MOSI -> SDA & SCLK -> SCK) for your board. On my Mega 2560 board these pins are SS= pin 53, MOSI=pin 51 and SCLK = pin 52. Make these physical connections and then update the code to reflect these wiring changes. Your code should run. If that does not work, then of course, there is the possibility of both LCDs being damaged.
Thanks you so much! now is working!.Thanks again
You are most welcome.
How can I connect it with CMOS Camera or any camera compatible with Arduino?
+Mehran Mamonai Hello, I am not sure if Arduino is fast enough to be able to do it.
+educ8s.tv I was also following up with Raspberry Pie videos. Can that thing work with Camera as I googled it and found there are module for Raspberry Pie Camera. Thank for providing good tutorials Waiting for Raspberry+Camera Tutorial
+Mehran Mamonai Hello Mehran, I have already prepared a tutorial about the Raspberry Pi camera. ua-cam.com/video/iQ8guvtJ0tg/v-deo.html Cheers!
+educ8s.tv thats woow !! wish come true instantly !! Cheers
dO YOU DO PRIVATE WORK. I WILL PAY YOU TO MAKE ME A SKETCH..
Hello I am a Subscriber of your Channel.
I am Avishek Biswas From INDIA.
Can you make a video on the topic of connecting wireless wifi camera to ("Arduino ESP8266 Wemos D1 board") and live view of that wifi camera must be obtain on ("3.5' color tft display ILI9481 DRIVER")..
Can You Please help me...
I will thankful If you kindly look my request sincerely.
code