Skip to content
Esp32-based open source watch project.
Branch: master
Clone or download
Latest commit 763128f Jun 19, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
datasheet add s7xg datasheet May 9, 2019
img add img May 9, 2019
libraries Merge branch 'master' of https://github.com/Xinyuan-LilyGO/TTGO-T-Watch Jun 11, 2019
.gitignore add pay inteface May 17, 2019
.gitmodules add submodule May 26, 2019
README.MD add button description May 10, 2019
TTGO-T-Watch.ino Change time acquisition method Jun 11, 2019
board_def.h add rtc Jun 9, 2019
font_miami.c add button2 Apr 22, 2019
font_miami_32.c add button2 Apr 22, 2019
font_sumptuous.c add button2 Apr 22, 2019
font_sumptuous_24.c add button2 Apr 22, 2019
gps_task.cpp change ble disconnect hande Apr 26, 2019
gps_task.h add s7xg gps and lora Apr 16, 2019
image_location.c first commit Apr 4, 2019
img_alipay.c add pay inteface May 17, 2019
img_batt1.c add button2 Apr 22, 2019
img_batt2.c add button2 Apr 22, 2019
img_batt3.c add button2 Apr 22, 2019
img_batt4.c add button2 Apr 22, 2019
img_bg0.c add button2 Apr 22, 2019
img_bg1.c add button2 Apr 22, 2019
img_bluetooth.c add soil ble device Apr 23, 2019
img_desktop.c add button2 Apr 22, 2019
img_desktop1.c add button2 Apr 22, 2019
img_desktop2.c add button2 Apr 22, 2019
img_desktop3.c add button2 Apr 22, 2019
img_direction_down.c
img_direction_left.c add button2 Apr 22, 2019
img_direction_right.c add button2 Apr 22, 2019
img_direction_up.c add button2 Apr 22, 2019
img_directions.c add button2 Apr 22, 2019
img_folder.c first commit Apr 4, 2019
img_lora.c add button2 Apr 22, 2019
img_menu.c add button2 Apr 22, 2019
img_placeholder.c
img_power.c add button2 Apr 22, 2019
img_qr.c add pay inteface May 17, 2019
img_setting.c first commit Apr 4, 2019
img_step_conut.c add button2 Apr 22, 2019
img_ttgo.c add button2 Apr 22, 2019
img_wechatpay.c add pay inteface May 17, 2019
img_wifi.c first commit Apr 4, 2019
lv_ble.cpp fix ble Apr 27, 2019
lv_ble.h add soil ble device Apr 23, 2019
lv_dirver.cpp Delete unused comments and audio Apr 21, 2019
lv_dirver.h bk Apr 17, 2019
lv_filesys.cpp remove sd detect pin Jun 19, 2019
lv_filesys.h first commit Apr 4, 2019
lv_swatch.c add pay inteface May 17, 2019
lv_swatch.h add soil ble device support Apr 25, 2019
motion_task.cpp fix ble Apr 27, 2019
motion_task.h add low power ctrl Apr 26, 2019
struct_def.h change ble disconnect hande Apr 26, 2019

README.MD

TTGO T-Watch

T-Watch is an ESP32-based smart watch hardware designed by Shenzhen Xinyuan Electronics Co., Ltd. Hardware configuration with main core SOC (ESP32), 16MBytes large flash, 8MBytes external SPRAM, integrated multi-channel programmable power management chip ( AXP202), onboard three-axis accelerometer (BMA423), built-in step counter algorithm and other multi-function GSensor, with a variety of different configurations of internal replaceable backplane, such as LORA, GPS, SIM, SD

PinOut

Name Pins
TFT CS 5
TFT SCLK 18
TFT MOSI 19
TFT MISO -1
TFT DC 27
TFT RST -1
TFT BL 12
SD CS 13
SD MOSI 15
SD MISO 2
SD SCLK 14
TOUCH SDA 23
TOUCH SCL 32
SENSOR SDA 21
SENSOR SCL 22
UART TX 33
UART RX 34
USER BUTTON 36
RTC INT 37
TOUCH INT 38
AXP202 INT 35
BMA423 INT 39

Button description:

PEK KEY: facing the screen, right upper right

  • (on state) -> long press for four seconds to shut down
  • (off state) -> long press for three seconds to boot

USER KEY : Close to the Type-C interface

  • (on state) -> long press for two seconds to release, deep sleep

Note:

  • The default program does not open any sub-modules. If you need to use other modules, enable the corresponding module in board_def.h to enable

    // #define UBOX_GPS_MODULE      //Turning on will open the M8/M6 GPS module
    // #define ACSIP_S7XG_MODULE    //Turning on will open the S7XG GPS/LORA module
    // #define ENABLE_BLE           //Turning on will open the BLE module
    
  • BLE only supports the corresponding UUID of the connection and cannot connect to the UUID that does not exist in the program. BLE server reference code Soil-BLE-Server

  • WIFI connection is only used as time synchronization

  • AXP202X_Library will have set the DCDC3 output enable to normally open, because DCDC3 will supply power to the ESP32 main chip. If using other methods of control, please be careful not to turn off DCDC3, otherwise it will not be able to burn the program.

  • The repository depends on other library files, please recursively clone the repository

    git clone --recursive https://github.com/Xinyuan-LilyGO/TTGO-T-Watch
    
  • Then move the library files in the libraries directory to

    C:\Users\<UserName>\Documents\Arduino\libraries
    
  • In the Arduino board select TTGO T-Watch, the PSRAM is enabled by default, if it is not turned on, please open it.

Known issue

  • Updating the GPS information screen for a long time will cause the program to run away
  • BLE connection sometimes causes the program to run away
  • The S7XG module only implements ping-pong sending and receiving, and the LORAWALN function is not implemented. For details, refer to the example in the datasheet.

Low power consumption:

  • In standby mode (using the M6/M8 GPS module backplane), the display is off and the current minimum power consumption is approximately ~3 mA. Detailed step reference code closes the screen section

Resource

Using library files

The pictures and fonts used in the program are from the network. If there is any infringement, please inform the author.

You can’t perform that action at this time.