Touching induction garbage container with standby-opening function and controlling method thereof
10526139 ยท 2020-01-07
Assignee
Inventors
Cpc classification
B65F1/1638
PERFORMING OPERATIONS; TRANSPORTING
International classification
Abstract
A controlling method for touching induction garbage container with standby-opening function is provided. It provides a standby-opening working mode managed by a timing unit provided in a microcontroller. The timing unit times the triggering time of the microswitch foot pedal. As a user has touched the microswitch foot pedal for more than an induction time, setting as t seconds, the microcontroller will be switched to the standby-opening working mode. The microcontroller will be switched back to a regular working mode if the microswitch foot pedal is being touched again. The present invention provides a technical solution of a practical combination of a regular working mode and a standby-opening working mode, which is fully ergonomic and easy to utilize while ensuring service life spans of the driving mechanism and apparatus, increasing service life span of the battery and enhancing the power-saving performance of the touching induction garbage container.
Claims
1. A controlling method for touching induction garbage container, comprising the steps of: providing a touching induction garbage container, which comprises a container body, a container lid, a driving mechanism, a motor, a motor driving and controlling circuit, a microswitch foot pedal, and a microcontroller, wherein the container lid is connected with the driving mechanism and the driving mechanism is connected to the motor driving and controlling circuit through the motor, wherein a circuit of the microswitch foot pedal and the motor driving and controlling circuit are both connected to an input port and an output port of the microcontroller respectively; receiving a triggering signal when the microswitch foot pedal is triggered, wherein the microcontroller has a timing unit which is preset to be t seconds as an induction time for standby opening, wherein when the microswitch foot pedal is triggered, the microcontroller receives the triggering signal; starting a container lid opening process which includes controlling the motor driving and controlling circuit to drive the motor to rotate forward through the microcontroller to further drive the driving mechanism to act and open the container lid, wherein when the container lid is opened, the motor stops rotating; activating the timing unit to count time when the container lid opening process starts until the triggering of the microswitch foot pedal is released, the triggering signal being sent to the microcontroller stops and the time counting is completed, and a counted timing is obtained; and comparing the counted timing with the preset t seconds of the induction time for standby opening; entering a regular working mode if the counted time is shorter than the preset t seconds of the induction time, wherein when the microcontroller enters the regular working mode: the container lid is kept being opened for s seconds after the container lid opening process, and then a container lid closing process is implemented, wherein the container lid closing process includes controlling the motor driving and controlling circuit to drive the motor to rotate backward through the microcontroller, such that the motor drives the driving mechanism to act and close the container lid, wherein when the container lid is closed, the motor stops rotating and the induction garbage container enters a standby mode; and entering a standby-opening working mode if the counted time is longer than the preset t seconds of the induction time, wherein when the microcontroller enters the standby-opening working mode, the motor is remained motionless after the container lid opening process is finished and the container lid is kept in the opened state, wherein after the microswitch foot pedal is released, the microcontroller still remains the opened state, wherein when the microswitch foot pedal is triggered again, the microcontroller receives the triggering signal again and enters the container lid closing process, wherein when the container lid is closed, the microcontroller enters the standby mode.
2. The controlling method, as recited in claim 1, wherein the microcontroller comprises a wakeup port, connected with the circuit of the microswitch foot pedal, wherein after the triggering of the microswitch foot pedal is released in the standby-opening working mode, the microcontroller does not receive the triggering signal while enabling the wakeup port and entering the sleep mode, wherein when the wakeup port receives another triggering signal from the circuit of the microswitch foot pedal, the microcontroller quits the sleep mode, executes the container lid closing process, and enters the standby mode.
3. The controlling method, as recited in claim 1, wherein the induction time, t seconds, for long opening the container lid is 2-4 seconds.
4. The controlling method, as recited in claim 1, wherein the microswitch foot pedal further comprises a LED indicator arranged on top thereof, wherein the LED indicator has a control connected with the output port of the microcontroller, such that when the microswitch foot pedal is triggered and the microcontroller receives the triggering signal, the microcontroller outputs a signal to light up the LED indicator, wherein if the induction time is longer than the t seconds of the induction time, the microcontroller enters the standby-opening working mode and outputs a signal to turn off the LED indicator.
Description
BRIEF DESCRIPTION OF THE DRAWINGS
(1)
(2)
(3)
(4)
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENT
(5) The following description is disclosed to enable any person skilled in the art to make and use the present invention. Preferred embodiments are provided in the following description only as examples and modifications will be apparent to those skilled in the art. The general principles defined in the following description would be applied to other embodiments, alternatives, modifications, equivalents, and applications without departing from the spirit and scope of the present invention.
(6) Referring to
(7) Referring to
(8) S101: initializing the application program, setting the 1st pin, the 2nd pin, the 12th pin, the 13th pin, and the 14th pin of the microcontroller 7 as the output port, and setting the 10th pin of the microcontroller 7 as the input port. The 1st pin and the 14th pin are set as high level, while the 2nd pin, the 12th pin, and the 13th pin are set as low level, wherein, at this moment, the LED indicator 8 is turned off, the triodes Q1-Q4 of the motor driving and controlling circuit 5 are in a cut-off state, the motor 4 is in outage, and the 10th pin is at high level because the microswitch has not been connected and the 10th pin is connected to the positive electrode of the power source through the R1 resistance.
(9) S102: reading the port state of the 10th pin of the microcontroller 7 through the application program, wherein if it is at high level, the 10th pin is able to actuate the wakeup function.
(10) S103: executing a sleep command through the application program, stopping the oscillation of the main oscillator in the microcontroller 7, such that as long as the 10th pin of the microcontroller 7 stays at high level, the application program will not run further, and the application program will enter a regular idle and sleep state.
(11) S104: keeping the container lid 2 closed in the regular idle and sleep state, wherein a user may utilize his or her body to touch the microswitch foot pedal 6 if he or she needs to dump trash or garbage, such that the microswitch 9 will be connected and the 10th pin of the microcontroller 7 will switch from its original high level to low level, wherein the application program will be awaken from the regular idle and sleep state. Then, the main oscillator of the microcontroller 7 will start to oscillate and the application program will be resumed. The 2nd pin of the microcontroller 7 will be set to high level, the LED indicator 8 will be turned on, the 1st pin and the 12th pin of the microcontroller 7 is set to low level, the 13th pin and the 14th pin of the microcontroller 7 is set to high level, the triodes Q1 and Q4 of the motor driving and controlling circuit 5 are connected, and the triodes Q2 and Q3 of the motor driving and controlling circuit 5 are in the cut-off state, such that the motor 4 obtains electricity of the positive direction so as to rotate forward and to drive the driving mechanism 3 to open the container lid 2.
(12) S105: setting the 12th pin and the 13th pin of the microcontroller 7 to low level and setting the 1st pin and the 14th pin of the microcontroller 7 to high level when the container lid 2 is opened in place, wherein the triodes Q1-Q4 of the motor driving and controlling circuit 5 are in the cut-off state, the motor 4 stops rotating, and the application program is ready to enter a delayed lid-opening state.
(13) S106: determining if the user's foot is still touching on the microswitch foot pedal 6, wherein if not, the microswitch 9 is switched off, such that the 10th pin of the microcontroller 7 is set to high level and the application program executes the step S107, wherein if so, the microswitch 9 is switched on, such that the 10th pin of the microcontroller 7 becomes low level and the application program executes the step S110.
(14) S107: determining if the container lid has opened for 3 seconds or more, wherein if it is not 3 seconds yet, the application program executes the step S106, wherein if it has been 3 seconds, the application program executes the step S108.
(15) S108: setting the 1st pin and the 12th pin of the microcontroller 7 to high level and setting the 13th pin and the 14th pin of the microcontroller 7 to low level, wherein the triodes Q1 and Q4 of the motor driving and controlling circuit 5 are in the cut-off state, the triodes Q2 and Q3 of the motor driving and controlling circuit 5 are connected, such that the motor 4 is powered with electricity in a reverse direction and the motor rotates backward to drive the driving mechanism 3 to close the container lid 2.
(16) S109: setting the 12th pin and the 13th pin of the microcontroller 7 to be low level and setting the 1st pin and the 14th pin of the microcontroller 7 to be high level when the container lid is closed completely in place, wherein the triodes Q1-Q4 of the motor driving and controlling circuit 5 are in the cut-off state, the motor 4 stops rotating and the application program is ready to shift to the step S102 to enter a regular standby mode.
(17) S110: determining if the time t of touching the microswitch foot pedal 6 is longer than 3 seconds, wherein if it is shorter than 3 seconds, the application program executes the step S106, wherein if it is longer than 3 seconds, the application program executes the step S111.
(18) S111: setting the 2nd pin of the microcontroller 7 to be low level to turn off the LED indicator 8 and prompt the user that the application program has entered the standby-opening state and that the user may retract his or her foot from touching the microswitch foot pedal 6.
(19) S112: determining if the user has retracted his or her foot from touching the microswitch foot pedal 6, wherein if not, the 10th pin of the microcontroller 7 is set to low level and the program will continue on executing the step S112 and wait for the foot retraction, wherein if so, the 10th pin of the microcontroller 7 becomes high level and the application program executes the step S113.
(20) S113: reading the port state of the 10th pin of the microcontroller 7 through the application program, wherein because the microswitch 9 is cut off, the 10th pin of the microcontroller 7 is set to high level through R2.
(21) S114: enabling a wakeup function of the 10th pin of the microcontroller 7.
(22) S115: keeping the container lid 2 remaining in the opened state even though the user's foot has left the microswitch foot pedal 6 and executing a sleep command through the application program, wherein the oscillation of the main oscillator in the microcontroller 7 is stopped, such that as long as the 10th pin of the microcontroller 7 stays at high level, the application program will not run further and the application program will enter a long-opening sleep mode. At this state, the electricity consumption of the electric circuit is merely about 1 microampere.
(23) S116: turning on the microswitch 9 through a single touch on the microswitch foot pedal 6 when the user would like to close the container lid 2 under the long-opening state, such that the port of the 10th pin of the microcontroller 7 is switched from high level to low level and the application program is awakened from the long-opening sleep mode, wherein after the awakening, the main oscillator in the microcontroller 7 starts to oscillate and the application program executes the step S108 to close the container lid and reenters the regular idle and sleep state.
(24) Certainly, the application program may optionally not enter the sleep state during the standby-opening state. Nevertheless, it will have to continuously scan the ports and the main oscillator will have to keep oscillating in such case. As a result, the electricity consumption of the circuit will be greater, which is about 1.5 mA, but it can still allow the standby-opening function.
(25) It is worth mentioning that parts or components of the touching induction garbage container which are not described in the preferred embodiment of the present invention are similar to those of the conventional art as described in the background of the present invention.
(26) One skilled in the art will understand that the embodiment of the present invention as shown in the drawings and described above is exemplary only and not intended to be limiting.