ESP8266 pseudo-glow clock.
Inspired by official works: https://oshwhub.com/OSHWHubkai-yuan-ying-jian/esp8266-ws2812b-ni-hui-guang-guan
And CrazySuiJi’s unframed works: https://oshwhub.com/CrazySuiJi/ni-hui-guang-guanmini-wu-tong-zhu-ban
Do 3D first:
Probably like this
Then start drawing the 2D drawing:
Probably like this
Determine main functions
Main hardware: 1. 8266 connects to WIFI
2. IP5306 power management (in fact, 4056 and 5056 are more suitable, IP5306 is not used for external discharge at all)
3.WS2812
4. Polymer battery 603779, C port can charge and download at the same time.
Then roll the board:
Probably like this
This is my first time using 8266. My level is limited and I didn’t want to learn coding.
After looking at Lichuang's official website, it seems that they only provide firmware. CrazySuiJi provides .INO, but I don't know how to use ARDUINO.
Then eat the SDK.
I worked on it intermittently for 2 weeks and mainly achieved
1. WeChat distribution network
2. SNTP automatically reads network time
3. Driving light group
4. Press the button to switch colors
5. Realize the flow effect of CrazySuiJi
After finishing the code, inject the soul
Probably like this
After powering on, 8266 tries to connect to the Internet according to the last WIFI configuration. If it fails, it enters listening mode and waits for network configuration. The light displays 6 0s. At this time, scan the QR code behind WeChat
Something like this:
Follow the prompts to configure the network and wait for the network configuration to be successful. After the network is successfully configured, the number plate flashes from 9 to 0 in sequence, and then the time starts to display normally.
Something like this:
The DXF file has been attached
The video has been attached
After finishing the firmware, add attachments
Light board project link: https://oshwhub.com/WIGWAG/ni-tai-hui-guang-zhong
Finally: This project is released based on the GPL 3.0 agreement. Secondary developers are required to make it open source and free under the same open source agreement and cannot be used for commercial purposes.
#Added on July 8, 2021:
An accidental discovery is that a git master has streamlined the Python3 parser, cut out some libraries and transplanted it to the embedded platform. It is called MicroPython, and 8266 is one of the officially supported sons.
git connection: https://github.com/micropython/micropython
As a pure hardware engineer who talks about python every day but doesn’t know anything about it, let’s try MicroPython.
By chance, I got the information of a certain studio. Let’s use the V1.11 version of the micropython firmware. The latest version on the official website is V1.16.
Official website link http://www.micropython.org/download/esp8266/
Micropython firmware download, python tutorials are available online, I won’t go into details.
There is a quick reference for reference: http://docs.micropython.org/en/latest/esp8266/quickref.html#networking
I did it back and forth for almost a week.
I only have one experience. The indentation must be standardized. I was stuck for a whole day because of one space. I was so fucked. . .
Currently, NTP synchronization time, WS2812 driver, breathing effect, key switching, video has been uploaded, and source files have been uploaded to attachments.
MicroPython currently does not have a particularly good one-click network configuration solution. Friends who need DIY can modify the source code by themselves.
The one-click network configuration firmware of the SDK needs to be improved a bit, I originally wanted to polish it. But, I just picked up Python.
Python is the best in the world
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