Disclosure of Invention
In order to overcome the defects of the prior art, the invention aims to provide an energy-saving garbage sorting box door control device based on artificial intelligence and a method thereof, which guide people to correctly sort and put garbage through voice recognition and have important significance for correctly sorting and processing garbage, improving the resource utilization rate, saving energy and protecting environment.
In order to achieve the purpose, the invention adopts the technical scheme that:
an energy-saving garbage classification box door control device based on artificial intelligence comprises a garbage box 11 controlled by a microcontroller 1, wherein the inner surface of the top of the box body 11 is provided with a comprehensive control box 13, the inside of the comprehensive control box 13 is provided with the microcontroller 1, a storage battery pack 6, a solar power supply control device 5 and an electric quantity capacity detection device 8, the output of the microcontroller 1 is connected with an LED display device 4 positioned on the outer side of the front surface of the garbage box, an electromagnetic lock 2 positioned on the lower side of the box door and an opposite type photoelectric switch 3, the solar power supply control device 5 is connected with a solar battery panel 15 through a fixing support column 17, the solar battery panel 15 is positioned on the top of the garbage box 11, the solar power supply control device 5 controls the solar battery panel 15 to charge the storage battery pack 6, the storage battery pack 6 supplies power to the microcontroller 1, the opposite type photoelectric switch 3 comprises a transmitter 14 and a receiver 9, a light barrier 18 is arranged between the emitter 14 and the receiver 9, the light barrier 18 is installed on the box door 12, the light barrier 18 is perpendicular to the box door 12, and a garbage can 16 convenient for garbage cleaning is arranged at the lower half part of the garbage box 11.
Microcontroller 1 is low-power consumption embedded microprocessor LPC2103, is connected with speech recognition module 7 on microcontroller 1, and speech recognition module 7 is used for discerning the rubbish kind that the user spoken and sends corresponding signal to microcontroller 1, and microcontroller 1 is used for controlling the switch of dustbin electromagnetic lock 2.
The output end of the microcontroller 1 is connected with the correlation photoelectric switch 3.
The storage battery pack 6 is connected with an electric quantity capacity detection device 8, the device comprises an electric quantity detection module and a capacity detection module, the electric quantity detection module is connected with the microcontroller 1, and the electric quantity detection module is used for detecting the electric quantity of the storage battery pack 6 and stopping the solar cell panel 15 from charging the storage battery pack when the storage battery pack is fully charged. The garbage bin is characterized in that the capacity detection module is used for judging the full state of the garbage bin, acquired information is sent to the microcontroller 1 to be processed, if the garbage bin is full, the capacity detection module sends a changed switching value to the microcontroller 1, after the microcontroller 1 detects the signal, the LED display device 4 is controlled to present a word of 'waiting for cleaning', a control signal is generated to lock the garbage bin 11 at the position and send a cleaning request to the upper computer 10, the output end of the microcontroller 1 is connected with the LED display device 4, and the LED display device 4 is used for displaying the full state of garbage in the garbage bin.
An application method of an energy-saving garbage classification box door control device based on artificial intelligence comprises the following steps;
the garbage can capacity using condition is transmitted to the microcontroller 1 through the judgment of the capacity detection module, the state information of the garbage can is displayed in real time through the LED display device 4 by the microcontroller 1, a user sees the character of 'normal use' on a display screen, can speak out the garbage type, and divides the garbage into four types of 'harmful garbage', 'kitchen garbage', 'recoverable object' and 'other garbage' according to the classification standard of the garbage in the city of Western Ann, after voice recognition, the microcontroller 1 opens the electromagnetic lock 2 of the garbage can door and enables the correlation type photoelectric switch 3 to start working, and meanwhile, 10s time delay is carried out, whether the receiver 9 of the correlation type photoelectric switch 3 can receive an optical signal from the transmitter 14 and generate a switching value to the microcontroller 1, so that the opening and closing of the can 12 can be judged;
the user opens certain angle with chamber door 12 and carries out rubbish and put in, and correlation formula photoelectric switch 3 has realized the conversion of electricity-light-signal of telecommunication, sends the signal of telecommunication to microcontroller 1 promptly, and microcontroller 1 breaks off electromagnetic lock 2 and correlation formula photoelectric switch 3's power supply after the short-term time delay of 2s, and electromagnetic lock 2 is in time locked, and chamber door 12 self-closing under the effect of gravity practices thrift the electric energy, also reduces the pollution to the surrounding environment. If the user wakes up the device and does not throw garbage and leaves the device directly, the microcontroller 1 also powers off the electromagnetic lock 2 and the opposed photoelectric switch 3 after 10 seconds, and the energy-saving and environment-friendly effects are also achieved;
if the capacity detection module detects that the garbage can is full, a corresponding signal is sent to the microcontroller 1, the microcontroller 1 controls the LED display device 4 to display a character of 'waiting for cleaning', the garbage can 11 at the position is locked, the positions of similar nearby garbage cans are informed to a user in a voice mode, meanwhile, the microcontroller 1 sends a scheduling cleaning request to the upper computer 10, a cleaning route is reasonably planned, and normal work is recovered as soon as possible.
The invention has the beneficial effects that:
1. since 2019, garbage classification policies are implemented in most cities in China, and the memory strength of the complicated garbage is not enough for people at the initial stage, the electromagnetic lock (2) corresponding to the garbage can door (12) is automatically opened through voice recognition, so that the garbage classification device has a powerful guiding effect on the people with weak garbage classification consciousness concept.
2. After the garbage is put in, the garbage box door (12) can be automatically closed under the action of gravity, so that the garbage is prevented from polluting the surrounding environment and injuring insects.
3. The solar storage battery (6) is used for supplying power, so that power can be supplied uninterruptedly under the condition of occasional extreme weather (such as continuous overcast and rainy days), normal use is not influenced, and the solar storage battery is environment-friendly and saves electricity.
4. The microcontroller (1) and peripheral circuits used by the whole device have extremely low power consumption, and the dustbin door (12) can be automatically powered off in time after being opened, so that the consumption of electric energy is further reduced.
5. The dustbin is from taking the capacity detection mechanism, can send clearance request to host computer (10) through microcontroller (1) after filling to the rubbish is cleared to the fastest efficiency, prevents secondary pollution.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings.
Referring to fig. 1, the invention comprises a dustbin body control device and a solar power supply control system, wherein the solar power supply control system comprises a solar cell panel 15, a fixed support column 17, a storage battery pack 6 and a solar power supply control device 5. The solar cell panel 15 is arranged at the top of the garbage can and supported by the fixed support column 17 to receive light energy and charge the storage battery pack 6, and the storage battery pack 6 is responsible for supplying power to the whole device. An electric quantity capacity detection device 8 is arranged in a comprehensive control box 13 of the dustbin and is connected with the input of a microcontroller 1, the change condition of the garbage capacity state in a barrel 16 in the dustbin is sent in real time, the output of the microcontroller 1 is connected with an electromagnetic lock 2, a correlation type photoelectric switch 3, an LED display device 4 and a solar power supply control device 5, and the solar power supply control device 5 is used for controlling a solar cell panel 15 to charge a storage battery pack 6 and supplying power to the comprehensive control box.
The microcontroller 1 is a low-power-consumption embedded microprocessor LPC2103, and the LED display device 4 displays the state information of the dustbin.
The storage battery pack 6 is connected with an electric quantity detection module in the electric quantity capacity detection device 8, electric quantity detection is carried out on the storage battery pack 6, and charging is stopped when the electric quantity is judged to be full.
The opposed photoelectric switch 3 is controlled by the microcontroller 1 and is powered by the microcontroller 1. When the dustbin door 12 is closed, the electromagnetic lock 2 is locked, and the correlation type photoelectric switch 3 is in a power-off state. When the user speaks the garbage type and the voice recognition module 7 judges the garbage type, the microcontroller 1 supplies power to the electromagnetic lock 2 and the correlation type photoelectric switch 3, at the same time, the microcontroller 1 starts timing 10s, the electromagnetic lock 2 is automatically opened, before the dustbin door 12 is opened, the optical signal propagation is blocked by the light blocking sheet 18 between the emitter 14 and the receiver 9 of the correlation photoelectric switch 3, the receiver 9 cannot acquire the optical signal from the emitter 14, no signal will be output to the microcontroller 1, in which case the microcontroller 1 will not power down the electromagnetic lock 2 in advance to prevent false locking, wait for 10s, and if this 10s passes, the waste bin door 12 is not opened yet, the user is considered not to throw away the garbage actually, the microcontroller 1 cuts off the power of the electromagnetic lock 2, and the garbage box door 12 is automatically locked, so that the energy is saved and the garbage box is ready for the next person to use.
Under the normal use mode, the device identifies the garbage type, the automatic unlocking is carried out, the user starts to throw in the garbage, after the garbage box door 12 is opened, the microcontroller 1 delays for 2s to ensure that the box door 12 is completely opened (the situation that the box door is not completely and fully opened and the locking automatically locks the garbage box is avoided), at the moment, because the light blocking sheet 18 moves for a certain angle along with the box door, the light blocking sheet 18 completely leaves the space between the transmitter 14 and the receiver 9 of the correlation type photoelectric switch 3, the transmission of the optical signal sent from the transmitter 14 to the receiver 9 is not blocked, at the moment, the receiver 9 receives the signal from the transmitter 14 and sends a signal to the microcontroller 1 to indicate that the box door 12 is completely opened for a certain angle, the user can normally throw in the garbage, at the moment, the normal closing of the box door 12 is not influenced by the power failure, therefore, after the, after 2s of delay, the electromagnetic lock 2 is powered off in advance, energy and electricity are saved, and the box door 12 can be automatically closed and locked under the action of gravity after the garbage is put in.
Referring to fig. 2, the working flow of the present invention is as follows: the storage battery pack 6 is charged through a solar cell panel 15 arranged at the top of the dustbin, the storage battery pack 6 supplies power to the whole device, whether the inner barrel 16 of the dustbin is full is detected through a capacity detection module arranged in an electric quantity capacity detection device 8 in the comprehensive control box 13, and acquired state information is sent to the microcontroller 1 to be processed. If the capacity of the inner barrel 16 of the dustbin is not full, the LED display device 4 displays the character of 'normal use', a user speaks the type of the rubbish, and after voice recognition, the microcontroller 1 enables the dustbin to be unlocked automatically and starts timing for 10 s. Whether a user opens the dustbin door to throw garbage or not is judged by judging whether the receiver 9 of the photoelectric switch 3 can receive an optical signal from the emitter 14 or not, because the light blocking sheet 18 moves along with the dustbin door 12, after the dustbin door is opened for a certain angle (namely, the user can throw garbage), the photoelectric switch receiver 9 can receive the optical signal from the emitter 14 to send a signal to the microcontroller 1, and the switch lock can be turned off in advance after 2s of delay, so that the power is saved and the energy is saved. After the inner barrel 16 of the dustbin is filled with the garbage, the microcontroller 1 controls the LED display device 4 to display a character of 'waiting for clearing', the position of the nearest similar dustbin near a user is prompted by voice, meanwhile, the position is sent to the upper computer 10 to request dispatching and clearing, and the dustbin 11 is recovered to be normally used until the clearing is finished.
Referring to fig. 3, the schematic diagram of the energy-saving garbage classification box door control device includes a solar power supply control system and a garbage classification box, wherein the solar power supply control system is composed of a solar cell panel 15, a fixed support column 17, a storage battery 6 and a solar power supply control device 5. The solar power supply control system is arranged on a solar cell panel 15 at the top of the garbage can to charge the storage battery pack 6, and the storage battery pack 6 supplies power to the whole device; the garbage can 11 is provided with an electric quantity capacity detection device 8 and a correlation type photoelectric switch 3, when a garbage can door 12 is closed, a light blocking sheet 18 fixedly connected with the garbage can door 12 is arranged between a photoelectric switch emitter 14 and a photoelectric switch receiver 9, the photoelectric switch receiver 9 is connected with the input of a microcontroller 1, the output of the microcontroller 1 is connected with an electromagnetic lock 2, an LED display device 4, a correlation type photoelectric switch 3 power supply and a solar power supply control device 5, and the solar power supply control device controls a solar cell panel 15 to convert absorbed heat energy into electric energy, charge a storage battery pack 6 and supply power to the whole device.
The microcontroller 1 is connected with the electromagnetic lock 2 and the LED display device 4, adopts the low-power-consumption embedded microprocessor LPC2103, has stable control performance, has smaller package and extremely low power consumption, and meets the requirements of energy conservation and environmental protection.
The LED display device 4 is used for displaying the current state information of the dustbin in real time, displaying the word of 'normal use' when the inner barrel 16 of the dustbin is not full, and opening the dustbin door 12 through the voice recognition module 7 and the microcontroller 1; if the garbage bin 16 is full, the LED display device 4 can display the word of 'waiting for cleaning', the user cannot open the garbage bin at the moment, the voice can prompt the positions of other nearby garbage bins, the microcontroller 1 sends a scheduling signal to the upper computer 10, and after the garbage bin is opened by cleaning personnel and the garbage bin is completely processed, the normal use is restored and displayed. Then, the user can normally unlock the lock through voice.
Open after 2 circular telegrams of electromagnetic lock, close after the outage (and if the chamber door had been opened during the outage, then under the action of gravity, can normally lock), be controlled by microcontroller 1, electromagnetic lock 2 does not circular telegram under the normal conditions, rubbish chamber door 12 is in the closure state, judge out the rubbish kind when speech recognition module 7, and supply power to electromagnetic lock 2 by microcontroller 1, microcontroller 1 starts 10s regularly simultaneously, if chamber door 12 is opened during this period, then microcontroller 1 delays 2s back and immediately cuts off the power supply to electromagnetic lock 2, reach power saving and energy saving purpose. If the dustbin door 12 is not opened after 10s of delay after unlocking, the user is considered to awaken the intelligent dustbin and not throw in the rubbish but directly leave, and the microcontroller 1 cuts off the power supply to the electromagnetic lock 2, so that the effects of energy saving and power saving are achieved.
The solar cell panel 15 is positioned outside the top of the dustbin and is connected with the comprehensive control box 13 of the dustbin through a fixed support column 17, and the comprehensive control box 13 of the dustbin is used as a control center of the whole device and mainly comprises a microcontroller 1, a solar power supply control device 5, an electric quantity capacity detection device 8, a storage battery pack 6 and other peripheral circuits.
The storage battery pack 6 is connected with an electric quantity detection module in the electric quantity capacity detection device 8, carries out electric quantity detection on the storage battery pack 6, judges the current electric quantity of the storage battery pack 6, and stops the solar cell panel 15 to charge the storage battery pack when the storage battery pack is fully charged. In addition, the entire device can be continuously powered by the battery pack 6 as a backup power source in cloudy days.
The invention helps the user to correctly judge the garbage type through voice recognition, automatically opens the electromagnetic lock 2 corresponding to the garbage can, and guides people to correctly classify and throw garbage.
The electromagnetic lock has the greatest characteristics of energy and electricity saving, and the electromagnetic lock 2 and the correlation type photoelectric switch 3 are in a power-off state in idle time, so that the waste of electric energy is avoided. After the garbage is recognized by voice, the microcontroller 1 controls the electromagnetic lock 2 and the correlation type photoelectric switch 3 to be powered on for a short time to unlock, the correlation type photoelectric switch 3 is matched with the light blocking sheet 18, after the door 12 is detected to be opened, the power is cut off immediately, the door 12 can be automatically closed under the action of gravity, and the use of the device for electric energy is further reduced.
In addition, compared with the common dustbin, the dustbin door 12 is locked and closed in the idle state, so that the garbage can be isolated from the surrounding environment, and the secondary pollution of the garbage in the dustbin to the environment is reduced.
When the invention is used, the invention is usually placed outdoors. Judge the rubbish kind through speech recognition module 7, the information of acquireing gives microcontroller 1 to handle:
microcontroller 1 gives electromagnetic lock 2 circular telegram that corresponds type rubbish 11, unblanks, opens corresponding rubbish chamber door 12, also for correlation formula photoelectric switch 3 circular telegram simultaneously, and the light signal of transmission when correlation formula photoelectric switch transmitter 14 can be received by receiver 9, and 2s delay ensures that rubbish chamber door 12 has opened certain angle completely, and disconnection electromagnetic lock 2 supplies power, practices thrift the electric energy, and rubbish chamber door 12 will close automatically under the action of gravity after the user has put in rubbish.
If the light blocking sheet 18 on the dustbin door 12 is still between the photoelectric switch transmitter 14 and the receiver 9 after the lock is unlocked for 10s, the user is considered to wake up the dustbin 11 and not throw the garbage but directly leave, and the microcontroller 1 directly powers off the electromagnetic lock 2 and the correlation type photoelectric switch 3, so that the waste of electric energy is reduced as much as possible. A partial enlarged view of the dustbin door 12, the electromagnetic lock 2 and the opposed type photoelectric switch 3 is shown in fig. 4.
Further, when the capacity detection module detects that the inner barrel 16 of the dustbin is full of capacity, the microcontroller 1 controls the LED display device 4 to present a word of 'waiting for cleaning', the position of the dustbin of the same type near a user is prompted by voice, a cleaning request is sent to the upper computer 10, the LED display device 4 of the dustbin 11 displays a word of 'normal use', and the user can classify and throw in the garbage at the dustbin.