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
All reference designs on this site are sourced from major semiconductor manufacturers or collected online for learning and research. The copyright belongs to the semiconductor manufacturer or the original author. If you believe that the reference design of this site infringes upon your relevant rights and interests, please send us a rights notice. As a neutral platform service provider, we will take measures to delete the relevant content in accordance with relevant laws after receiving the relevant notice from the rights holder. Please send relevant notifications to email: bbs_service@eeworld.com.cn.
It is your responsibility to test the circuit yourself and determine its suitability for you. EEWorld will not be liable for direct, indirect, special, incidental, consequential or punitive damages arising from any cause or anything connected to any reference design used.
Supported by EEWorld Datasheet