sigma

#The Fifth Lichuang Electronic Design Competition#Smart Home

 
Overview

The project has not been completed. Video 3 only has two functions for shooting. At present, the basic functions have been roughly realized, but the integration has not been completed.

1. Team introduction:

1. Team name: Forward Four

2. Members: (from Shenzhen University)

Su Yongbiao 2019282108

Huang Zehui 2018161033

He Wenlong 2019111058

Tan Wenjie 2019281009

2. Project introduction:

1. Project name: Smart clock

2. Function introduction: The main control of this product is STM32f103zet6, using a 4.3-inch capacitive touch display, with functions such as displaying time and date, indoor and outdoor temperature and humidity, city weather, alarm clock, song playback, todolist small application, etc. It uses a 3.7V lithium battery and is rechargeable. It can be inserted into an SD card and connected to a computer to download songs or store other information.

3. Project details

1. The ultimate goal of the "smart clock" project is a smart home system. As a transitional product (it is not capable of directly reaching the final goal), some aspects of the smart home system are therefore taken into consideration.

2. The intelligent clock master uses STM32F103ZET6, 144pin pins, and has powerful performance;

3. The screen uses a 4.3-inch 480*800 high-definition capacitive touch screen (supports RGB/MCU dual interface NT33510+GT9147 touch IC), supports five-point touch, and has strong performance;

4. The wifi module uses ESP-12F, 2.4GHz spectrum range, and the serial port transmission can be up to 4608000bps. On the smart clock, you can search for surrounding wifi to connect;

5. City weather display, obtain multi-city weather through the Internet, and display it on the LCD screen;

6. The mobile phone host computer obtains the data uploaded by the smart clock from the smart cloud platform, so that it can easily check indoor temperature and humidity, etc., and supports remote viewing. The host computer can set the smart clock alarm function (the alarm clock is described below), and can set the todolist application on the smart clock. If a reminder is set, the alarm will sound when the time comes. There are also some other features;

7. The time display is the time output from the main control chip RTC. In addition, it can also be obtained through the ESP-12F network to check the time and automatic settings;

8. The alarm clock also uses RTC, combined with the voice module XY-V17B and audio amplifier LTK5128D, to sound the default music at the set time or set it by yourself;

9. Support music playback. Enter the music application to adjust the volume, change songs, and set the playback order;

10. Todolist small application, which records some matters, uses GD25Q127 model SPI Flash with a memory of 128M. In addition, the memory also stores sensor acquisition values ​​for some periods of time for review;

11. DHT22 is used to obtain indoor temperature and humidity, which has the advantages of long-term stability, small size, low power consumption, and high accuracy (±0.5 degrees, ±2%RH relative humidity);

12. The screen supports automatic brightness adjustment, using BH1750FVI for light intensity detection, and then automatically adjusts the brightness of the display;

13. The power supply uses 18650 large-capacity battery. The battery has dual protections of PTC (thermal temperature control protection) and explosion-proof valve (explosion-proof protection), which is safe and reliable;

14. Supports charging and discharging, using tp4056 chip, and also designed DW01 and 8205A battery protection. The battery voltage is 3.7-4.2V, which is raised to 5V through the PS7516 boost chip to support the use of some other devices on the board;

15. For power display, there is a 0.005 ohm resistor connected to the power ground. The main control ADC measures the voltage at the other end and calculates the power through an algorithm;

16. 3 buttons can control some things, such as volume adjustment, etc.;

17. The charging interface adopts type-c

4. Challenges faced by the project and problems solved

challenge the problems it solves
Contact learning and hardware drawing of LCD touch screen into the board Screen display and touch positioning
Learning of voice module and design of audio power amplifier circuit Play music, alarm clock, message tone
IoT development Obtain data through the Internet and exchange data between mobile phones and smart clocks

5. Key points involved in the hardware and software parts of the project

module Hardware key points Software key points
LCD touch screen Driver file (LCD screen chip N35510 and capacitive screen chip GT9147) GUI design (drawn using emwin)
wifi module Level status, onboard antenna signal quality Network protocol, information transmission packet loss
Voice module Set the working mode by pulling up and down the pin level Operation of music files and reading of user manual
Photosensitive sensor BH1750 Avoid use in strong magnetic fields I2~~~~C communication, the address when the ADDRESS pin is connected to ground is 0x46, and when connected to power, the address is 0xB8
Temperature and humidity sensor DHT22 When measuring humidity, try to ensure that the humidity sensor works at the same temperature Single bus communication, 2s interval between two measurements
Charge and discharge module Charge and discharge circuit composed of TP4056, DW01 and 8205A none
Boost module PS7516 boosts voltage to 3.7-5, design of voltage dividing resistor none
Power detection ADC measures the voltage across the current sensing resistor Coulomb counting method (integration of current)

6. Project Material List Most of the components in the BOM list at the end of the article are components that need to be purchased separately.

serial number device
1 BH1750FVI
2 DHT22
3 esp-12f
4 xy-v17b
5 Speaker 8 ohm 0.5w

7. Project pictures

Schematic diagram

Schematic_#The Fifth Lichuang Electronic Design Competition#Smart Home_2020-09-13_10-32-28.png PCB

PCB_Smart Clock PCB_2020-09-13_10-37-05.png

3D

3D reverse side.png3D front.png

Physical map

< br> < br> 8. The project has not been published and is the first edition.

9. Open source documents

10. References

Punctual Atomic "STM32F1 EMWIN Development Manual_V2.0"

"emWin5_V5.42_Chinese version"

XY-V17B Standard MP3 Mode Application Manual.pdf

XY-V17B UART mode application manual.pdf

BH1750FVI.pdf

GY-30 Chinese instructions.pdf

参考设计图片
×
 
 
Search Datasheet?

Supported by EEWorld Datasheet

Forum More
Update:2025-05-15 03:18:14

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号