T7WHUN58tb

#Fifth LiChuang Electronic Design Competition# ESP32 makes a children's watch recognition training device

 
Overview

【Please fill in during the registration stage↓】
* 1. Self/Team Introduction
            I am an Arduino enthusiast from the Arduino Chinese Community, and I often use Arduino to make all kinds of fun things.
* 2. Briefly introduce the project
            In order to help my son learn about clocks, I specially designed such a device.

【Please fill in during the competition stage↓】
* 1. Describe the project details
            After powering on, a random time will be broadcasted through voice. The user uses the two rotary encoders on the device to set the hour hand and minute hand to reach the specified position to pass.
 * 2. Describe the challenges faced by the project and the problems solved
            The first problem encountered was: how to drive the LCD screen of the selected watch type, which uses the GC9A01 chip driver and SPI interface.
![image001.jpg] The seller did not provide an Arduino library, so I could only modify it from the C51 example. Finally, it was successfully ported to < span class="colour" style="color:rgb(51, 51, 51)">Adafriut GFX. < /span>
< span class="colour" style="color:rgb(51, 51, 51)">The second problem I encountered was how to drive the rotary encoder.< /span>I started with the ALPS EC11 series:
![image002.png] In order to make it work, I made the circuit board resistor combination myself. The separate drive circuit diagram is as follows:
![image003.png] For software, I used the ai-esp32-rotary-encoder library. < span class="size">< /span>
* 3. Describe the key points involved in the hardware and software parts of the project.
Below is the hardware circuit diagram:
< span class="size">![image004.png] The PCB design is as follows:
![image005.png] ESP32 and LCD communicate through the SPI interface; I have written the Adafruit\_GFX library for GC9A01, and
it can be used after declaring Arduino\_GC9A01 tft = Arduino\_GC9A01(GC9A01\_DC, GC9A01\_RST,GC9A01\_CS); ESP32 and the rotary encoder communicate through GPIO, but not all GPIO on ESP32 can be selected as the pin connected to the rotary encoder. Some connections will cause it to fail to start. I determined whether it can be used through experiments. In addition to power and ground, each rotary encoder has two wires for processing rotation data and one for key information. After referencing the corresponding library, you can start using the rotary encoder through the following two functions: AiEsp32RotaryEncoder rotaryEncoder1 =
AiEsp32RotaryEncoder(ROTARY\_ENCODER1\_A\_PIN, ROTARY\_ENCODER1\_B\_PIN,
ROTARY\_ENCODER1\_BUTTON\_PIN, -1); AiEsp32RotaryEncoder rotaryEncoder2 =
AiEsp32RotaryEncoder(ROTARY\_ENCODER2\_A\_PIN, ROTARY\_ENCODER2\_B\_PIN,
ROTARY\_ENCODER2\_BUTTON\_PIN, -1); ESP32 communicates with SYN6288 through the serial port. I have introduced this voice module in the previous USB keyboard calculator project. If you are interested, you can directly check it out

* 4. Project Materials List

| | | |
| --- | --- | --- |
| Components | Quantity | Introduction |
| ESP32 | 1 | Main control board |
| EC11 rotary encoder | 2 | For input. In addition to rotation, there is also a button function |
| Round screen LCD | 1 | For display surface |
| SYN6288 module | 1 | Output voice information |
| Speaker | 1 | Sound |

* 5. Upload project pictures
          5.1. Print the competition logo picture on the PCB. If not, it will be deemed as giving up the competition
! [IMG_20200809_150116.jpg]           5.2. Other pictures of the project
! [IMG_20200809_152953.jpg] * 6. Demonstrate your project and record it into a video
          and upload it 6.1. Upload the video to the official website of the competition

6.2. B station video title and link
The 5th LiChuang Electronic Design Competition: "ESP32 Production of Children's Watch Recognition Trainer" Project-Function Demonstration [https://www.bilibili.com/video/BV1sz4y1Z7LS?pop_share=1](https://www.bilibili.com/video/BV1sz4y1Z7LS?pop_share=1)< br>
< br>
* 7. Is this the first public release
          ? 7.1. Has the project been published or won awards before? Please explain.
          7.2. If the project is optimized on the original basis, please explain the optimized part
. * 8. Open source document
       source code and circuit can be downloaded in the attachment

. * 9. References

1. [http://www.lab-z.com/gc9a01tft/](http://www.lab-z.com/gc9a01tft/)ESP32
GC9A01 test code
2. [https://www.lab-z.com/gc9a01gfx/](https://www.lab-z.com/gc9a01gfx/) GC9A01
Porting 到 Adafriut GFX< span class="size">< /span>< br>
< br>
参考设计图片
×
 
 
Search Datasheet?

Supported by EEWorld Datasheet

Forum More
Update:2025-06-20 01:09:23
  • The Development and Application of Wireless Video Surveillance
  • How did you guys spend the New Year?
  • Voltage acquisition
  • Very popular Bluetooth dialer solution
  • Be the first to experience! Try the LM3S8962 evaluation kit for free! (Closed)
  • About the problem of discontinuous data collection of ADS1115

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号