- I -摘 要当今社会,随着人们生活水平日益提高,人们在物质生活得到满足的情况下,对精神生活的追求也日益丰富,就如现在小区中的宠物越来越多,宠物的饲养可以调节人们的心情,可以丰富人们的日常生活,饲养宠物凭借其不可替代的消遣新乐趣, 在城市居民生活中应运而生。随着科技的进步,智能化逐渐走进人们的日常生活,这也就为宠物的智能化饲养提供了方向。能够实现对宠物的智能化管理,这将会极大的节省人们的工作量。本设计采用 STM32F103C8T6 作为主控芯片。系统上电后,根据所需要求设定好温度值,室温传感器 DHT11 实时测试室内温度,单片机以采样频率(根据需求定)对室温传感器的温度值进行读取,单片机根据读取的温度值与阈值进行比对,如果温度值高于阈值,则打开风扇,实现降温效果;同时定时开启喂水装置,对宠物进行喂水;根据光照的不同,如果光照较弱则打开 LED 灯进行补光。在程序设计方面,本设计采用了 freeRTOS 操作系统,采用了多任务方式,增强了单片机处理的实时性。- II -关键词: 单片机;温湿度传感器;光敏传感器;继电器;定时器AbstractIn today's society, with the increasing of people's living standard, people under the condition of the material life satisfaction, the pursuit of spiritual life is also increasingly rich, just as there are more and more village of pet, pet raising can adjust the mood, can enrich People's Daily life, keeping pets with its irreplaceable new fun pastime, arises at the historic moment in the urban life. With the progress of science and technology, intelligence has gradually entered People's Daily life, which also provides a direction for the intelligent raising of pets. Intelligent management of pets can be realized, which will greatly save people's workload.This design adopts STM32F103C8T6 as the main control chip. After the system is powered on, according to the requirements set temperature and room temperature sensor DHT11 real-time test indoor temperature, single chip microcomputer to sampling frequency (according to demand) t...