1. A method comprising:
retrieving a present sensor reading;
incrementing a reading change counter and setting a stable reading counter to a predetermined value in response to the present sensor reading not equaling an immediately previous sensor reading;
reporting a sensor reading bouncing error and resetting the reading change counter to a predetermined value in response to the reading change counter being greater than or equal to a reading change tolerance;
incrementing said stable reading counter in response to the present sensor reading equaling the immediately previous sensor reading;
resetting said stable reading counter and reading change counter to a predetermined value in response to said stable reading counter being greater than or equal to a stable reading tolerance;
reporting a state change event and setting said most-recent stable sensor reading equal to said present sensor reading in response to said present sensor reading not being equal to said most-recent stable sensor reading; and
setting said previous sensor reading to said present sensor reading.
2. The method of claim 1 further comprising repeating said retrieving, incrementings, reportings, resetting and setting.
3. The method of claim 1 further comprising repeating said retrieving, incrementings, reportings, resetting and setting in response to the reading change counter being less than a reading change tolerance.
4. The method of claim 1 further comprising repeating said retrieving, incrementings, reportings, resetting and setting in response to said stable reading counter being less than a stable reading tolerance.
5. The method of claim 1 further comprising repeating said retrieving, incrementings, reportings, resetting and setting in response to said present sensor reading being equal to said most-recent stable sensor reading.
6. The method of claim 1, further comprising:
initializing a present sensor reading, previous sensor reading and a most-recent stable sensor reading to each be equal to a default sensor state, prior to said retrieving;
setting a stable reading counter and reading change counter at a predetermined value, prior to said retrieving.
7. A method comprising:
retrieving a present sensor reading;
determining if the present sensor reading equals an immediately previous sensor reading;
incrementing a reading change counter and setting a stable reading counter to a predetermined value in response to the present sensor reading not equaling an immediately previous sensor reading;
determining if a change in the reading change counter is greater than or equal to a reading change tolerance;
reporting a sensor reading bouncing error and resetting the reading change counter to a predetermined value in response to the reading change counter being greater than or equal to a reading change tolerance;
incrementing said stable reading counter in response to the present sensor reading equaling the immediately previous sensor reading;
determining if a change in said stable reading counter is greater than or equal to a stable reading tolerance;
resetting said stable reading counter and reading change counter to a predetermined value in response to said stable reading counter being greater than or equal to a stable reading tolerance;
determining if said present sensor reading is not equal to said most-recent stable sensor reading;
reporting a state change event and setting said most-recent stable sensor reading equal to said present sensor reading in response to said present sensor reading not being equal to said most-recent stable sensor reading; and
setting said previous sensor reading to said present sensor reading.
8. The method of claim 7 further comprising repeating said retrieving, determinings, incrementings, reportings, resetting and setting.
9. The method of claim 7 further comprising repeating said retrieving, determinings, incrementings, reportings, resetting and setting in response to the reading change counter being less than a reading change tolerance.
10. The method of claim 7 further comprising repeating said retrieving, determinings, incrementings, reportings, resetting and setting in response to said stable reading counter being less than a stable reading tolerance.
11. The method of claim 7 further comprising repeating said retrieving, determinings, incrementings, reportings, resetting and setting in response to said present sensor reading being equal to said most-recent stable sensor reading.
12. The method of claim 7, further comprising:
initializing a present sensor reading, previous sensor reading and a most-recent stable sensor reading to each be equal to a default sensor state, prior to said retrieving;
setting a stable reading counter and reading change counter at a predetermined value, prior to said retrieving.
13. A computer program product comprising:
a computer usable medium having computer readable program code means embodied therein for causing a computer to, in iterative fashion:
retrieve a sensor reading;
determine if said sensor reading represents a changed sensor reading;
increment a reading change counter and set a stable reading counter to a predetermined value in response to the sensor reading having changed;
determine if a changed sensor reading is indicative of toggling;
report a sensor reading bouncing error and reset the reading change counter to a predetermined value in response to the reading change indicating the sensor reading is toggling;
increment said stable reading counter in response to the sensor reading having not changed;
determine if the unchanged sensor reading is stable;
reset said stable reading counter and said reading change counter to a predetermined value in response then unchanged sensor reading being stable;
determine if a stable unchanged sensor reading is different from a most-recent stable sensor reading;
report a state change event and set said most-recent stable sensor reading to be equal to the stable unchanged sensor reading; and
set a previous sensor reading to be equal to said sensor reading.
14. The computer program product of claim 13 wherein said code means further comprises code means for causing a computer to:
initialize a present sensor reading to be equal to a default sensor state value;
initialize said previous sensor reading to be equal to a default sensor state value;
initialize said most-recent stable sensor reading to be equal to a default sensor state value;
initialize said stable reading counter at a predetermined value; and
initialize said reading change counter at a predetermined value.
15. The computer program product of claim 13 wherein said code means loops in response to first said sensor reading not toggling.
16. The computer program product of claim 13 wherein said code means loops in response to said sensor reading not being stable.
17. The computer program product of claim 13 wherein said code means loops in response to said sensor reading being the same as a most-recent stable sensor reading.
18. The computer program product of claim 13 wherein said code means determines if said sensor reading represents a changed sensor reading by determining if the retrieved sensor reading equals an immediately previous sensor reading.
19. The computer program product of claim 13 wherein said code means determines if a changed sensor reading is indicative of toggling by determining if a count of changes in the sensor state value has achieved a threshold.
20. The computer program product of claim 13 wherein said code means determines if the unchanged sensor reading is stable by determining if a count of stable sensor readings is greater than or equal to a stable reading sensor tolerance.
21. A system comprising:
means for retrieving a present sensor reading;
means for determining if the present sensor reading equals an immediately previous sensor reading;
means for incrementing a reading change counter and setting a stable reading counter to a predetermined value in response to the present sensor reading not equaling an immediately previous sensor reading;
means for determining if a change in the reading change counter is greater than or equal to a reading change tolerance;
means for reporting a sensor reading bouncing error and resetting the reading change counter to a predetermined value in response to the reading change counter being greater than or equal to a reading change tolerance;
means for incrementing said stable reading counter in response to the present sensor reading equaling the immediately previous sensor reading;
means for determining if a change in said stable reading counter is greater than or equal to a stable reading tolerance;
means for resetting said stable reading counter and reading change counter to a predetermined value in response to said stable reading counter being greater than or equal to a stable reading tolerance;
means for determining if said present sensor reading is not equal to said most-recent stable sensor reading;
means for reporting a state change event and setting said most-recent stable sensor reading equal to said present sensor reading in response to said present sensor reading not being equal to said most-recent stable sensor reading; and
means for setting said previous sensor reading to said present sensor reading.
The claims below are in addition to those above.
All refrences to claim(s) which appear below refer to the numbering after this setence.
1. A dispenser for attachment to a container containing a fluid material, comprising:
an actuator which keeps the container in a substantially constantly open configuration so as to allow the fluid to pass into the dispenser; and
a controllable outlet, through which a portion of the fluid is emitted from the dispenser, substantially independent of the fluid pressure in the container.
2. A dispenser as in claim 1, wherein the fluid material in the container is pressurized.
3. A dispenser as in claim 1, wherein the fluid material in the container is non-pressurized.
4. A dispenser as in claim 1, wherein the size of the emitted portion is controlled by varying an amount of time in which the controllable outlet is in an open state.
5. A dispenser as in claim 1, wherein the dispenser has an open stare in which the fluid is emitted from the dispenser, and a closed state in which the fluid is prevented from leaving the dispenser, and wherein the dispenser consumes energy substantially only during transition between the open and closed states.
6. A dispenser as in any of the preceding claims, and comprising an electric motor which controls passage of the portion of the fluid through the outlet.
7. A dispenser for attachment to a container containing a fluid material, comprising:
an actuator, which keeps the container substantially constantly in an open configuration so as to allow the fluid to pass into the dispenser; and
an electric motor, which opens the dispenser so that fluid is emitted therefrom and closes the dispenser to prevent the fluid emission.
8. A dispenser as in claim 7, wherein the motor is battery operated.
9. A dispenser as in claim 7, wherein the motor is connected to an electric line.
10. A dispenser as in any of claims 6-9, wherein the motor opens and closes the dispenser by a rotational movement.
11. A dispenser as in claim 1, wherein the container has a valve, and the dispenser has a bore therethrough, which receives the fluid from the valve, the bore comprising a first part having a first inner diameter and a second part having a second inner diameter, larger than the first inner diameter, wherein the dispenser includes:
a hollow shaft, axially movable within the bore, the shaft having a hole disposed along the length thereof such that when the hole is positioned in the first part of the bore, the fluid does not pass through the shaft, and when the hole is in the second part of the bore, the fluid passes through the shaft and is emitted from the dispenser.
12. A dispenser as in claim 11, and comprising a lever connected to the shaft, such that the shaft is axially moved by the lever.
13. A dispenser as in claim 12, and comprising a screw which drives the lever, wherein the lever comprises an internal thread for receiving the screw.
14. A dispenser as in claim 11, wherein the outlet includes an orifice through which the material is emitted, and wherein the size of the orifice is not substantially smaller than the size of the hole, so that a gas leaving the container does not expand within the dispenser.
15. A dispenser as in claim 1, wherein the dispenser operates substantially without dependence on gears or cams.
16. A dispenser as in claim 1, wherein the container has a valve and the actuator comprises a plunger which depresses the valve.
17. A dispenser as in claim 1, wherein the actuator comprises a hose.
18. A dispenser as in claim 1, and comprising a processor which periodically actuates emission of the fluid.
19. A dispenser as in claim 18, and comprising a user interface for controlling the operation of the dispenser.
20. A dispenser as in claim 18, wherein the processor is programmed to actuate different emission durations at different times.
21. A dispenser as in claim 1, wherein the dispenser comprises an adapter for attaching the dispenser to different types of containers.
22. A dispensing container comprising:
a can containing a fluid;
a dispenser head which has an open state in which the fluid is emitted from the can and a closed state in which the fluid is not emitted; and
a motor which changes the state of the dispenser head between the open and closed states.
23. A dispenser as in claim 22, wherein the dispenser head has a bore therethrough, which receives the fluid from the can, the bore comprising a first part having a first inner diameter and a second part having a second inner diameter, larger than the first inner diameter, wherein the dispenser head includes:
a hollow shaft, axially movable within the bore, the shaft having a hole disposed along the length thereof such that when the hole is positioned in the first part of the bore, the fluid does not pass through the shaft, and when the hole is in the second part of the bore, the fluid passes through the shaft and is emitted from the dispenser head.
24. A dispenser as in claim 1, wherein the dispenser is portable.
25. A dispenser as in claim 1, wherein the fluid is dispensed to water a plant.
26. A dispenser as in claim 1, wherein the fluid comprises a deodorant.
27. A dispenser as in claim 1, wherein the fluid comprises an insecticide.
28. A dispenser as in claim 1, wherein the fluid comprises a smoke-producing material.
29. A dispenser as in claim 1, and comprising a horn mounted on the dispenser so as to make a sound when the fluid is emitted.
30. A dispenser as in claim 1, wherein the fluid is emitted as an aerosol.
31. A dispenser as in claim 1, and comprising a hanger for hanging the dispenser such that the dispenser is free to turn.
32. A cooling device comprising:
an insulating case;
a pressurized gas container; and
a dispenser, arranged to periodically emit the gas from the container into the case in order to cool the interior of the case.
33. The device of claim 32, and comprising a one-way valve for emitting excess gas from the case.
34. The device of claim 33, wherein the excess gas emitted from the case comprises gas that is generally warmer than an average temperature of the gas in the case.
35. The device of claim 33, wherein the excess gas emitted from the case comprises gas that has been in the case for a generally longer period than most of the gas in the case.
36. The device of claim 32, wherein the insulating case comprises passages and the gas emitted from the container leaves the case substantially only through the passages.
37. The device of claim 32, wherein the dispenser is fixed to the container such that the container is in a substantially constantly open position, allowing the gas to pass into the dispenser, and wherein the dispenser emits the gas substantially independently of the gas pressure in the container.
38. The device of claim 32, wherein the dispenser comprises an electric motor which drives the dispenser to emit the gas by rotational movements of the motor.
39. The device of claim 32, and comprising a thermostat which actuates emission of the gas.
40. A method for dispensing a material from a container having a valve, comprising:
fixing a dispenser to the container, such that the dispenser holds the valve in a substantially constantly open position, so as to allow the material to pass into the dispenser; and
emitting the material from the dispenser substantially independently of the pressure of the material in the container.
41. The method of claim 40, wherein fixing the dispenser to the container comprises fixing the dispenser to a container containing a pressurized material.
42. The method of claim 40, wherein the dispenser includes an electric motor, and emitting the material comprises actuating the motor so as to cause the material to be emitted.
43. The method of claim 42, wherein actuating the motor comprises driving a rotational movement using the electric motor.
44. The method of claim 40, wherein emitting the material comprises emitting the material periodically.
45. The method of claim 40, wherein emitting the material comprises emitting the material at a first rate during a first period and emitting the material at a second rate during a second period.
46. The method of claim 40, wherein emitting the material comprises emitting the material in response to an external signal.
47. The method of claim 46, wherein emitting the material comprises emitting the material in response to a signal received from a sensor.
48. The method of claim 40, wherein emitting the material comprises emitting an aerosol.
49. The method of claim 40, wherein emitting the material comprises emitting a deodorant.
50. The method of claim 40, wherein emitting the material comprises emitting an insecticide.
51. The method of claim 40, wherein emitting the material comprises emitting smoke.
52. The method of claim 40, wherein emitting the material comprises watering a plant.
53. The method of claim 40, and comprising hanging the dispenser such that it is free to turn.
54. The method of claim 40, wherein emitting the material comprises bringing the dispenser from a closed state to an open state in which the material is emitted from the dispenser, and wherein the dispenser consumes energy substantially only during transition between the open and closed states.
55. A method of maintaining a concentration level of a material within an area comprising:
receiving a signal from a sensing device, in response to the level of the material in the area; and
setting an automatic dispenser mounted on a container of the material to operate responsive to the sensor.
56. The method of claim 55, wherein setting the dispenser comprises setting the dispenser to operate when the level is beneath a predetermined level.
57. The method of claim 55 or claim 56, wherein the material comprises oxygen.
58. Apparatus for maintaining a concentration level of a material within an area, comprising:
a container containing the material;
a sensor which senses the concentration of the material within the area and generates signals responsive to the concentration; and
an automatic dispenser mounted on the container which dispenses the material in response to the signals from the sensor,
wherein the apparatus operates substantially independently of any wired or fluid communication with elements other than the sensor, container and dispenser.
59. The apparatus of claim 58, wherein the sensor generates signals responsive to a concentration below a predetermined level.
60. A method of maintaining a low temperature in a volume, comprising controlling an automatic dispenser to automatically emit a gas from a pressurized gas container into the volume.
61. The method of claim 60, wherein directing the dispenser comprises setting the dispenser to periodically emit the gas.
62. The method of claim 60, wherein directing the dispenser comprises directing the dispenser to emit the gas responsive to a temperature sensor.
63. The method of claim 60, wherein the gas comprises air.
64. The method of claim 60, and comprising emitting excess gas from the volume which is generally warmer than an average temperature of the gas in the volume.
65. The method of any of claims 60-63, and comprising emitting excess gas from the volume which gas has been in the volume generally for a longer period than most of the gas therein.
66. A method of pest control comprising:
mounting an automatic dispenser having a horn head on a pressurized gas container; and
operating the dispenser automatically to periodically emit a portion of the gas in the container so as to operate the horn.
67. The method of claim 66, wherein periodically emitting the gas comprises emitting gas in response to detection of a pest.
68. The method of claim 66 or claim 67, wherein periodically emitting the gas comprises emitting gas so as to cause movement disturbing to the pest.