CN111273539B - Control device and control method of disposable alarm clock - Google Patents

Control device and control method of disposable alarm clock Download PDF

Info

Publication number
CN111273539B
CN111273539B CN202010236726.0A CN202010236726A CN111273539B CN 111273539 B CN111273539 B CN 111273539B CN 202010236726 A CN202010236726 A CN 202010236726A CN 111273539 B CN111273539 B CN 111273539B
Authority
CN
China
Prior art keywords
alarm clock
signal
main control
switch
control unit
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010236726.0A
Other languages
Chinese (zh)
Other versions
CN111273539A (en
Inventor
奥利弗·理查德·纽顿·海明
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ao LifuLichadeNiudunHaiming
Original Assignee
Ao LifuLichadeNiudunHaiming
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ao LifuLichadeNiudunHaiming filed Critical Ao LifuLichadeNiudunHaiming
Priority to CN202010236726.0A priority Critical patent/CN111273539B/en
Publication of CN111273539A publication Critical patent/CN111273539A/en
Application granted granted Critical
Publication of CN111273539B publication Critical patent/CN111273539B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G04HOROLOGY
    • G04GELECTRONIC TIME-PIECES
    • G04G13/00Producing acoustic time signals
    • G04G13/02Producing acoustic time signals at preselected times, e.g. alarm clocks
    • GPHYSICS
    • G04HOROLOGY
    • G04GELECTRONIC TIME-PIECES
    • G04G13/00Producing acoustic time signals
    • G04G13/02Producing acoustic time signals at preselected times, e.g. alarm clocks
    • G04G13/021Details
    • GPHYSICS
    • G04HOROLOGY
    • G04GELECTRONIC TIME-PIECES
    • G04G21/00Input or output devices integrated in time-pieces
    • G04G21/08Touch switches specially adapted for time-pieces

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Electric Clocks (AREA)

Abstract

The invention relates to a control device and a control method of a disposable alarm clock, which are used for electronic equipment with the function of the alarm clock, wherein the electronic equipment comprises a sound generating device and an alarm clock setting module which is in control connection with the sound generating device, a switch is connected between the alarm clock setting module and the sound generating device, the control device comprises a main control unit, a sound wave detection unit which is connected with the sound generating device and a switch unit which is connected with the switch, the alarm clock setting module is in control connection with the main control unit, and the main control unit is respectively in control connection with the sound wave detection unit and the switch unit. The invention is suitable for any electronic equipment with alarm clock function; on locating alarm clock setting module and sound generating mechanism's the connecting path through with controlling means, on the one hand carry out real-time detection, on the other hand control the switch that is located the connecting path to sound generating mechanism's sound wave, when detecting the ringtone and ending, control switch disconnection to cut off alarm clock transmission signal, realize real disposable alarm clock.

Description

Control device and control method of disposable alarm clock
Technical Field
The invention relates to the field of alarm clock control, in particular to a control device and a control method of a disposable alarm clock.
Background
People order hotels on business trips or travels to relieve fatigue. Before a customer has a rest, the hotel is usually required to provide a wake-up service to remind the customer to get up on time, but the wake-up service needs to inform service personnel of specific wake-up time in advance, and once the customer changes temporarily, the customer needs to inform the service personnel again, and the risk that the service personnel forget to wake up on time exists. Therefore, some hotels provide each room with a hotel alarm clock for customers to use, but the traditional hotel alarm clock cannot be cancelled automatically, if the customer leaves the store without cancelling the alarm clock, the newly-checked customer will be disturbed by the previously-set alarm clock, and if the hotel attendant checks and cancels the alarm clock, unnecessary workload is undoubtedly increased.
Disclosure of Invention
In order to solve the problems, the invention provides a control device and a control method of a disposable alarm clock, which are used for any electronic equipment with the function of the alarm clock.
The invention adopts the following technical scheme: the utility model provides a controlling means of disposable alarm clock for electronic equipment with alarm clock function, electronic equipment include sound generating mechanism and with sound generating mechanism control connection's alarm clock sets up the module, the alarm clock set up the module with be connected with the switch between the sound generating mechanism, controlling means include main control unit, with sound wave detecting element that sound generating mechanism connects and with the switch element that the switch is connected, alarm clock sets up module control connection main control unit, main control unit is the control connection respectively sound wave detecting element with the switch element.
The control device of the disposable alarm clock is further improved in that the alarm clock setting module comprises a start-stop button in control connection with the main control unit.
The control device of the disposable alarm clock is further improved in that a timer is arranged in the main control unit.
The control device of the disposable alarm clock is further improved in that the sound wave detection unit is provided with an analog-to-digital converter connected with the sound generating device, and an interrupt pin of the analog-to-digital converter is connected with the sound generating device.
The control device of the disposable alarm clock is further improved in that the switch is a triode.
The control device of the disposable alarm clock is further improved in that the control device is a single chip microcomputer.
The invention also provides a control method of the disposable alarm clock, which comprises the following steps:
providing the electronic equipment and the control device;
the alarm clock setting module sends a starting signal or a stopping signal to the main control unit;
when receiving the starting signal, the main control unit sends a closing signal to the switch unit and sends a detection signal to the sound wave detection unit;
when the switch unit receives the closing signal, the switch is controlled to be closed;
when the sound wave detection unit receives the detection signal, the sound wave detection unit starts to acquire the sound wave of the sound production device in real time, judges whether the sound production device rings or not according to the sound wave, and sends a feedback signal to the main control unit when the ring is finished if the sound production device rings or not;
the main control unit sends a cutting signal to the switch unit when receiving the stop signal or receiving the feedback signal;
and when the switch unit receives the cut-off signal, the switch unit controls the switch to be switched off.
A further improvement of the control method of the disposable alarm clock of the present invention is that,
the alarm clock setting module comprises a start-stop button in control connection with the main control unit;
when the alarm clock setting module sets an alarm clock, pressing the start-stop button once;
and when the alarm clock does not ring and the set alarm clock needs to be cancelled, pressing the start stop button again.
The control method of the disposable alarm clock is further improved in that a timer is arranged in the main control unit, when the main control unit receives the feedback signal, the timer is started to start timing, whether the specified time is reached is judged, and if yes, a cut-off signal is sent to the switch unit.
The control method of the disposable alarm clock is further improved in that the main control unit presets the designated time to be one hour.
The present invention includes, but is not limited to, the following benefits:
1. the control device is arranged on a connecting path between the alarm clock setting module and the sound generating device in the electronic equipment, so that on one hand, sound waves of the sound generating device are detected in real time, on the other hand, a switch on the connecting path is controlled, and when the end of the ring is detected, the switch is controlled to be disconnected so as to cut off the transmission signal of the alarm clock, thereby achieving the purpose of automatically canceling the alarm clock which has been rung and realizing a real disposable alarm clock;
2. through the setting of the timer, a certain margin can be reserved for the time of canceling the alarm clock, the misoperation caused by the over-concentrated control operation of the main control unit is prevented, and in addition, a foundation is provided for the application occasion of the alarm clock with fixed times;
3. the control device of the invention can be applied to any electronic equipment with the alarm clock function.
Drawings
Fig. 1 is a connection block diagram of a preferred application embodiment of the control device of the disposable alarm clock of the present invention.
Fig. 2 is a block diagram of another preferred embodiment of the control device of the disposable alarm clock.
FIG. 3 is a flowchart of a method for controlling a disposable alarm clock according to the present invention.
Detailed Description
The invention provides a control device and a control method of a disposable alarm clock, which are suitable for the application occasions of disposable alarm clocks such as hotels.
The control device and the control method of the disposable alarm clock of the invention are further explained with reference to the attached drawings and the specific embodiments.
Referring to fig. 1, the invention provides a control device of a disposable alarm clock, which is used for an electronic device with an alarm clock function, wherein the electronic device comprises a sound generating device H and an alarm clock setting module M1 in control connection with the sound generating device H, a switch Q is connected between the alarm clock setting module M1 and the sound generating device H, the control device M2 comprises a main control unit, a sound wave detection unit connected with the sound generating device H and a switch unit connected with the switch Q, the alarm clock setting module is in control connection with the main control unit, and the main control unit is respectively in control connection with the sound wave detection unit and the switch unit.
In this embodiment, the alarm clock setting module M1 can send a start signal or a stop signal to the main control unit to trigger the main control unit to perform different controls, and through the control device, a loop of control is added on the transmission path of the alarm clock setting module and the sounding device H, so that one-time effectiveness of the alarm clock is realized, and the alarm clock setting module is suitable for occasions needing only one-time alarm clocks.
Preferably, as shown in fig. 2, the alarm clock setting module comprises a start-stop button K1 in control connection with the main control unit, and the start-stop button K1 sends a start signal when being pressed an odd number or an even number of times; when the start-stop button K1 is pressed even or odd times, the alarm clock setting module sends out a stop signal, i.e. when the start-stop button K1 is pressed multiple times, the start signal and the stop signal are sent out alternately.
Preferably, a timer is provided in the main control unit. Through the setting of timer, can cancel the alarm clock again a period of time after the alarm clock rings, leave certain surplus for the time of canceling the alarm clock, prevent the malfunction that leads to because of main control unit's control operation is too concentrated, in addition, still provide the basis for the fixed number of times alarm clock, if, can ring twice between regularly 24 ~ 48 hours, can ring the thrice between regularly 48 ~ 72 hours to this analogizes, sets up the fixed number of times alarm clock as required.
Preferably, since the sound wave signal emitted by the sound generating device H is an analog signal, in order to facilitate the sound wave detecting unit to detect the sound wave, in this embodiment, it is preferable that an analog-to-digital converter connected to the sound generating device H is disposed on the sound wave detecting unit, and the sound wave analog signal of the sound generating device H is converted into a sound wave digital signal by the analog-to-digital converter; in addition, since the interrupt pin in the analog-to-digital converter has the highest priority inside, the present embodiment preferably employs the interrupt pin to connect with the sound generating device Q, so as to ensure the detection speed and accuracy of the sound wave detecting unit.
Preferably, since the transistor is convenient to be controlled by high and low levels, in this embodiment, the switch Q is preferably a transistor (such as 8050, 2N5551, BC547B, ZTX457, and the like commonly used in the market), and the switching unit controls the switch Q to be turned on or off by the high and low levels, specifically, the switch Q is turned on by the high level, turned off by the low level, turned on by the low level, and turned off by the high level, and may be predefined by the main control unit according to an actual transistor model and a connection condition.
Preferably, a commercially available single chip microcomputer (for example, STM32 series, ATS2825, STC11, and the like) is selected as the control device in this embodiment, because the single chip microcomputer has the advantages of small size and powerful functions, and the single chip microcomputer has the functions of the main control unit, the sound wave detection unit, and the switch unit, and is also convenient for extending more functions, such as controlling and connecting two USB interface modules, the charging module, the music module, the lighting module, and the like, and can be connected with each functional module in a PCB wiring manner, thereby facilitating integration and extension.
In this embodiment, ALARM _ DET of the single chip microcomputer is an interrupt pin of an analog-to-digital converter inside the single chip microcomputer, and ALI _ C is a level output pin of a switch unit inside the single chip microcomputer for controlling the switch Q.
The invention also provides a control method of the disposable alarm clock, which is shown in figure 3 and comprises the following steps:
s1, providing the electronic equipment and the control device;
s2, the alarm clock setting module sends a starting signal or a stopping signal to the main control unit;
s3, when the main control unit receives the starting signal, the main control unit sends a closing signal to the switch unit and sends a detection signal to the sound wave detection unit;
when the switch unit receives the closing signal, the switch is controlled to be closed;
when the sound wave detection unit receives the detection signal, the sound wave detection unit starts to acquire the sound wave of the sound production device in real time, judges whether the sound production device rings or not according to the sound wave, and sends a feedback signal to the main control unit when the ring is ended if the sound production device rings or not;
s4, the main control unit sends a cutting signal to the switch unit when receiving the stop signal or the feedback signal;
and when the switch unit receives the cut-off signal, the switch is controlled to be switched off.
Preferably, the alarm clock setting module comprises a start-stop button in control connection with the main control unit; when the alarm clock setting module sets the alarm clock, pressing a start stop button once, and then the alarm clock setting module sends a start signal to the main control unit; when the alarm clock does not ring and the set alarm clock needs to be cancelled, the start stop button is pressed again, and the alarm clock setting module sends a stop signal to the main control unit.
Preferably, a timer is arranged in the main control unit, when the main control unit receives the feedback signal, the timer is started to start timing, whether the specified time is reached is judged, and if the specified time is reached, a cutting-off signal is sent to the switch unit.
Through the setting of the timer, the alarm clock can be cancelled after the alarm clock rings for a period of time, a certain margin is reserved for the time for cancelling the alarm clock, misoperation caused by over-centralized control operation of the main control unit is prevented, the specified time is preset fixed time, for the application occasion of the disposable alarm clock, the specified time is recommended to be set within 24 hours, and the specified time of the timer of the embodiment is one hour; if for the application occasion that needs the alarm clock of appointed number of times, can predetermine appointed time according to actual conditions, for example, can ring twice between regularly 24 ~ 48 hours, can ring thrice between regularly 48 ~ 72 hours, and so on.
Preferably, the switches in the electronic device are transistors (such as 8050, 2N5551, BC547B, ZTX457, etc.), and the switch units send out close or open signals as high or low signals.
The control device can be applied to any electronic equipment with the alarm clock function, particularly to the application occasions of hotels needing disposable alarm clocks, and adopts the single chip microcomputer as the control device, so that the control device is convenient to integrate and expand with an original control module of the electronic equipment, and more intelligent electronic equipment is formed.
While the present invention has been described in detail and with reference to the embodiments thereof as illustrated in the accompanying drawings, it will be apparent to one skilled in the art that various changes and modifications can be made therein. Therefore, certain details of the embodiments are not to be interpreted as limiting, and the scope of the invention is to be determined by the appended claims.

Claims (10)

1. A control device of a disposable alarm clock is used for an electronic device with an alarm clock function, the electronic device comprises a sounding device and an alarm clock setting module in control connection with the sounding device, and a switch is connected between the alarm clock setting module and the sounding device;
when receiving a starting signal sent by the alarm clock setting module, the main control unit sends a closing signal to the switch unit and sends a detection signal to the sound wave detection unit; the sound wave detection unit detects the sounding device when receiving the detection signal, and sends a feedback signal to the main control unit when detecting that ringing is finished, and the main control unit sends a cut-off signal to the switch unit when receiving a stop signal sent by the alarm clock setting module or receiving the feedback signal.
2. The control device of a disposable alarm clock of claim 1, wherein the alarm clock setting module comprises a start-stop button in control connection with the main control unit.
3. The control device of the disposable alarm clock of claim 1, wherein a timer is provided in the main control unit.
4. The control device of the disposable alarm clock according to claim 1, wherein the sound wave detecting unit is provided with an analog-to-digital converter connected with the sounding device, and an interrupt pin of the analog-to-digital converter is connected with the sounding device.
5. The control device for a disposable alarm clock according to claim 1, wherein said switch is a triode.
6. A control device for a disposable alarm clock according to any one of claims 1 to 5, characterised in that the control device is a single-chip microcomputer.
7. A control method of a disposable alarm clock is characterized by comprising the following steps:
providing an electronic device and a control apparatus as claimed in claim 1;
the alarm clock setting module sends a starting signal or a stopping signal to the main control unit;
when receiving the starting signal, the main control unit sends a closing signal to the switch unit and sends a detection signal to the sound wave detection unit;
when the switch unit receives the closing signal, the switch is controlled to be closed;
when the sound wave detection unit receives the detection signal, the sound wave detection unit starts to acquire the sound wave of the sound production device in real time, judges whether the sound production device rings or not according to the sound wave, and sends a feedback signal to the main control unit when the ring is finished if the sound production device rings or not;
the main control unit sends a cutting signal to the switch unit when receiving the stop signal or receiving the feedback signal;
and when the switch unit receives the cut-off signal, the switch unit controls the switch to be switched off.
8. The control method of the disposable alarm clock according to claim 7, characterized in that:
the alarm clock setting module comprises a start-stop button in control connection with the main control unit;
when the alarm clock setting module sets an alarm clock, pressing the start-stop button once;
and when the alarm clock does not ring and the set alarm clock needs to be cancelled, pressing the start stop button again.
9. The method as claimed in claim 7, wherein a timer is provided in the main control unit, and when the main control unit receives the feedback signal, the timer is started to start timing, and whether the specified time is reached is determined, and if yes, a turn-off signal is sent to the switch unit.
10. The control method of the disposable alarm clock of claim 9, wherein the main control unit presets the designated time to be one hour.
CN202010236726.0A 2020-03-30 2020-03-30 Control device and control method of disposable alarm clock Active CN111273539B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010236726.0A CN111273539B (en) 2020-03-30 2020-03-30 Control device and control method of disposable alarm clock

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010236726.0A CN111273539B (en) 2020-03-30 2020-03-30 Control device and control method of disposable alarm clock

Publications (2)

Publication Number Publication Date
CN111273539A CN111273539A (en) 2020-06-12
CN111273539B true CN111273539B (en) 2021-07-20

Family

ID=70999469

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010236726.0A Active CN111273539B (en) 2020-03-30 2020-03-30 Control device and control method of disposable alarm clock

Country Status (1)

Country Link
CN (1) CN111273539B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4228645A (en) * 1977-05-10 1980-10-21 Citizen Watch Company Limited Electronic timepiece equipped with alarm system
JPH05119172A (en) * 1991-10-30 1993-05-18 Canon Inc Method for performing alarm
EP0689111A2 (en) * 1994-06-22 1995-12-27 Seiko Epson Corporation Electronic timepiece with an alarm and method for setting the alarm time
CN101719336A (en) * 2009-12-17 2010-06-02 浙江大学 Timing notepaper seat with function of alarm clock
CN101859093A (en) * 2010-06-01 2010-10-13 华为终端有限公司 Realizing method and device of alarm clock in electronic equipment
CN205157998U (en) * 2015-11-20 2016-04-13 安徽理工大学 Novel intelligent alarm clock that intelligence pronunciation turn -offed
CN108287460A (en) * 2018-02-06 2018-07-17 广西超盛网络科技有限责任公司 A kind of alarm clock

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100480905C (en) * 2006-12-27 2009-04-22 孙纯哲 Alarm clock control method
FR3001708B1 (en) * 2013-02-06 2015-02-13 Eurocopter France RETRACTABLE LANDING TRAIN, AIRCRAFT COMPRISING SAID LANDING TRAIN, AND METHOD FOR OPERATING SAID LANDING TRAIN
US9195220B2 (en) * 2013-03-15 2015-11-24 Lutron Electronics Co., Inc. Clock device with automatic simulation of sunrise or sunset

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4228645A (en) * 1977-05-10 1980-10-21 Citizen Watch Company Limited Electronic timepiece equipped with alarm system
JPH05119172A (en) * 1991-10-30 1993-05-18 Canon Inc Method for performing alarm
EP0689111A2 (en) * 1994-06-22 1995-12-27 Seiko Epson Corporation Electronic timepiece with an alarm and method for setting the alarm time
CN101719336A (en) * 2009-12-17 2010-06-02 浙江大学 Timing notepaper seat with function of alarm clock
CN101859093A (en) * 2010-06-01 2010-10-13 华为终端有限公司 Realizing method and device of alarm clock in electronic equipment
CN205157998U (en) * 2015-11-20 2016-04-13 安徽理工大学 Novel intelligent alarm clock that intelligence pronunciation turn -offed
CN108287460A (en) * 2018-02-06 2018-07-17 广西超盛网络科技有限责任公司 A kind of alarm clock

Also Published As

Publication number Publication date
CN111273539A (en) 2020-06-12

Similar Documents

Publication Publication Date Title
US4095050A (en) Monitor and control system
US4571455A (en) Electronic monitoring system particularly useful as an electronic babysitter
CN106162441A (en) Acoustic controller and control method
US20040151076A1 (en) Programmable alarm clock with telephone sleep, individual wake up and computer interface
CN111273539B (en) Control device and control method of disposable alarm clock
CN211349010U (en) Control device of disposable alarm clock
CN202003165U (en) Intelligent alarm clock
CN201765674U (en) Alarm for cold catching of child
CN102865920B (en) Method and device for monitoring surrounding environmental noise outside television
CN109426479A (en) A kind of audio control method and audio-frequence player device
CN108205877A (en) A kind of sound detection system for prompting
CN210486265U (en) Automatic closing device for refrigerator door
CN221079402U (en) Thermal alarm for microscope
CN202145337U (en) Vibration prompt wrist strip used for deaf-mute
CN203856034U (en) Closestool with LED lamp overtime reminding function
CN103514872A (en) Pealing device for household appliance prompting
KR200313678Y1 (en) Tumbler switch with timer switch and alarm
CN201156770Y (en) Automatically starting emergency prompting communication device
CN211604285U (en) Electronic equipment finder for children
JPH03103652U (en)
CN209182748U (en) A kind of computer installation that can remotely control
CN2907092Y (en) Household intelligent switch
CN204795240U (en) Domestic convenient infra red ray induction intelligence liquid crystal alarm clock terminal
CN2735679Y (en) Multifunctional handset signal transmission and alarming device
CN204795171U (en) Domestic convenient infra red ray induction intelligent alarm clock terminal

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant