JFET

esp32 weather clock

 
Overview

It uses esp32 development board, which is easy to operate. In addition, the screen is 2.8-inch ST7789V. Since I only have plug-ins on hand, if you need a patch, you can modify the capacitors and resistors.

 

Note: There are wide and narrow esp32 development boards. Pay attention to the size. Generally, the 340 board is narrower and the 210x board is wider. Adjust the distance between the headers according to actual needs.

 

The female header is 20p, but the esp32 single row is 19p. One pin is empty. Pay attention when inserting it. The cross on the PCB is the empty pin.

The design is 20p because there is no 20p female header. You can use the 4p or 8p on hand to splice it.

 

The DHT11 code is not added, so you don’t need to solder it (if you need to bend it at 90 degrees and lay it on the PCB board, the space on the board is reserved for this, otherwise the height of dht11 will be too high), and the buzzer does not need to be soldered. You need to add the alarm clock yourself in the program. Some buttons have no defined functions and can be explored and developed by yourself.

 

Since there are not many requirements for the wiring, the wires are relatively thin. If you are not sure, you can modify the wires and re-route them yourself. If you need to lay copper, you can add it yourself.

 

renew

1. Added bottom animation and number of bili fans

2. Other reserved functions need to be improved.


Instructions

 

1. Because the font library is large, the memory allocation settings need to be modified (default user program space 1.2M):
 * ********* >> Arduino IDE - Tools - Partition Scheme - Huge APP (3M No OTA/1M SPIFFS )

2. The program needs to
change the resolution in two places, one is ArduinolibrariesTFT_eSPIUser_Setup.h

 #define TFT_WIDTH 240 
 #define TFT_HEIGHT 320

 

Another local main program

  //Draw a viewport
  //tft.setViewport(0, 20, 240, 240);
  tft.fillScreen(0x0000);
  tft.fillRoundRect(0,0,240,320,0,bgColor); //Solid rectangle


3. It is necessary to adjust the color library
ArduinolibrariesTFT_eSPIUser_Setup.h to the rgb channel and turn off the color inversion (the inverted color is black and it will become white)

#define TFT_RGB_ORDER TFT_RGB  

// #define TFT_RGB_ORDER TFT_BGR  


// #define TFT_INVERSION_ON
 

#define TFT_INVERSION_OFF

4. * [Button Function - Introduction] → This button is used to set the opening/closing of the startup advertising page + enter the WIFI distribution mode + home screen animation switching (astronaut, Totoro spinning, playing table tennis, Totoro jumping rope)
 * How to use : 1. When the power is off, press the button without releasing it, then plug in the TYPE-C data cable to power on. After powering on, wait about 1 second. There will be a prompt on the screen to indicate which step you are staying at. Release the button. You will enter this step
 * During normal operation, if you press the button without releasing it, the device will automatically restart (ESP32.restart() function). Wait for about 1 second. There will be a prompt on the screen indicating which step you are staying at. Release the button will enter this step

5. For first time use, search for a hotspot named XX weather clock, then configure the network, set the wifi name and password, and city code

 

 

For high-definition videos, see: B station video

Welcome to like and collect

 

 

参考设计图片
×
 
 
Search Datasheet?

Supported by EEWorld Datasheet

Forum More
Update:2025-06-25 03:36:52

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
community

Robot
development
community

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号