Timer device and method for operating said timer device
10768579 ยท 2020-09-08
Assignee
Inventors
Cpc classification
G06F11/0706
PHYSICS
International classification
Abstract
A timer device comprising a first timer in communication with control means, the control means being in communication with an external component and the first timer sending an order to the control means after a first preset time period is counted by the first timer, the timer device also comprising a second timer in communication with the control means, the second timer counting a second preset time period that is a portion of the first preset time period. The timer device permits an accurate operation, even with changes of temperature and voltage, and with a reduced cost.
Claims
1. A fragrance dispenser comprising: a timer device comprising a first timer in communication with a controller; said controller being in communication with a fragrance dispenser unit of the fragrance dispenser; said first timer sending an order to the controller after a first preset time period is counted by the first timer; the timer device further comprising a second timer in communication with said controller, said second timer counting a second preset time period, wherein the second preset time period is shorter than said first preset time period and is a portion of said first preset time period, wherein when said second time period is expired and said first time period is also expired, said controller is reset, and the fragrance dispenser unit starts a new operation cycle, wherein when the second time period is expired but the first time period is not expired, the value in a memory is incremented, and the second timer is immediately restarted to run from zero for the second preset time period; when said second time period is expired and said first time period is also expired, the value in the memory is read and is used to calculate a new time base, and wherein the new time base is used as the first time period for a next operation cycle of the fragrance dispenser unit.
2. The fragrance dispenser according to claim 1, wherein said first timer is a watchdog timer.
3. The fragrance dispenser according to claim 1, wherein the fragrance dispenser further comprises: a memory in communication with the controller, wherein said memory acts as a counter and is incremented each time the second time period counted by the second timer expires.
4. The fragrance dispenser according to claim 1, wherein said first and second timers are placed inside the timer device.
5. A method for operating the fragrance dispenser, the method comprising: setting a first time period to be counted by a first timer; setting a second time period to be counted by a second timer, wherein said second time period is shorter than said first preset time period and is a portion of the first time period; when said second time period is expired, but said first time period is not expired, the second timer beginning again the measure of the second time period; and when said second time period is expired and said first time period is also expired, resetting a controller, and starting a new operation cycle of the fragrance dispenser, wherein when the second time period is expired but the first time period is not expired, incrementing a value in a memory, and the second timer is immediately restarted to run from zero for the second preset time period; when said second time period is expired and said first time period is also expired, reading the value in the memory and using the value to calculate a new time base, and wherein the new time base is used as the first time period for a next operation cycle of the fragrance dispenser unit.
Description
BRIEF DESCRIPTION OF THE DRAWINGS
(1) For a better understanding of what has been disclosed, some drawings are attached in which, diagrammatically and only as a non-limitative example a specific embodiment is shown.
(2)
DESCRIPTION OF A PREFERRED EMBODIMENT
(3)
(4) The timer device according to the invention also comprises a second timer 13 in communication with said control means 11, said second timer 13 counting a second preset time period that is a portion of said first preset time period.
(5) The timer device according to the invention also comprises a memory 14 in communication with the control means 11, which memory 14 acts as a counter and is incremented each time the second time period counted by the second timer 13 expires, as will be explained hereinafter.
(6) As shown in
(7) Firstly, it must be pointed out that operation cycle is considered all activities done by the control means 11 in order to follow what the software requires for the component 15. If the component 15 is a fragrance dispenser, the normal operations are the temporized activation/deactivation of the heater or fan, the led blinks, checking for the button activation and change the device status consequently, and so on.
(8) The method according to the invention comprises the following steps:
(9) set a first time period to be counted by a first timer 12 and a second time period to be counted by a second timer 13, said second time period being a portion of the first time period;
(10) when said second time period is expired, but said first time period is not expired, the second timer 13 begins again the measure of the second time period; and
(11) when said second time period is expired and said first time period is also expired, control means 11 of the timer device are reset, and a component 15 connected with the timer device 1 starts a new operation cycle.
(12) Preferably, when the second time period is expired but the first time period is not expired, the value of a memory 14 is incremented, and when said second time period is expired and said first time period is also expired the value of the memory 14 is read and it is used to calculate a new time base, which is used as the first time period for the next operation cycle.
(13) One example of a component is a fragrance dispenser, in which an operation cycle is defined and which is repeated cyclically, for example activating a heater or fan for dispensing the fragrance and then deactivating said heater or fan.
(14) In this case, the first time period can be of 10 seconds, which will be counted by the first timer 12 and the second time period can be 500 milliseconds, which will be counted by the second timer 13.
(15) When the first 500 milliseconds are counted by the second timer 13 and the second time period is the count of the memory 14, originally 0, will be increased by 1, because the first time period will not be expired.
(16) This count of the second time period will be repeated 20 times, until the expiration of the first time period, 10 seconds after. At this time, the control means 11 will be reset, the value of the memory (in this case 20) will be read, and this value will be used as a basis for calculating a new time base, which will be used as the first time period for the next operation cycle.
(17) Even though reference is made to a specific embodiment of the invention, it is apparent for a person skilled in the art that the timer device and the method are susceptible of numerous variations and modifications, and all the details cited can be substituted by other technically equivalent ones, without departing from the scope of protection defined by the attached claims.