2021/10/27 Add clock demo
The original author of the clock demo is the UP owner of Station B: Misaka
An ESP8266 version will be released specifically for the clock in the future, which will save costs and be very thin at the same time, so stay tuned.
*************************************************** *************************************************
2021/08/11 Updated schematic diagram
The component number on the schematic diagram is wrong, please do not refer to the component number (two schematic diagrams do not seem to be allowed to have the same number in the same project, so the number cannot be changed)
If you are not confident in your soldering skills, please use the ESP32 burning socket to burn before soldering!
*********************** Dividing line ************************
It is best to download the BOM table from the attachment. There seems to be something wrong with the automatically generated one.
ESP32 drives GC9A01 circular screen to display pictures and automatically change according to the set time
The total cost is probably less than 60 yuan, so you can play it if your hands are itchy.
Create an img folder in the root directory of the SD card and use a tool to reduce the image to a resolution of 240x240
(The SD card needs to be formatted into FAT32 format, and the capacity should be less than 8G)
In order to save space (actually I am lazy) the USB to TTL conversion is not shown on the PCB, but the serial port is reserved.
Since this is my first time to draw a PCB, the wiring looks like shit. Please point out any shortcomings.
Note: The pin headers on the PCB all use 2.0mm spacing.
Communication group: 636426429
Can be used as a house badge or backpack pendant
This project is developed based on Arduino IDE
Use the Arduino_GFX library to drive the screen ( https://github.com/moononournation/Arduino_GFX )
Pictures and video code descriptions and BOM tables are open source at https://github.com/Myzhazha/ESP-32_GC9A01_JPG
Brother, you can change the code and use the AP mode that comes with ESP32 to upload pictures. My code is also a prostitute and will not be changed (dog head)
Use this project to play video https://github.com/Myzhazha/ESP-32_GC9A01_JPG/tree/main/Video_Demo
(This Demo is modified from https://github.com/moononournation/RGB565_video )
The played video plays mjpeg picture frames and needs to be converted using FFmpeg.
FFmpeg download address https://ffmpeg.org
Instructions for use: Use editing software to modify the resolution of the video to 240x240, and export it to .mp4 format.
Download FFmpeg and hold down the shift key and right-click the mouse in the FFmpeg.exe directory - open the PowerShell window here.
Execute the following command to convert mp4 files to mjpeg format
./ffmpeg -i [你的mp4文件路径] -vf "fps=30,scale=-1:240:flags=lanczos,crop=240:in_h:(in_w-240)/2:0" -q:v 9 [输出路径]
for example:
./ffmpeg -i D:video1.mp4 -vf "fps=30,scale=-1:240:flags=lanczos,crop=240:in_h:(in_w-240)/2:0" -q:v 9 D:video240_30fps.mjpeg
After the conversion is completed, put the 240_30fps.mjpeg file into the root directory of the TF card.
PCB description:
The U1 button is the Boot button
The U2 button is the EN button
The TIAO jump cap is used to disconnect the power supply of the TF card when burning firmware via the serial port. Plug the jump cap in during normal use and unplug it when burning firmware.
Firmware burning instructions:
When burning
TTLRXD corresponds to T on PCB
TTLTXD corresponds to R on the PCB
TTL3.3V corresponds to 3 on the PCB
(Be sure to use 3.3v voltage, 5V voltage will damage the screen and ESP32 module)
TTLGND corresponds to G on the PCB
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