aerobotics

[Creative PCB] Mid-Autumn Festival Creative Night Light

 
Overview

Main hardware: ESP-12F, Qiyingtailun CI-B02GS01S offline voice module, DS3231 clock module, DHT11 temperature and humidity module, MH-CD42 lithium battery boost protection board, 1 18650 battery, 1 microphone with a sensitivity of -38db, One 8-ohm 2-watt speaker, two 0.56-inch 4-bit common cathode digital tubes, driven by 74HC595. IMG_20210907_200720.jpg Main functions: It can be controlled by voice to display time, date, temperature, humidity, battery voltage, turn off the digital tube, display three colors of lights, turn on and off the night light (there is something wrong with the circuit of the night light part, temporarily let it be displayed at the same time red, green, and blue lights instead). You can also switch the content displayed on the digital tube through the buttons in the upper right corner.

Program part: Two versions of the program were written for ESP-12F. One is a purely offline version. The module enables Light-sleep mode and turns off WIFI to reduce power consumption. The time is mainly based on the time of DS3231; the other version of the program After being connected to the blinker Internet of Things platform, the clock can be controlled to display different contents and lights through the mobile phone, and at the same time, temperature and humidity data can be transmitted back, and the time can also be calibrated (obtaining network time) with one click. Both versions of the program have their own advantages and disadvantages. Program 1 has good display effect, high digital tube refresh rate, low flicker, and low power consumption. However, the time of the DS3231 clock module cannot be calibrated through the network. You can only re-flash the program or use other methods. calibration. Program 2 is powerful, but consumes a lot of power and has poor display effects (the blinker program takes a certain amount of time to complete a loop, which causes serious flickering of the digital tube. The solution is to use the max7219 chip to drive it). Currently, the first program is used because it is battery-powered to reduce power consumption as much as possible while improving the display effect.

Note: Currently, I have found several design deficiencies. (1) ESP_12F needs to pull down GPIO0 when burning. I did not draw the pull-down button in the original schematic, so now I need to use tweezers to short GPIO0 and GND every time I burn. Accepted, it has been corrected now. (2) PWM3, PWM4, and PWM5 of the CI-B02GS01S offline voice module can be fully utilized. Currently, these three IO ports are used to control RGB lights. Infrared receiving and transmitting circuits can also be added to control air conditioners, TVs, fans, etc. Equipment, I feel this is more practical. (3) The night light part feels a bit abrupt, mainly to tie in with this Mid-Autumn Festival event. The initial idea was to make a top cover, install the night light on the top cover, and then 3D print a moon lamp shade and place it on top. There is a discrepancy between the size of the upper cover and the size of the main body, so the drawing board needs to be redrawn. For the time being, I will use the method in the picture to set up the lanterns, and I will slowly improve them later. IMG_20210905_210039.jpgIMG_20210905_210121.jpg

参考设计图片
×
Design Files
 
 
Search Datasheet?

Supported by EEWorld Datasheet

Forum More
Update:2025-06-20 22:16:27

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
community

Robot
development
community

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号