一种同步设定的自动定时开关机方法 Method for automatically setting on / off time by synchronous setting
技术领域 Technical field
本发明涉及自动化技术处理过程, 尤其涉及一种电器装置的自动定时开 关机的方法,它适用于具有微处理器 (MCU) 的装置。 背景技术 The present invention relates to an automatic technical processing process, and in particular, to a method for automatically timed on / off of an electrical device, which is suitable for a device having a microprocessor (MCU). Background technique
越来越多的电器需要自动地按用户要求或习惯定时开、 关机, 定时开机 能够方便和保证用户的及时使用, 定时关机则避免用户忘记或不方便时令电 器长期工作造成资源浪费和电器有效使用寿命缩短。 More and more appliances need to be turned on and off automatically according to the user's requirements or habits. Timed startup can facilitate and ensure the timely use of users. Timed shutdown prevents users from forgetting or inconvenient. The long-term work of the appliance causes waste of resources and effective use of the appliance Shortened life.
但是现在, 定时开关机的实现和设定操作的方法大多都非常复杂, 时间 设定通常都由一个显示当前时间和设定时间的显示屏、 时钟电路、 几个设定 按键来配合。如果我们需要一个电器在早上六点钟工作;六点半钟停止工作, 就需要在一个时间显示屏的配合下, 至少使用三个按键, 经过大约十个以上 的步骤操作, 我们才获得了一个电器一次定时开关的设定操作。如果要设定 多个时间的定时, 就需要几倍的工作量。 这种开关机时间设定方法, 不但硬 件结构复杂、 成本很高、 体积很大, 还需要严格顺序的多项操作步驟, 相应 的大篇幅说明书不可缺少。 如果用户的文化程度不高、 视力不好, 或丟失了 该设定操作的说明书, 或忘记该定时操作的设定方法, 或者上述多个零部件 中有一个损坏, 操作就不能完成和实现, 该功能就会丧失。 而目前很多高级 的电器的很多高智能功能被长期闲置不用,就是和复杂的操作程序设计方法 有直接的关系。 However, most of the methods of realizing and setting the timer switch are very complicated. The time setting is usually coordinated by a display screen showing the current time and the set time, a clock circuit, and several setting buttons. If we need an electrical appliance to work at six o'clock in the morning and stop working at six thirty, we need to use at least three buttons with the cooperation of a time display. After about ten or more steps, we get one. The setting operation of the appliance's time switch. If you want to set the timing for multiple times, you need several times the workload. This method of setting the power on / off time is not only complicated in hardware structure, high in cost, and large in volume, but also requires a number of operating steps in strict order. The corresponding large-length manual is indispensable. If the user is not highly educated, has poor eyesight, or has lost the manual of the setting operation, or forgets the setting method of the timing operation, or one of the above parts is damaged, the operation cannot be completed and realized. The function is lost. At present, many high-level intelligent functions of many advanced appliances are left unused for a long time, which is directly related to the complex operation program design method.
因此,研制一种智能化程度很高、 操作步驟却非常简单的定时设定和控 制的方法至关重要。 发明内容 Therefore, it is important to develop a method for timing setting and controlling with high intelligence but simple operation steps. Summary of the Invention
本发明的目的是提供一种同步设定的自动定时开关机的方法,在使用程 序上可以大大筒化用户设定的操作步骤,甚至不需要用户特意去做定时设定 操作, 就能按用户要求和习惯实现和完成很复杂的定时开关机功能, 使用户
的操作方便性、 简易性大为提高, 也同时提高了适用电器的智能化程度和使 用可靠性。 The purpose of the present invention is to provide a method for automatically setting the timing switch on and off synchronously, which can greatly simplify the operation steps set by the user in the use program, and does not even need the user to specifically perform the timing setting operation. Requirement and habit to realize and complete very complex timer switch function The convenience and simplicity of operation are greatly improved, and at the same time, the intelligent degree and reliability of the applicable electrical appliances are improved.
本发明的目的可以通过以下措施来达到: The object of the present invention can be achieved by the following measures:
一种同步设定的自动定时开关机的方法, 适用于具有微处理器 (MCU, 以下简称为 MCU) 的装置, 该装置包括用户设定开关电路、 MCU及其*** 电路、 控制开关电路、 受控电器部分, 其为保证定时控制的完成, 且用户做 定时设定的操作尽量简单, 该方法包括如下步骤: A method for synchronously setting an automatic timing switch machine is applicable to a device having a microprocessor (MCU, hereinafter simply referred to as MCU). The device includes a user-set switch circuit, an MCU and its peripheral circuits, a control switch circuit, and a receiver. The electrical control part, in order to ensure the completion of the timing control, and the operation of the user to set the timing as simple as possible, the method includes the following steps:
1、 用户设定开关电路下达开机或关机的设定命令; 1. The user set the switch circuit to issue a setting command for turning on or off;
2、 MCU收到设定开关电路送来的设定命令, 驱动控制开关电路令受控 电器开机或关机; 2. The MCU receives the setting command from the setting switch circuit, and drives the control switch circuit to make the controlled electrical appliance turn on or off;
3、 MCU继续执行如下步骤: 3.The MCU continues to perform the following steps:
A、 MCU驱动控制开关电路的同时, MCU内部同步开始计时; A. While the MCU drives and controls the switching circuit, the MCU internally starts timing;
B、 MCU计时到内部预置的限制时间长度 ^, 或者在 1 时间长度内, MCU收到设定开关电路传来的与步骤 1相反的设定命令; B. The MCU counts to the preset time limit ^, or within 1 time period, the MCU receives the setting command from the setting switch circuit, which is the opposite of step 1.
(、 MCU驱动控制开关电路令受控电器关机或开机, 与步骤 2中受控电 器的工作状态相反; (The MCU drives and controls the switch circuit to shut down or turn on the controlled appliance, which is the opposite of the working state of the controlled appliance in step 2;
D、 MCU继续计时, 达到内部预置的循环时间长度 T0; D. The MCU continues to time to reach the internal preset cycle time length T 0 ;
E、 MCU驱动控制开关电路令受控电器开机或关机, 与 TQ时间前受控 电器的工作状态相同, 同时 MCU对 T。的计时清零; E. The MCU drives and controls the switch circuit to turn the controlled appliance on or off, and the working state of the controlled appliance is the same as before T Q time, and the MCU is at T. The timing is cleared;
F、 重新从步骤 A开始运行至步骤 E, 循环运行。 F. Start from step A to step E again, and run cyclically.
所述方法包括 A至 F多个步骤,所述的各个步骤按时间顺序排列依次进 行, 可以各步骤紧密排列地连续运行, 也可以在各步骤间允许穿插其它意义 的步驟不连续地陆续进行。 The method includes a plurality of steps A to F, and each of the steps is performed in chronological order, and the steps can be continuously run in close sequence, or steps with other meanings can be discontinuously interspersed between the steps.
在所迷步骤 D中允许陆续有多次使用步骤 1,使所形成的多个步骤 1至 3系列相互无关联地平行进行; 或使多个步骤系列相互有关联地嵌套进行。 In step D, it is allowed to use step 1 one after another, so that a plurality of steps 1 to 3 series are formed in parallel without any relation to each other; or a plurality of step series are nested in a related manner with each other.
本发明方法从步骤 1开始, 到达步骤 E后完成一次工作流程, 以后的工 作流程均从步骤 A至 E自动运行,始终循环,直到本发明适用装置中的 MCU 被其他程序指令退出本发明方法之定时操作步骤、被复位清零或者适用装置 停电。 The method of the present invention starts from step 1 and completes a work flow after reaching step E. The subsequent work flow runs automatically from steps A to E and continues to circulate until the MCU in the applicable device of the present invention is withdrawn by another program instruction of the method of the present invention. Timed operation steps, reset to zero, or power failure of the applicable device.
本发明方法中的循环时间 T0设计,可以艮好地解决周期性定时控制的设 定问题, 由于它是一个长度值, 和具体的时刻无关, 因此不需要象传统定时
方式一样需要一个实时运行、 显示当前和将定时时刻的时钟电路和显示电 路, 硬件成本和操作步驟都大为节省。 The design of the cycle time T 0 in the method of the present invention can well solve the problem of setting the periodic timing control. Since it is a length value and has nothing to do with the specific time, it does not need to be like the traditional timing The same method requires a clock circuit and a display circuit that run in real time, display the current time and the timing, and the hardware cost and operation steps are greatly saved.
本发明方法中的限制时间 1 设计,可以 4艮好地防止适用装置进入无效循 环状态, 避免了用户在只设定了开机而没有设定关机的情况下, 造成适用装 置一旦开机就长期开机的无谓损耗状态和定时控制的无效状态。 ^也是一个 长度值, 和具体的时刻无关。 The design of the time limit 1 in the method of the present invention can prevent the applicable device from entering an invalid cycle state, and avoids the situation where the user only sets the power on but does not set the power off. Deadweight loss state and invalid state of timing control. ^ Is also a length value, and has nothing to do with the specific moment.
T。和!\可以是设计者根据电器的使用情况规定的一組时间长度, 也可 以是有几组时间长度由 MCU在程序设计中允许用户自行选择确定的其中一 組。 T. with! \ It can be a set of time lengths specified by the designer according to the use of the appliance, or there can be several sets of time lengths that the MCU allows the user to choose and determine in the program design.
本发明方法适用装置中的 MCU为核心器件, 是一种公知的内嵌软件程 序设计的智能微型程序控制器,设计者可以用其适用的语言编制内部软件程 序, 在生产或使用中写入 MCU中使其具有一定的处理功能。 The MCU in the device applicable to the method of the present invention is a core device and is a well-known intelligent micro-program controller with embedded software program design. Designers can compile internal software programs in their applicable languages and write the MCU in production or use. It makes it have certain processing functions.
MCU 既可以是专为本定时控制功能独立设计的, 也可以是适用装置中 其它功能所需的, MCU 除存储有本发明方法的基本程序外, 还允许存储其 它的操作程序。 The MCU can be designed independently for this timing control function or required for other functions in the applicable device. In addition to storing the basic program of the method of the present invention, the MCU can also store other operating programs.
本发明方法适用装置中的用户设定开关电路是一个人机界面, 负责将用 户的设定命令转化为 MCU可接受的电信号, 它可以是简单的由用户动作触 发的机械接触式按钮、 开关、 按键或压力式触摸屏、 压敏器件等, 也可以是 用户手持装置 (如无线遥控器、 电话遥控器、 射频、 磁卡、 IC卡等) 的相应 读取设定开关电路结构, 也可以是用户生物特征 (如指纹、 掌纹、 声纹、 视 网膜纹、 人体红外线等) 的识别读取设定开关电路结构等。 The user setting switch circuit in the device applicable to the method of the present invention is a human-machine interface and is responsible for converting the user's setting command into an electrical signal acceptable to the MCU. It can be a simple mechanical contact button or switch triggered by a user action , Button or pressure-type touch screen, pressure-sensitive device, etc., can also be the corresponding read setting switch circuit structure of the user's handheld device (such as wireless remote control, telephone remote control, radio frequency, magnetic card, IC card, etc.), or the user Biometrics (such as fingerprints, palm prints, voice prints, retinal prints, human infrared rays, etc.) are used to identify and read switch circuit structures.
本发明方法适用装置中的控制开关电路是一个 MCU的驱动执行机构, 负责按照 MCU 的命令控制受控电器的开、 关机工作状态, 它可以是任何电 子开关 (晶体管、 场效应管、 可控硅、 固态继电器等)、 机电开关 (继电器、 接触器等)。 The control switch circuit in the device applicable to the method of the present invention is a driving actuator of the MCU, which is responsible for controlling the on and off states of the controlled electrical appliance according to the MCU's command. It can be any electronic switch (transistor, field effect tube, thyristor) , Solid state relays, etc.), electromechanical switches (relays, contactors, etc.).
本发明方法适用装置中的受控电器是一个被控制的终端用具,可以为任 意可控制的电器、 电器部件单元。 The controlled electrical appliance in the device applicable to the method of the present invention is a controlled terminal appliance, which can be any controllable electrical appliance or electrical component unit.
本发明方法可用在各种需要定时控制的电器上,可以完全改善现有很多 电器的自动工作和定时设定模式,凡需要在每天或每周、每月等周期性工作、 并始终有电源供应的电器尤其适用。 The method of the invention can be used on various electrical appliances that require timing control, and can completely improve the automatic work and timing setting modes of many existing electrical appliances. Wherever it is necessary to work periodically every day, weekly, monthly, etc., and always have power supply Appliances are especially suitable.
本发明与传统定时设定方法的最大不同在于同步实时性。传统定时设定
方法可以在任意时刻设定任意一个定时和开关状态,与设定操作当时的时刻 和电器本身的工作状态无关, 因此必须要一套额外的时钟电路来运行、 调整 和显示当前的实时时间, 其设定方法和相应的硬件就必然十分复杂。 而本发 明的方法必须在用户操作的电器使用开关状态转换的当时进行同步实时设 定, 该方法的使用者几乎不用特意去设定定时操作, 只要按要求或习惯正常 使用应用本发明方法设计的装置一开机或关机, 就已经同步设定完毕, 而所 有的其它步骤均由 MCU工作完成, 到一个预置的循环时间之后同样的操作 又会自动进行了, 可以不用再做人工操作。 计实施步骤和其中的时间参数。 附图说明 The biggest difference between the present invention and the traditional timing setting method lies in the synchronization real-time property. Traditional timing setting The method can set any timing and switching state at any time, which has nothing to do with setting the time at the time of operation and the working state of the appliance itself. Therefore, an additional clock circuit must be set to run, adjust and display the current real-time time. The setting method and the corresponding hardware must be very complicated. The method of the present invention must be synchronized and real-time set at the time when the user-operated appliances use the switch state to switch. Users of this method rarely need to intentionally set the timed operation, as long as they are designed according to the requirements or habits of normal use As soon as the device is turned on or off, it has been set synchronously, and all other steps are completed by the MCU. After a preset cycle time, the same operation is automatically performed, and no manual operation is required. Calculate the implementation steps and the time parameters in them. BRIEF DESCRIPTION OF THE DRAWINGS
图 1为本发明自动定时开关机方法适用装置的典型结构图; FIG. 1 is a typical structural diagram of an applicable device of the automatic timing switch-on method of the present invention;
图 2为本发明的自动定时开关机方法的流程图; FIG. 2 is a flowchart of an automatic timing switch-on method of the present invention;
图 3为本发明的一个实施例的自动定时开关机方法的流程图。 具体实施方式 FIG. 3 is a flowchart of an automatic timing switch-on method according to an embodiment of the present invention. detailed description
下面结合附图对本发明进一步说明。 The invention is further described below with reference to the drawings.
如图 1所示, 一种同步设定的自动定时开关机的方法, 适用于具有微处 理器 (MCU , 以下简称为 MCU) 的装置。 其适用装置由用户设定开关电路、 MCU 及其***电路、 控制开关电路、 受控电器部分构成, 用户的操作或设 定命令通过用户设定开关电路传递给 MCU, MCU已经含有本发明方法的控 制程序, 在其***电路的帮助下, 驱动控制开关电路去执行用户的命令或内 部程序发出的命令, 去控制受控电器的工作状态一开机或关机。 As shown in FIG. 1, a method for synchronizing and automatically switching on and off is applicable to a device having a microprocessor (MCU, hereinafter simply referred to as MCU). The applicable device is composed of a user-set switch circuit, an MCU and its peripheral circuits, a control switch circuit, and a controlled electrical part. The user's operation or setting command is transmitted to the MCU through the user-set switch circuit. The MCU already contains the method of the present invention. The control program, with the help of its peripheral circuits, drives the control switch circuit to execute a user's command or a command issued by an internal program to control the working state of the controlled electrical appliance when it is turned on or off.
如图 2所示, 本发明的方法是: 为保证定时控制的完成, 且用户做定时 设定的操作尽量简单, 该方法包括如下步骤: As shown in FIG. 2, the method of the present invention is as follows: In order to ensure the completion of the timing control and the operation of the user to set the timing as simple as possible, the method includes the following steps:
1、 用户设定开关电路下达开机或关机的设定命令; 1. The user set the switch circuit to issue a setting command for turning on or off;
2、 MCU收到设定开关电路送来的设定命令, 驱动控制开关电路令受控 电器开机或关机; 2. The MCU receives the setting command from the setting switch circuit, and drives the control switch circuit to make the controlled electrical appliance turn on or off;
3、 MCU继续执行如下步骤: 3. The MCU continues to perform the following steps:
A、 MCU驱动控制开关电路的同时, MCU内部同步开始计时;
B、 MCU计时到内部预置的限制时间长度 1\, 或者在!;时间长度内, MCU收到设定开关电路传来的与步骤 1相反的设定命令; A. While the MCU drives and controls the switching circuit, the MCU internally starts timing; B, MCU timing to the preset time limit 1 \, or at! ; Within the length of time, the MCU receives the setting command from the setting switch circuit, which is opposite to step 1;
C、 MCU驱动控制开关电路令受控电器关机或开机, 与步骤 2中受控电 器的工作状态相反; C. The MCU drive control switch circuit causes the controlled electrical appliance to be turned off or on, which is opposite to the working state of the controlled electrical appliance in step 2;
D、 MCU继续计时, 达到内部预置的循环时间长度 T0; D. The MCU continues to time to reach the internal preset cycle time length T 0 ;
E、 MCU驱动控制开关电路令受控电器开机或关机, 与 T。时间前受控 电器的工作状态相同, 同时 MCU对! 的计时清零; E. The MCU drives the control switch circuit to turn the controlled appliance on or off, and T. The controlled appliances have the same working status before time, and the MCU is right! The timing is cleared;
F、 重新从步骤 A开始运行至步骤 E, 循环运行。 F. Restart the operation from step A to step E, and run cyclically.
在具体实施上, 本发明方法会在一个步驟 1之后开始运行, 并始终循环 工作, 完成定时开关机的工作, 直到本发明适用装置中的 MCU被其他程序 指令退出本发明方法之定时操作步骤、 被复位清零或者适用装置停电。 In specific implementation, the method of the present invention will start to run after step 1 and will always work in a cycle to complete the work of timing the switch on and off until the MCU in the applicable device of the present invention is instructed by other programs to exit the timed operation steps of the method of the present invention It is reset to zero or the applicable device is powered off.
在具体实施上,如果用户想更改一个已有的定时设定,可以采用将 MCU 复位清零或者将适用装置停电等办法,之后就可以重新在适当时间做开关机 定时设定。 In specific implementation, if the user wants to change an existing timing setting, the user can reset the MCU to zero or power off the applicable device. After that, the user can reset the timing setting at an appropriate time.
在一个循环时间长度 T。内,用户可以有多次开关机定时设定,在所迷步 骤 D中设定有效,并同样产生另一个或另几个步骤 1至 3的步骤系列,如果 各步骤系列中使用的预置 TQ和 ^时间长度相同, 则形成与原有的步骤系列 平行的多个定时开关控制; 如果各步驟系列中使用的预置 和 Ί 时间长度 不同, 则形成与原有的步骤系列嵌套运行的多个定时开关控制。 During a cycle time length T. Within the user, there can be multiple power on / off timing settings. The setting is valid in the step D, and another step series of steps 1 to 3 is generated. Q and ^ time lengths are the same, forming multiple timing switch controls parallel to the original step series; if the preset and Ί time lengths used in each step series are different, forming a nested operation with the original step series Multiple timing switches control.
实施例 1 : 以电子药盒说明本发明方法及其应用。 Embodiment 1 The method of the present invention and its application are described with an electronic pill box.
电子药盒的作用是按照医生遵嘱按时按次发出声响提醒用户吃药。该电 子药盒内置一个电子定时提醒装置, 该装置包含一个设定按键(用户设定开 关)、 一颗微处理器 (MCU) 芯片及***电路、 一个讯响发声器 (受控电器 ), 该微处理器 (MCU) 中已按本发明的方法设计了一个定时设定和工作程 序, 并内部含有控制开关电路, 它能定时控制讯响发声器的开关状态。 在这 个实施例中, 电子药盒的 MCU计时和用户的开机操作同步, 其中预置的限 制时间长度 1 为3分钟, 预置的循环时间长度 Τ。为 24小时。在用户拿回电 子药盒回家的第一天需要设定定时, 用户在早上第一次吃药时按一下电子药 盒上的按键, 讯响发声器就会发出提示声, 最多响 3 分钟 (Ί\) , 期间如果 用户再次按了该设定键, 声音就停止。 这一次的设定工作即做完了。 到了第 二天早上同样的时刻 (24 小时后, Τ。), 电子药盒不需要用户的任何操作,
其讯响发声器就自动响起, 3分钟 内用户来拿起药盒按了一下设定键, 声音就停止了; 如果没有人来按键, 3分钟 (1 ) 后也会自动停止发声。 如 此, 每天早上的同样时刻, 电子药盒都会自动响起提醒用户来吃药。 附图 3 所示是一次的设定及工作流程。 The function of the electronic pill box is to remind the user to take medicine on time and according to the doctor's instructions. The electronic pillbox has a built-in electronic timing reminder device. The device includes a setting button (user setting switch), a microprocessor (MCU) chip and peripheral circuits, and an alarm sounder (controlled electrical appliance). A microprocessor (MCU) has designed a timing setting and working program according to the method of the present invention, and contains a control switch circuit internally, which can regularly control the switching state of the sounding sounder. In this embodiment, the MCU timing of the electronic pillbox is synchronized with the user's power-on operation, where the preset limit time length 1 is 3 minutes and the preset cycle time length T. For 24 hours. The timer needs to be set on the first day when the user takes the electronic pill box home. When the user takes the medicine for the first time in the morning, the button on the electronic pill box will give a sound, and the sound will sound for up to 3 minutes. (Ί \), if the user presses the setting key again, the sound will stop. This time the setting work is done. At the same time the next morning (24 hours later, T.), the electronic pill box does not require any user action, The alarm sounds automatically. The user comes to pick up the pill box and presses the set button within 3 minutes, and the sound stops; if no one presses the button, the sound will stop automatically after 3 minutes (1). In this way, at the same time every morning, the electronic pill box automatically sounds to remind the user to take medicine. Figure 3 shows the one-time setting and work flow.
如果一天之内 (预置的循环时间长度 TQ为 24小时) 需要吃三次药, 用 户就可以在拿到药盒的第一天里,在早中晚三个合适的吃药时间里按动一下 电子药盒上的设定按键,在按时吃药的同时也设定好了以后每天的吃药时间 。 同样道理, 在第二天的早中晚三个同样的时刻, 电子药盒就会自动响起。 以后每天都是如此。 这样的用户设置中, 由于三次用户设定中使用的预置 T。和 ^时间长度相同, 就是形成了三个平行的步骤系列, 有三个定时开关 机。 If you need to take the medicine three times within one day (the preset cycle time T Q is 24 hours), the user can press the three appropriate medicine taking times in the morning, middle, and evening on the first day of receiving the medicine box. Click the setting button on the electronic pill box to take the medicine on time and set the time for taking medicine every day in the future. For the same reason, the electronic pill box will automatically sound at the same time at the same time in the morning, middle, and evening of the next day. This will be the case every day. In such user settings, the preset T used in the three user settings is used. The time length is the same as ^, that is, three parallel step series are formed, and there are three timing switches.
采用本发明设计的电子药盒, 由于硬件结构非常简单, 电子装置的成本 低、 体积小, 利于大批量普及推广; 也由于定时设定和使用都非常筒单, 几 乎任何年龄、 视力和文化程度的用户都会使用 (包括盲人等)。 而现有的电 子药盒有两种定时方案; (一) 带时钟电路、 时钟液晶显示屏及多个按键, 需要用户按要求事先设定好吃药时响铃的时间,这种方案如果要设定 2~3个 定时就需要用户对 2〜4个按键按正确的步驟操作 10~30步, 十分麻烦; (二 ) 带固定时间的倒计时电路、 1~2个按键, 一般都按 4小时为固定时间做倒 计时, 用户每次吃药时按一下键, 4小时后就会响铃提示再次吃药, 这种方 案的好处是用户操作简单, 而问题也有三个: (1 ) 每次吃药时都需要记住按 一次键, 否则下次将不能自动响铃提醒; (2) —天的最后一次吃药时要求不 去按键, 否则 4小时后又将响铃, 但此刻不需吃药, 可能影响睡眠等其他生 活; (3) 倒计时的时间固定, 不一定适合用户的生活习惯或药品的使用规定 。 因此采用本发明方案设计的电子药盒是吸取了现有两种设计方案的优点, 最大程度地减少了用户操作的复杂度, 也降低了生产制造成本, 也最大程度 地满足了用户生活习惯和用药规定, 使传统的电子药盒产品煥发青春。 The electronic pill box designed by the present invention has a very simple hardware structure, low cost and small size of the electronic device, which is conducive to large-scale popularization; and because the timing setting and use are very simple, almost any age, eyesight and education level Of users will use it (including blind people, etc.). There are two timing schemes for the existing electronic pill boxes. (1) With a clock circuit, a clock LCD screen and multiple buttons, users need to set the bell time before taking the medicine according to requirements. Setting 2 ~ 3 timings requires users to operate 10 ~ 30 steps on 2 ~ 4 keys in the correct steps, which is very troublesome; (2) Countdown circuit with fixed time, 1 ~ 2 keys, usually press 4 hours Count down for a fixed time. When the user presses the key every time they take the medicine, the bell will remind them to take the medicine again after 4 hours. The advantage of this solution is that the user is easy to operate and there are three problems: (1) each time You need to remember to press the key once when you are taking the medicine, otherwise you will not be able to ring the alarm automatically next time; (2) — You are not required to press the button when taking the last medicine of the day, otherwise it will ring again after 4 hours, but you do not need to take it at this moment Medicine, which may affect other lives such as sleep; (3) the countdown time is fixed and may not be suitable for the user's lifestyle or drug usage regulations. Therefore, the electronic pill box designed by adopting the scheme of the present invention absorbs the advantages of the two existing design schemes, minimizes the complexity of the user's operation, reduces the manufacturing cost, and also satisfies the user's living habits and Medication regulations rejuvenate the traditional electronic kit products.
在本实施例中, 含有本发明方法程序的微处理器(MCU) 对每一次开机 输入进行了同步计时, 并均在整 24小时 (T。) 后的时刻发出开机操作命令, 自动令讯响发声器工作。本发明方法在保留用户的使用习惯和个性要求的基 础上, 显著改善了现有电子药盒的自动定时工作和定时设定模式, 达到了定 时控制提醒吃药和用户操作手续都非常简单的目的。
通过以上实施例的阐述,可以看出采用本发明的定时设定方法非常简单 实用, 其应用产品也有很好的智能性和使用方便性, 具有广阔的前景。 In this embodiment, the microprocessor (MCU) containing the method program of the present invention synchronizes the timing of each boot input, and issues a boot operation command at a time after the entire 24 hours (T.), which automatically makes the alarm sound. Sounder works. The method of the invention significantly improves the automatic timing work and timing setting mode of the existing electronic pill box on the basis of retaining the user's usage habits and personality requirements, and achieves the purpose of timing control reminding to take medicine and user operation procedures to be very simple. . From the description of the above embodiments, it can be seen that the timing setting method of the present invention is very simple and practical, and its application products also have good intelligence and convenience, and have broad prospects.
以上所述仅为本发明的优选实施例而已, 并不用于限制本发明, 对于本 领域的技术人员来说, 本发明可以有各种更改和变化。 凡在本发明的精神和 原则之内, 所作的任何修改、 等同替换、 改进等, 均应包含在本发明的权利 要求范围之内。
The above descriptions are merely preferred embodiments of the present invention, and are not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and changes. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention shall be included in the scope of claims of the present invention.