#Update## 1. Someone has modified some things according to my version, and posted them here for your reference: [https://oshwhub.com/areyouokman/esp8266-shi-zhong](https://oshwhub. com/areyouokman/esp8266-shi-zhong) ## 2. In the attachment, in addition to adding a version code for access lighting platform ### ## 3. Found a serious problem, if you use my PCB to build a board or copy Students can check it > Problem: An urgent problem is found here. The capacitor near AMS1117 is not connected to GDN. Please check whether your board has this problem. # Introduction Last time, a multi-function point based on `ESP8266` was open sourced Array clock code and production method, this time I will open source the dot matrix clock `PCB` board that I made. This is also the first time I have made a PCB circuit board. It can be said that I started from scratch. After iterating three versions, it took more than a month. Finally, I made the third prototype before successfully making it without any problems. `PCB` board comes. Thanks to the help of netizens and the open source works shared by some big guys, I, a novice, have successfully made my own PCB circuit board, so I also want to share it with netizens who have common interests and hobbies. #PCB Preview## Video Bilibili video address [ESP8266 dot matrix clock PCB board sharing](https://www.bilibili.com/video/BV1jS4y167mL/)
[ESP8266 dot matrix clock PCB welding video](https:/ /www.bilibili.com/video/BV1Qq4y1x7vL/) ## Picture [![latticeshow2.gif]

](https://oshwhub.com/xpyA/ju-zhen-shi-zhong)[![latticeshow.gif]

] (https://oshwhub.com/xpyA/ju-zhen-shi-zhong) ![Front view]

![Back view 1]

![Rear view 2]

![Comparison with the second version 1]

![Comparison with the second version Second version comparison picture 2]

## 3D rendering! [PCB back view]

! [PCB front view]

# The open source address here supports the domestic PCB design tool `` Lichuang EDA ``, the official website is https://lceda.cn / PCB Lichuang open source address: https://u.lceda.cn/Lengff/lattice-clock Code open source address: https://gitee.com/lengff/esp8266-lattice-clock-open # The production process is because I have never Having done this kind of `PCB` board design, I can only go to the official tutorial of Lichuang to roughly understand the process of making a `PCB` board. Let me briefly explain my opinion: first you need to draw the circuit principle of your PCB board. Picture, and then convert the schematic diagram to PCB. After the conversion, you need to lay it out yourself. After the layout is completed, you can connect the wires, and finally lay copper and other operations before you can go to the board. It looks very simple, but in fact I haven't figured it out yet. Later, I found a big guy in the video comment area of my B station who was willing to help me get the PCB drawing board. However, I need to handle the schematic diagram myself. I bought it from various Baidu and Taobao sellers. After obtaining the component information, I finally managed to get the circuit schematic diagram. ## The first version was a relatively unsuccessful version. I was not very familiar with it at the time. As a result, I found some problems when I was making the board: 1. Because I had been imitating the schematic diagram of `hack`, but he used ` esp8266-12S`, and I use `esp8266-12F`, and there are some problems with the schematic diagram; 2. Secondly, the clock chip is `DS3231MZ`. When I went to Taobao to buy it, I found that this chip is very expensive. One piece actually costs More than 40; 3. Some other minor circuit problems; Based on the above problems, I decisively decided to abandon this version and prepare to draw a new version! ## The second version After the failure of the first version, I became more cautious in the second version. I carefully checked every area. I originally thought there was no problem, but I helped my boss weld it and found that it didn’t work, so I spent the weekend So we went to the big boss’s house to check the problem together. From 3pm to 8pm, we finally figured out all the problems and successfully turned on the clock. Although there were many problems, they were basically located: 1. Draw a picture Some of them say `VCC`, some say `+5v`, and some say `+3v`, so there is no power supply in some places; 2. The circuit diagrams of the touch chip and serial port chip are still wrong; 3. The spacing of the dot matrix It is relatively large and not very beautiful in appearance; although there are many problems, I think this is also a success, so I am planning to launch the third edition! ## After learning from the painful experience of the third edition, I did not choose to work on the third edition immediately. Instead, I summarized some problems of the second edition, added an LED indicator light to the code, and then redesigned the `PCB` board, and finally typed it. There are only a few minor problems left with the board: 1. The touch chip design is reversed, and the forward connection will short-circuit, but reverse soldering is no problem. 2. The resistor design of the serial port `RX` and `TX` is reversed, which can be solved by flying wires. Apart from the above minor problems, there are basically no major problems, so I and others believe that after fixing the above two problems, this `PCB` can be open sourced. ## Open source version The open source version is a version that has fixed the bugs of all the above versions. You can build the board with confidence> An urgent problem is found here. The capacitor near AMS1117 is not connected to GDN. Please check whether your board has this problem. ## Latest version > Fix the problem that the capacitor near AMS1117 is not connected to GDN > The latest version is actually a modification of the USB layout based on open source, and some silk screens have been added # Production instructions ## Circuit schematic diagram! [Circuit principle picture]

## PCB production instructions 1. Just make the board directly on Jialichuang. This length exceeds the free length and the price should be considered relatively expensive. 2. It is recommended to buy materials on Taobao instead of directly on Jialichuang. Place an order at Lichuang Mall 3. The chip `DS3231SN` is not easy to buy. Many stores do not have it, or it is relatively expensive to prevent everyone from being cheated. I provide a reference price of about 15 yuan, and I found a Taobao store for 9 yuan 4. If you don’t want touch function and serial port function, you can ignore `U6` and `U8`, that is, `CH340N` and `TTP223B`. The surrounding capacitors and resistors do not need to be soldered, but the premise is that the program needs to be written in advance. 5. Inside ESP8266`. Since there is no touch place designed, there is only one touch pad reserved. If you need the touch function, you need to find the touch material yourself, and then solder it to the `J1` pad. ## Program writing instructions are here I won’t introduce how to write the program. If you want to know more, please refer to [Code Open Source Office](https://gitee.com/lengff/esp8266-lattice-clock-open), where there are detailed introductions and instructions. But here is a brief introduction on how to write a program on the PCB board: 1. First press and hold the `BOOT` button, and then plug in the `USB` port of the computer. If there is no display on the plug-in dot matrix screen, it means that it has entered the burning mode. This 2. Use Arduino or other software to burn the program 3. Plug and unplug the `USB` port again (this is because there is no `RESET` button, I think just plug and unplug the power supply directly) , that is, exit the burning mode ## Notes 1. Pay attention to the direction of the ttp223 touch chip. The end with the horizontal line is the positive direction. This problem occurred in my third version, causing it to not light up at all. 2. The tantalum capacitor also has a horizontal line. , this horizontal line points to the positive pole, other capacitors and resistors do not distinguish between positive and negative poles 3. It is best to write the program before soldering ESP8266 to avoid the serial port chip on the PCB board being useless and making it impossible to verify without a program # Materials List > Often someone Ask me about the purchase link for square dot matrix screens. List them here. The price is much more expensive than ordinary ones: ["3*3mm square 8*8 white light dot matrix 1088 32*32 white square dot matrix 1288AW/1288BW"](https: //m.tb.cn/h.fOVMLEU?tk=U2Ar2VcP0xT) Buy the common cathode type. Since the export on Lichuang is a mess, I deliberately sorted it out a little and listed the reference prices for the components I purchased (excluding shipping costs) for your reference only. | Name | Quantity | Reference unit price | Reference total price | Specifications | Remarks | | --- | --- | ---- | ---- | --- | --- | | CR1220-2 | 1 | 0.77 | 0.77 | CR1220 | CR1220 battery holder + battery | | 0.1uF | 9 | 0.03 | 0.27 | 0603 | 0.1uF capacitor | | 22pF | 1 | 0.02 | 0.02 | 0603 | 22pF capacitor | | 0603 | 1uF capacitor | | 100uF | 2 | 0.6 | 1.2 | 3258 | 100uF tantalum capacitor (slightly more expensive) | | ZH1.5-4P-WT | 1 | 0.2 | 0.2 | ZH1.5 | Terminal female base | | LED-0603_R | 2 | 0.025 | 0.05 | 0603 | LED indicator | | 10k | 11 | 0.04 | 0.44 | 0603 | 10k resistor | | 330R | 4 | 0.04 | 0.16 | 0603 | 330R resistor | | 1k | 1 | 0.01 | 0.01 | 0603 | 1k resistor | | K2-3.6×6.1_SMD | 2 | 0.08 | 0.16 | 3x6x2.5 | Button | CWG is OK) | | ESP8266-12F | 1 | 7 | 7 | ESP8266-12F | ESP8266-12F wifi master chip | 8 | DS3231SN | DS3231SN clock chip | | AMS1117-3.3 | 1 | 0.22 | 0.22 | AMS1117 | AMS1117 voltage regulator chip | 0.65 | 14P harpoon foot vertical | USB-C interface (note that it is 14p vertical) | | PCB sample | 1 | 5 | 5 | CR1220 | PCB sample | | Round header | 2 | 1.07 | 2.14 | 2.54 |PCB Sample| # At the end, I provide an online mold-taking tool for ``8x8`` and ``32x8`` dot matrix. The tool is relatively rough. If there are any areas that need improvement, please leave a message in the comment area. [Online mold taking tool for 8x8 lattice](http://lengff.com/lengff/lattice2.html) [Online mold taking tool for 32x8 lattice](http://lengff.com/lengff/lattice3.html)
If you have any questions, please feel free to add your personal QQ group: `711284300`, and we will answer all your questions. ![qq group picture]

# Reference article For a novice like me, I can successfully come up with this, more thanks to those who are willing to share, which makes me continue to improve. I would like to express my thanks again to the authors of articles that make me improve. [The upgraded version of the matrix clock is open source! ](https://mp.weixin.qq.com/s/CzFLiuspfYBcMXaWzcPgMA)
[IoT Lattice Clock](https://oshwhub.com/Hsy330225/main_V1.0.2)
[Matrix Clock](https://oshwhub .com/414048A/ju-zhen-shi-zhong)
[Matrix Clock](https://oshwhub.com/xpyA/ju-zhen-shi-zhong)
[ESP8266 Matrix Clock](https://oshwhub.com/ Flight666/ESP8266-ju-zhen-shi-zhong)
[IoT dot matrix clock](https://oshwhub.com/wzj2214479265/wu-lian-wang-dian-zhen-shi-zhong)
[ttp223 touch switch module circuit diagram ](https://www.jianshu.com/p/9a67b50d10fe)
[[Reference Design] CH340 latest official schematic diagram 2020-4-1](https://blog.csdn.net/m0_46513394/article/details/105285617 )