-------------------------------------------------segmentation Wire-----------------------------------------------
feature | illustrate |
---|---|
oled display | Current voltage, power, power consumption, temperature and humidity can be printed on the OLED screen |
Isolated current and voltage collection | It is safer than non-isolated sampling |
touch control | It's tiring to press the buttons with your hands, so I added touch (fog |
voice control | Can be connected to smart speakers such as Xiaoai (can be used on mobile phones), Xiaodu, Tmall, etc. |
PCB size | Controlled within approximately 61x64mm, it can be easily inserted into the 86 cassette |
Integrated socket | No need to connect additional output lines, output directly through the onboard socket |
ESP07 side welding | It solves the area occupation problem of the ESP module very well, and also solves the problem of the signal being blocked by copper coating. |
WS2812 night light | You can set a variety of light effects, such as cold white, warm white, and the most important thing is RGB to increase performance by 100% (fog |
TypeC interface | Commonly used with most mobile phone data cables today, no need to look for additional wires |
WS2812 indicator light | Different colors for different power displays can be set in the firmware, and the indicator light automatically turns off when the night light is turned on. |
Screen turns off automatically | Wake up the screen by touching the switch (the OLED survival time can be set in the firmware) |
Temperature and humidity sensor | Can collect temperature and humidity data at home and send it to the server, and view charts in the app |
type | name | illustrate |
---|---|---|
WIFI module | ESP-07 | It occupies a small area, has sufficient io, and comes with a ceramic antenna, and the signal is stronger than a PCB antenna. |
Voltage and current sampling chip | HLW8032 | Only one pin is needed to communicate with the microcontroller, and the circuit is simple |
relay | HK4100F-DC5V-SHG | Although the current is only 3a, 600w is enough for use. The important thing is that it is small! |
Temperature and humidity sensor | SHTC3 | Using i2c communication method, it can be connected in parallel with OLED, reducing IO usage and the chip is super small! The circuit is super simple! |
Indicator light/night light | WS2812B-3535 | Multiple colors can be set, and only a single IO is needed to set the light effects of multiple LEDs. |
touch chip | SD8223LC | Has self-calibration function and can set different working modes through resistors |
Serial chip | ch340c | There is no need for an external crystal oscillator and it is small in size. Why is it not suitable for other smaller e or n? Because the ESP’s automatic placement needs to use the dtr and rts pins at the same time. |
Library | illustrate |
---|---|
Blinker | The core library of the program, Blinker, is a set of cross-hardware and cross-platform IoT solutions that are very easy to use and support a variety of devices. |
Fastled | Library for controlling WS2812 |
HLW8032 | HLW8032 fuel gauge chip library |
SparkFun_SHTC3 | SparkFun SHTC3 Temperature and Humidity Sensor Library |
OneButton | A simple key library that implements multiple operations by binding callback functions: single click, double click, long press, etc. It is very convenient and you don’t have to write your own judgment formulas. |
Adafruit_SSD1306 | Adafruit’s OLED library |
Adafruit_GFX | Adafruit's graphics library, similar to u8g/u8g2 |
font | The 10px and 14px font libraries created using http://oleddisplay.squix.ch/#/home are used for oled display, because the Adafruit GFX library comes with too few font libraries. |
Rows | illustrate |
---|---|
5-15 | library definition |
17-19 | Define WIFI SSID password and Blinker key |
20-68 | Various parameter definitions |
70-92 | Bind oled screen, HLW8032, SHTC3, blinker component, OneButton component |
94-107 | Various constant definitions |
109-150 | Custom icon (oled display) |
153-361 | Various definitions of blinker, please see the program for details |
363-386 | onebutton's callback function |
394-443 | setup function |
445-454 | loop function |
456-480 | Update app icon and update sensor data |
497-501 | buzzer |
503-512 | indicator light |
514-526 | night light timer |
528-530 | Convert bool to string |
532-542 | Screen automatically sleeps |
544-608 | screen display |
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