ESP32 and Round OLED Smart Watch Concept
Introduction: ESP32 and Round OLED Smart Watch Concept
Hey, what's up folks.
Here's a super interesting project that utilizes a Round LCD Display connected with an ESP32 board to make a smartwatch.
This Instructables is gonna be about setting up the Round LCD and basic smartwatch on a breadboard.
So let's get started.
Supplies
We use the following materials to set up our smartwatch-
* 1.28" Round LCD Display GC9A01
* ESP32 Board- Lolin D32 Pro
* RTC Module
* Breadboard
* Jumper wires
Step 1: 1.28" GC9A01 ROUND LCD DISPLAY
GC9A01 is a 240x240 Round RGB LCD Display that adopts a four-wire SPI communication interface, SPI is fast so it can greatly save the GPIO port, and the communication speed will be faster.
It's similar in size to the 240x240 square LCD but has rounded edges.
The built-in driver used in this LCD is GC9A01, with a resolution of 240RGB×240 dots.
Checkout its wiki page for more info- https://www.waveshare.com/wiki/1.28inch_LCD_Module
Following are its electrical parameters-
* Operating voltage: 3.3V/5V
* Interface: SPI
* LCD type: IPS
* Controller: GC9A01
* Resolution: 240(H)RGB x 240(V)
* Display size: Φ32.4mm
* Pixel size: 0.135（H）x0.135（V）mm
* Dimension: 40.4×37.5(mm) Φ37.5(mm)
This display was made by Waveshare and you could find all info about this display on their site.
Here's the link- https://www.waveshare.com/product/1.28inch-lcd-module.htm
On their page, they have used an Arduino Uno to run the board, also a Raspberry pi, and a Nucleo Board but we're going to use the ESP32 board because of its connectivity features and faster processing power.
Step 2: PCBWAY GIFTSHOP
As for sourcing this display, I got this display from PCBWAY's Giftshop.
Aside from PCB Services, PCBWAY also has a dedicated components store.
PCBWAY GIFTSHOP is an online marketplace from where we can source all the major electronics stuff, like Arduino boards, Raspberry Pi boards, Modules, sensors, etc.
PCBWAY have this system that lets us purchase anything from their gift shop through beans, Beans are like a redeemable currency or coupons that we get by placing an order on PCBWAY or by sharing your projects in the community to get beans.
Check PCBWAY out for getting great PCB service from here- https://www.pcbway.com/
Step 3: TFT_eSPI Screen Library Setup
To run this OLED with ESP32, I used the popular TFT_eSPI Library by <PERSON>.
https://github.com/Bodmer/TFT_eSPI
TFT_eSPI is an amazing library that supports all major displays that are used, like ILI9430, ST7735, and even the round LCD GC9A01.
* We first go to its Github Page and download the RAW files.
* Next, we extract the folder in Documents>Arduino>Libraries where we keep all our custom libraries.
* We Open the Arduino IDE and see the TFT_eSPI added in the library manager.
Step 4: User Setup Edit
Before testing this display, we need to do some editing on the user setup file.
* we go to C:\Users\ACER\Documents\Arduino\libraries\TFT_eSPI and make changes in the User Setup.h by replacing it with User setup for GC9A01.
* The default one is set for ILI9430 Display and we change it for GC9A01 by adding // in front of ILI9430 User setup and removing // in front of GC9A01.
Step 5: Schematic - Basic Wiring
* We first connect VCC and BL, we do this to supply BL which is backlight 3.3V through the MCU. 382