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.
There are streaks when shooting, but there are no actual streaks. It's almost like OLED flickering when shooting with a camera.
(Walnut is cute
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.).
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).
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