Round GC9A01 240x240 display and gauges

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
hello uh i have a new display for the first time  i'm using round display and give me a second and it it looks great few weeks ago i received  uh an email from anthony he has a boat   and he wants to monitor different data such  speed battery voltage i don't know temperature   pressure and and so on he wanted to use esp32 and  a round color 240 by 240 display which is based on g c 9 a 0 1 driver he needed help with code and i decided to help  him and after few days i received my first   round display you can find this display on a maker  fab's site i will leave link in the description uh display is bigger than i expected which  is great because values will be easy to see   for example here i have 240 by 240  display which i use very often and   you can see that this one is much smaller in uh  this project i can set different gauges to display   different data i don't have a boat and sensors so  right now i'm using this simple potentiometer to   to change values anthony will need  to get data from sensors by himself   i need to say that the gauges look great and  this design is completely made by anthony   he sends me images that are used in the project i can change gauge using this push  button which is connected to pin 12. sorry so which is connected to pin 12 on esp 32   potentiometer is connected to pin  14. there are six different gauges and you probably notice that they  have different maximum and minimum   value that uh problem is solved uh  in code using these arrays of data   in a description you can download this code so  you can modify it and use it for similar purpose   i will explain my code later but first i will show  you how to use this display and how to set up tft   aspi library first of all let's see easiest way  probably easiest way to connect this display to   your esp32 so ground is of course connected  to ground vcc is connected to three volts serial clock is connected to pin 15  serial that data is connected to pin 2   reset is connected to pin 4 dc is connected to pin rx2 or pin 16  chip select or say cs is connected to pin   17 or tx and backlight is connected to pin five  this is probably easiest way to connect these   two modules as i told you before  potentiometer is connected to pin 12 sorry potentiometer is connected to pin  40 and push button is connected to pin 12   and now we need to set up our  library to use these specific pins okay in your libraries folder you  will find your tft aspi library if you don't have this library installed check  description so we are using tft aspi library so first i will edit this  user setup setup select file and in this setup you will need uncomment only one   one line which is user setups setup 200  because this is driver we are using gc9801 now i need to go in user setups folder and  i will find file setup 200 which is here and you will need to define  your pins on this way so pin five pin two zero clock fifteen chip  select seventeen sixteen and reset four   default pins are different but you will  need to write these values in this file   later you can save it and your  display will hopefully work okay in this part of video i will try  explaining what is happening in code   so we have six gauges each gauge is  image that is stored in this dot h file here i also have one font dot  h file which is used to store font uh chosen gauge is called chosen one so each gauge have minimum value and maximum value this part of code is uh used to  store coordinates of points on circle and this is main loop part of code so  right now i'm using potentiometer so   main result is given from analog read pin 40. an angle is calculate using that uh result so if for example chosen one is one in us display we will first  draw gauge too for example code is not too big he's uh not uh i don't know how to say sorry it is really hard  for me to explain what is happening here but feel free to use it and uh you will probably  figure it out what is happening here and i hope   you will learn something i'm really sorry  that i can't explain it much much better that's it for today again i'm very sorry  because my uh worst code explanation   but i will try to do much better next time thank  you for your time i hope you learned something   i hope that you will use my code  and i hope that this video was fun uh please subscribe and if you want  to support my work as always you can   buy me a coffee link is in description  thank you have a nice day and goodbye you
Info
Channel: Volos Projects
Views: 99,851
Rating: undefined out of 5
Keywords:
Id: y_H7HM0oyoo
Channel Id: undefined
Length: 11min 11sec (671 seconds)
Published: Tue May 17 2022
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.