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.
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