基于STM32F103ZET6主控芯片和TFT屏、ESP8266-01 WIFI模块的智能鞋柜解决方案
概述
虽然市场上已经慢慢出现健康家居产品,鞋柜系列产品还没出现可远程控制,自动功能,针对上诉情况,设计了智能鞋柜这款产品,比如冬天温度冷,下雨天湿鞋,鞋子发臭,可以自动帮你搞定,充分保护你的脚健康。本项目是在基于STM32开发一款无线控制,多方面检测的智能健康鞋柜,通过测量鞋柜内环境的各种参数,自主进行除臭,杀菌,烘干等工作,也可通过APP进行无线控制等。项目主要基于STM32F103ZET6上开发,TFT屏显示,用ESP8266-01WIFI模块作为传输部分,用各类传感器来测量鞋柜内环境,从而控制鞋柜内一些电器的工作。
产品功能
1.测量到鞋柜内的温湿度,臭味浓度,室内的温度。
2.利用app远程操控鞋柜门开关,自动开关灯。
3.操纵杀菌消毒功能开关。
4.除湿功能:我们的智能鞋柜除湿有两种方式,一种是利用app直接开启烘干功能除湿,还有一种恒温模式可以让柜内一直保持35℃的恒温。
5.检测异常自动调节功能,当鞋柜内湿度到达60%时,柜内的加热片就会自动加热除湿直至湿度下降至原来水平;当鞋柜内异味气体浓度到达3%时,柜内的负离子和紫外灯会同时打开祛除鞋子异味直至下降至原来水平。
6.定时除湿和烘干,可以在app中设定好时间让鞋柜开始除湿和烘干,到时间它就会自动关闭。
7.检测气体异味浓度,判断鞋子当前的洁净度并将信息反馈回app从而提示你清洁你的鞋子。
产品结构
硬件设计
鞋柜硬件设计包括制作一个STM32F103ZET6的最小系统的扩展板,搭载一个2.8寸的显示屏,实时显示鞋柜内环境的情况和电器的工作状态。比如说用DHT11测量鞋柜内的温湿度,用DS18B20测量鞋柜外环境的温度。实时显示开关门的情况,杀菌消毒的情况,烘干加温的情况。制作一个220V转5V的电源模块,加热模块,杀菌消毒模块。
本项目的功能系统的方框图如图,主要由STM32主控板、温湿度模块DHT11、温度传感器DS18B20、MQ135气体传感器、MR995舵机、加热模块(PTC加热片)、杀菌/消毒模块、电源模块、无线WIFI模块ESP8266等9大部分组成。
STM32主控板:是系统的核心,其处理能力强大,拓展潜力巨大,负责处理模块间的交流,负责收集温度,湿度,气体浓度,通过无线WIFI与APP进行交流,发送数据,控制杀菌,消毒与加热功能。
温度:用于测量鞋柜内温度与鞋柜外温度。
湿度:用于测量鞋柜内湿度。
MQ135:用于测量鞋柜内臭味浓度(硫化氢,氨气)。
舵机:用于控制门的开关。
加热模块:用于烘干与恒温功能。
杀菌/消毒模块:用于杀菌与消毒功能。
照明模块:开门自动开启LED灯照明。
电源模块:用于220V转5V电流供电,还有备用电源自动转换。
手机APP
APP制作主要在于界面的优化与功能的增加,比如主界面,跳转界面,还有一些温馨提示和警告弹窗。另外我们还加入了天气预报在APP中,方便用户查看出门时的天气情况,我们还在APP里面加了一些健康知识。下面是APP界面的图片。
STM32F103ZE
Mainstream Performance line, ARM Cortex-M3 MCU with 512 Kbytes Flash, 72 MHz CPU, motor control, USB and CAN
The STM32F103xC, STM32F103xD and STM32F103xE performance line family incorporates the high-performance ARM®Cortex®-M3 32-bit RISC core operating at a 72 MHz frequency, high-speed embedded memories (Flash memory up to 512 Kbytes and SRAM up to 64 Kbytes), and an extensive range of enhanced I/Os and peripherals connected to two APB buses. All devices offer three 12-bit ADCs, four general-purpose 16-bit timers plus two PWM timers, as well as standard and advanced communication interfaces: up to two I2Cs, three SPIs, two I2Ss, one SDIO, five USARTs, an USB and a CAN.
The STM32F103xC/D/E high-density performance line family operates in the –40 to +105 °C temperature range, from a 2.0 to 3.6 V power supply. A comprehensive set of power-saving mode allows the design of low-power applications.
These features make the STM32F103xC/D/E high-density performance line microcontroller family suitable for a wide range of applications such as motor drives, application control, medical and handheld equipment, PC and gaming peripherals, GPS platforms, industrial applications, PLCs, inverters, printers, scanners, alarm systems video intercom, and HVAC.
Key Features
Core: ARM® 32-bit Cortex® -M3 CPU
72 MHz maximum frequency, 1.25 DMIPS/MHz (Dhrystone 2.1) performance at 0 wait state memory access
Single-cycle multiplication and hardware division
Memories
256 to 512 Kbytes of Flash memory
up to 64 Kbytes of SRAM
Flexible static memory controller with 4 Chip Select. Supports Compact Flash, SRAM, PSRAM, NOR and NAND memories
LCD parallel interface, 8080/6800 modes
Clock, reset and supply management
2.0 to 3.6 V application supply and I/Os
POR, PDR, and programmable voltage detector (PVD)
4-to-16 MHz crystal oscillator
Internal 8 MHz factory-trimmed RC
Internal 40 kHz RC with calibration
32 kHz oscillator for RTC with calibration
Low power
Sleep, Stop and Standby modes
VBAT supply for RTC and backup registers
3 × 12-bit, 1 μs A/D converters (up to 21 channels)
Conversion range: 0 to 3.6 V
Triple-sample and hold capability
Temperature sensor
2 × 12-bit D/A converters
DMA: 12-channel DMA controller
Supported peripherals: timers, ADCs, DAC, SDIO, I2 Ss, SPIs, I2 Cs and USARTs
Debug mode
Serial wire debug (SWD) & JTAG interfaces
Cortex® -M3 Embedded Trace Macrocell™
Up to 112 fast I/O ports
51/80/112 I/Os, all mappable on 16 external interrupt vectors and almost all 5 V-tolerant
Up to 11 timers
Up to four 16-bit timers, each with up to 4 IC/OC/PWM or pulse counter and quadrature (incremental) encoder input
2 × 16-bit motor control PWM timers with dead-time generation and emergency stop
2 × watchdog timers (Independent and Window)
SysTick timer: a 24-bit downcounter
2 × 16-bit basic timers to drive the DAC
Up to 13 communication interfaces
Up to 2 × I2 C interfaces (SMBus/PMBus)
Up to 5 USARTs (ISO 7816 interface, LIN, IrDA capability, modem control)
Up to 3 SPIs (18 Mbit/s), 2 with I2 S interface multiplexed
CAN interface (2.0B Active)
USB 2.0 full speed interface
SDIO interface
CRC calculation unit, 96-bit unique ID
ECOPACK® packages
电路原理图
责任编辑:Davia
【免责声明】
1、本文内容、数据、图表等来源于网络引用或其他公开资料,版权归属原作者、原发表出处。若版权所有方对本文的引用持有异议,请联系拍明芯城(marketing@iczoom.com),本方将及时处理。
2、本文的引用仅供读者交流学习使用,不涉及商业目的。
3、本文内容仅代表作者观点,拍明芯城不对内容的准确性、可靠性或完整性提供明示或暗示的保证。读者阅读本文后做出的决定或行为,是基于自主意愿和独立判断做出的,请读者明确相关结果。
4、如需转载本方拥有版权的文章,请联系拍明芯城(marketing@iczoom.com)注明“转载原因”。未经允许私自转载拍明芯城将保留追究其法律责任的权利。
拍明芯城拥有对此声明的最终解释权。