王达业

【Training Camp】IoT Clock +576432A

 
Overview

Goal: Use ESP32-PICO-D4 and Zhongjingyuan 1.14-inch screen to make an IoT clock

Concept: Designed to be a multi-functional compact development board to expand functions

Resource description:

1.USB typeC interface

2.CP2102 serial port and automatic download function

3.SPI LCD display support (currently using Zhongjingyuan 1.14-inch screen)

4.DS1302 clock

5.TF card expansion

6.Support MPU6050 gyroscope

7.3 user switches and two custom indicator lights (IO34 IO35 uses ADC to realize the button function)
development method:

1.arduino (currently using clion+platformio) 2.esp-idf 3.micropython

application:

1. Set up the arduino development environment and install the ds1302 TFT-ESPI MPU6050 library

2. Use the attached code to compile and run

Operating mechanism:

1. Initialize the LCD after powering on to facilitate printing of current status information.

2. Connect to wifi. If there is no AP SSID and passwd stored in the chip, perform intelligent network configuration.

3. Open the esp_touch app on your mobile phone, connect to the indoor wifi, and configure the network (if the connection is not successful after 10 seconds, re-enter the network configuration state)

4. After configuring the network, obtain the time information and write it into DS1302

5. Loop in the loop to read and refresh the display

Note that if no network is currently available, press and hold the button corresponding to IO25 to skip the wifi connection and read the time directly from ds1302

 

Some of the IO connections have been modified with the flying wires on the board. The schematic diagram and PCB have been modified. All functions have been independently tested and basically OK.

pit:

The ESP32-PICO-D4 chip is an LGA package. The pins are under the chip. It is impossible to judge whether they are soldered properly. We can only test them one by one, which takes a long time.

IO34-39 cannot be used as ordinary IO, only input function, used as ADC

The screen is easily crushed

Finally, I would like to thank Lichuang for providing this opportunity , which allows me to make a fun board. Based on this, I can also learn LVGL in the future.

 

 

参考设计图片
×
 
 
Search Datasheet?

Supported by EEWorld Datasheet

Forum More
Update:2024-11-15 00:14:02

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

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号