I had a lot of idle stuff when making a thermal printer before, so I made this esp8266 driver 0.91oled weather clock with temperature and humidity sensor and ws2812 light.
There are two buttons, a mode button and a ws button.
The mode button can set the OLED to display time, today's weather, weather in the next three days, number of fans, and temperature and humidity sensors.
The ws button can display four modes of lights, among which the white mode can be used as a night light. Of course, you can add remote code such as blinker and other controls yourself.
The 3-pin module used by the temperature and humidity sensor can also be changed to other sensors. After all, it is a slot-type design. Just modify the driver.
In order to be as simple as possible, there is no wifi distribution and remote control.
You need to modify the wifi name and password in the program yourself, as well as the weather and other information.
When compiling arduino, the esp8266 development board requires version 3.0 or above, and the library arduinojson requires version 6.0 or above.
Completely used 4 boards, 2 base boards, and 2 panels
The sequence is as follows: panel 1 is used as a baffle, substrate 1 is welded with esp12f, battery holder, OLED display, etc., substrate 2 is welded with 4p female header for plugging in the temperature and humidity sensor, and panel 2 is welded with ws2812 lamp.
The corresponding copper pillar specifications are: panel 1 - substrate 1, double-pass copper pillar of 8mm, substrate 1 - substrate 2, single-pass copper pillar of 23mm or above, substrate 2 - panel 2, single-pass copper pillar of 9mm or above.
Screws, 3mm*5mm.
Note on the materials: ws2812 has 6 pins, not 4 pins, you can modify it as needed.
Tips: 1. If the button does not work, you can press and hold it because there is a sequence. If you want to turn off and restart the light after it is turned on.
2. One side of the oled welded can easily become crooked. You can cut the other side with a hot melt glue stick or pad it with other non-conductive things.
3. Solder the pin header of the OLED. Since the esp12f is a bit thick and there are some capacitors on the back of the OLED, you need to remove the plastic part on the other pin header and install it into one
The two plastic fixing posts formed on top are just right.
4. You can adjust the required panels according to your needs. For example, you don’t need the temperature and humidity sensor and ws2812 light panel, or you don’t even need the front panel.
5. Some signals are transmitted through copper pillars, and nylon pillar materials that are not conductive cannot be used.
Regarding power consumption, I used a 1600ma 18650 battery, and the actual test showed no problem in 24 hours of standby. After all, 18650 is much cheaper than lithium batteries and can be replaced with larger capacity batteries as needed.
Or add a clock module yourself and turn off wifi to save power.
See HD video: Bilibili Demonstration
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