桂花蒸

【Training Camp】ESP8266 Clock +548151A

 
Overview

1. General introduction

This project uses ESP8266 as the main control to control a 1.8-inch TFT color screen (128*160 pixels), which can obtain time online. In addition, it is equipped with a DS1302, so you can also choose to use a local clock.

PS: Originally, I thought that the theme of this issue was that ESP32 must be used. I asked in the group and they said that I only need to use the Ai-Thinker module. For cost reasons, I used the ESP12-F module. This way the cost It’s very low. You can make it and give it to everyone.femalefriend.

PCB-physical overall picture.jpgRunning diagram 4.jpgRunning diagram 3.jpgThere are streaks when shooting, but there are no actual streaks. It's almost like OLED flickering when shooting with a camera.

(Walnut is cute

2. Hardware part

Power supply: XC6210B332MR linear voltage regulator is used, which is cheap (Sanmao on Taobao), has enough current (700mA mentioned, who knows if it is that high), and has a low voltage, which can convert 3.7V to 3.3V, so it can be used Used lithium battery. There are two solder pads reserved on the board, which can be connected to the lithium battery + lithium battery charging protection board set.

Main control: ESP8266EX, the module is ESP12-F, the price is also quite cheap (it costs three yuan each in a Yingmao group), 4MB FLASH, a small font library is enough.

Display: 1.8-inch TFT screen, resolution 128*160 pixels, plug-in version, priced at 10 yuan each.

Clock: DS1302 clock chip, SOP8 package, old friend, needless to say, equipped with an MS621FE battery, mainly because of its small size, less than two yuan a piece on a certain treasure (there are also expensive ones,It’s not like the cheap ones can’t be used.).

3. Software part

Development environment: VsCode+PlatFormIO (the training camp teaches the use of virtual machines, but I installed the environment directly in the Windows environment).

Development framework: Use the Arduino framework (ESP-IDF taught in the training camp, which is very low-level and has high execution efficiency, but there are many Arduino libraries, good adaptation, and easy development.Mainly because I'm lazy + have limited skills).

Included libraries: TFT_eSPI (TFT screen library), ArduinoJson (parsing weather Json string), Time (getting time), RTC (controlling DS1302), TJpg_Decoder (JPG image decodingIt’s just used to show the cute walnutsYou can also display astronauts), ESPAsyncUDP library (asynchronous UDP, can receive messages and send debugging information), ArduinoOTA (you can use the network for online burning, no need to plug in the serial port, of course, you need to use it for the first time burning serial port).

参考设计图片
×
 
 
Search Datasheet?

Supported by EEWorld Datasheet

Forum More
Update:2025-05-10 15:57:11

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号