公共区域智能垃圾桶设计摘 要本文主要设计了一种基于 STC89C52RC 单片机的多功能智能垃圾桶的控制系统。该设计主要由超声波传感器测距控制电路、光电感应器控制电路、电机驱动控制电路和语音报警指令控制电路等功能电路组成,以超声波测距传感器、RPR220 传感器和光电单片机驱动电路为设计核心,通过超声波传感器采集垃圾桶的距离报警信息,再经过转换使得单片机自动发出语音报警指令。当通过超声波传感器检测到一个人与垃圾桶的距离远远小于单片机设定的距离,此时垃圾桶系统会自动进行翻盖。当通过 RPR220 光电感应器检测到垃圾桶已满,系统就会自动进行语音报警提示。本系统主要具有控制系统结构简单、运行流畅、可靠性好、价格低廉智能化等优点,进一步有效隔离了人与垃圾桶的接触。进一步提升公共生活场所的环境质量,实现洁净、环保的目的。关键词:单片机;智能垃圾桶;超声波传感器;RPR220 光电传感器;IABSTRACTThis PaPer mainly designs a kind of multifunction control system of garbage can based on STC89C52RC Photoelectric MCU. The design is mainly comPosed of ultrasonic sensor distance measurement control circuit, Photoelectric sensor control circuit, motor drive control circuit and voice alarm command control circuit and other functional circuits, with ultrasonic distance measurement sensor, RPR220 sensor and Photoelectric singlechiP drive circuit as the design core, through the ultrasonic sensor to collect the distance alarm information of garbage cans. When the ultrasonic sensor detects that the distance between a Person and the garbage can far less than the distance set by the singlechiP, the garbage can system will automatically fliP the cover; when the RPR220 Photoelectric sensor detects that the garbage can is full, the system will automatically give a voice alarm PromPt. It has the advantages of simPle structure, smooth oPeration, good reliability, low Price, intelligence and so on, and further effectively isolates the contact between PeoPle and the garbage...