the housing can be a removable housing placed directly over and enclosing , partially or completely , the internal working components of the dispenser . alternatively , the housing can simply be a removable or replaceable shelf that can be placed over an intact dispenser using removable housing attachments . the housing , and the important structural components of the dispenser can be molded of a variety of useful materials . thermoplastic and thermosetting or composite materials can be used to make the housing . alternatively , the housing can be made from metallic elements , however , polymeric thermoplastic or thermosetting ( composite ) materials are preferred . preferably , the housing , dispenser components , etc . can be molded in one or more unitary pieces through the use of conventional plastic injection molding , thermoforming , blow molding , etc . techniques . a variety of plastic polymeric materials can be used in fabricating the holder including polyethylene , polypropylene , polystyrene , abs plastics , urethane resins , epoxy resins , nylon resins and others . preferred plastic materials include styrenic materials such as polystyrene or abs , polyethylene , and polypropylene . the dispenser contains both a source of a liquid chemical and the means to dispense it . as discussed below , the chemical can be provided in the form of a cartridge or flexible bag containing the chemical . typically , the cartridge or flexible bag has a dispensing port from which the liquid chemical can be delivered to the user . such a port can work cooperatively with dispensing means actuated by the user . the dispensing means can be a simple mechanical valve or pump , an electrical generated pump , or any other known device that can produce a useful volume of the liquid chemical . for liquid hand soap or sanitizing hand soap , the amount of soap can range from about 0 . 2 to about 5 milliliters , preferably about 0 . 5 to 3 milliliters in volume . a preferred means of delivering the liquid from the container dispenser comprises a flexible compressible tube , attached to a flexible container , that can act as a pump portion . when used , the user compresses a bar or other feature on the front of the housing . such compression forces a compressing surface against the flexible tube . the flexible tube contains internal valve means that prevent backflow of the liquid from the tube into the bag or cartridge . the compression of the tube and the valves cooperate to ensure that the liquid is expressed from the flexible tube into the hands of the user . the flexible tube is typically positioned in the housing in a location convenient to the location of the housing portion that triggers dispensing of the liquid . the shell or case also comprises a containment means or holding means for the chemical . such a holding means can comprise a reservoir or chamber that can contain a sufficient quantity of chemical to satisfy requirements for a period of use of the chemical . a period of use can comprise one day , two days , a week , two weeks or a month or more of use . the period of use depends on the type of chemical , its shelf life and rate of use . such holding means can comprise a volume within the case of at least 50 ml , preferably 100 ml to 5 liters of volume . most preferably , the volume of the holding means is about 150 to 1000 ml for reasons of convenience and ease of insertion . in a preferred mode , the chemical is encased in a flexible bag or cartridge that can be inserted into the holding means of the case . a cartridge can have any arbitrary shape . useful shapes include cylinders , cubes , rectangular solids , triangular solids , cones , truncated cones , bottle shapes , or any arbitrary shape designed to fit particularly in a holding means of a particular dispenser . such bags or cartridge shapes can have unique shapes to ensure that a cartridge is designed to fit in a particular dispenser and intended to dispense a particular chemical . such bags or cartridges can be made from cardboard , paperboard , etc . ; metallic substances such as aluminum , metallized polyester ; thermoplastic films such as polyethylene , polypropylene , polyethylene terephthalate , polyvinyl chloride , polystyrene , a thermoplastic composite material , etc . such bags or cartridges can be sized as discussed above to contain a sufficient volume or weight of chemical to satisfy requirements for a given period . the liquid chemical can be provided in the form of the contents of a flexible bag . the contents can be removed by applying pressure to the bag or by pumping liquid from a tube attached to the bag . the bag or cartridge of the invention is typically equipped with a closed chemical port . typically , the port comprises a flexible tube from which the liquid can be dispensed . the bag or cartridge is designed to deliver the chemical through the port after the closed port is opened . the port can be opened by removal of a closing membrane , piercing a membrane , removing a screw cap , or separating any of a variety of conventional closing means from the cartridge portal . in a preferred mode , the portal is covered by a cap or a paper , film , metallized film , or other thin piercable web closure . when the cartridge is inserted into the holding means , the web closure contacts an opening means that can pierce the web closure . the opening means is shaped and configured to provide a sufficient aperture in the web closure to permit a sufficient volume of the chemical to be dispensed for appropriate operation . the opening means can be configured to remove the portion of the opening means away from the portal to ensure that the opening does not become plugged . such a bag or cartridge can be loosely fitted into the holding means of the case or can be shaped to conform exactly to the exterior shape of the cartridge . the holding means can also include a lid or cover such that the cartridge is fully enclosed by the case and cover . such a cover can be removable or can be hingedly attached or slidingly attached to the case . the dispenser of the invention involves means to dispense a liquid product such as a sanitizer material or a hand soap . such means includes a movable surface or pressure plate which compresses a soap delivery tube , thereby expressing hand soap into the user &# 39 ; s hand . the counting means of the invention is operably connected to the dispenser means operated by the user to dispense the liquid . in a first embodiment , positioned behind the delivery tube is a membrane pressure switch which is activated each time the delivery tube is compressed . the device includes a counting apparatus which is connected electrically to the pressure switch . data about every contact between the user ( i . e .) each pressure plate depression ( i . e . every pressure switch closing ) is counted or captured by the counting apparatus . users will repeatedly contact dispensers ( e . g .) by depressing the pressure switch to increase the amount ( volume ) of the dispensed liquid until satisfied . while the device of the invention records all pressure switch activations , that data can be manipulated in several different ways to generate several different pieces of information . the data , however , always provides reliable user data that discriminates between employees and each employee use . in an alternate embodiment , positioned behind the delivery tube is a membrane pressure switch which is activated each time the delivery tube is compressed . the device includes a counting apparatus which is connected electrically to the pressure switch . data about every contact between the user ( i . e .) each pressure plate depression ( i . e . every pressure switch closing ) is counted or captured by the counting apparatus . while the device of the invention records all pressure switch activations , that data can be manipulated in several different ways to generate several different pieces of information . in this particular embodiment , the device maintains a cumulative sum total of dispenser usage , average activations per use and number of uses . this data could comprise total number of pressure plate depressions or alternatively could comprise total volume of hand soap dispensed . the first embodiment of the invention includes a numerical display capable of showing any data set generated by the device . each employee &# 39 ; s total usage counts can be displayed individually or in a data set of all employees . in addition , the display could also provide total daily soap usage individual soap usage , etc . preferably , an lcd display with four to six digits is used to conserve energy . in an alternative embodiment , the invention can comprise an internal display , accessible via a supervisor &# 39 ; s key . in this situation , only total - usage figures could be displayed . one embodiment of the invention includes a keypad suitable for entering data including employee id codes and supervisory codes as well . preferably , this keypad would have four buttons , bearing the numbers one through four . this limitation is due to the typical size of hand soap dispensers . four buttons is the most which fit easily onto the front of a dispenser while retaining adequate button size . since id codes could theoretically be of any length , four numbers would provide a sufficient number of unique ids . this keypad would be used for an employee to enter his / her own id code in order to obtain a dispensation of hand soap . the keypad would also be used by supervisors in order to obtain total usage figures , as well as usage counts broken down by individual employees . as discussed previously , the counting apparatus of the presently claimed invention registers all switch closures , regardless of frequency . it is necessary , however , to be able to distinguish between multiple closures caused by a single employee requesting additional hand soap and multiple closures caused by multiple employees each making in short succession single requests for soap . in order to accomplish this , the invention includes a microprocessor . this microprocessor would permit the generation of several different pieces of data . first , it would determine the purpose of multiple switch closures and would act accordingly . in general , multiple switch closures are assumed to be the work of a single employee if less than a predetermined amount of time has elapsed since the previous activation . in one embodiment the invention involves data collection or manipulation systems that monitors the usage of preferably a liquid product dispenser or a hand soap dispenser to report total number of hand soap doses dispensed between supervisor reset operations of the data collection system . the hand soap dispenser determines the trends of usage including average number of uses , liquid doses dispensed per use , total volume of hand soap dispensed during a use , volume of hand soap dispensed between resets , volume of soap dispensed per unit time and other similar data . as discussed above , the dispenser uses a compression switch sensor to detect the user input such as pressure on a dispensing bar in the dispenser . the dispenser can be placed into a data acquisition mode by inputting on the key pad a code causing the microprocessor to return data to the supervisor in response to such an appropriate input . in such a mode , the supervisor would input a code into the four position key pay of the dispenser . the dispenser readout or display would display nothing . the supervisor at that point could hit the dispensing lever or any data input button with a single impact and the display would read total number of all inputs , pushes or doses recorded by the dispenser electronics . such data would record a “ hit ” each time a user contacted the dispenser with a single push . at a supervisor second input to the dispenser , the average number of touches or pushes per user would display on the readout . a third press of the push button or input would cause the dispenser to display the number of users inputting to the machine . the last input would cause the microprocessor to return to its data accumulation mode . a data accumulation mode of the dispenser counts data inputs from the users . a data acquisition mode permits the supervisor or other management personnel to obtain the usage data accumulated or calculated by the dispenser in a printed , visual or electronic format . the simple counting device of this embodiment consists of a compression switch which can be compressed as a user compresses the bar that dispenses the liquid material such as liquid hand soap from a dispensing tube in the dispenser . microchip pic16c923 microcontroller can be installed with a replaceable battery and a user interface module is installed in the dispenser . the interface module consists of a numeric display and a push button switch ( see fig1 - 11 ). the compression switch can be located behind the delivery tube of the liquid material dispensed . the switch is connected to an input of the microcontroller which counts all inputs . an input consists of a compression of the delivery tube by a user causing the contacts of the switch to close notifying the microcontroller that a single dose of hand soap was dispensed in response to a single input or compression of the dispenser components by a user . the microprocessor recognizes multiple doses within a short period of time and counts each dose but recognizes that the multiple doses involves a single use and a single user of the dispenser . the user interface module data can be collected by a user interface module . whenever the user interface module is attached to the dispenser , the count data can be displayed on the numeric display of the dispenser or read to the user interface module and its memory or printed on a printer attached or included in the module . while usage figures for individual employees may be displayed via the numerical display , it may become cumbersome for supervisors to be limited to this display manner . consequently , it is anticipated that supervisory personnel would also have the option of retrieving usage data by downloading into a handheld device . optionally , a push button would be provided which permits the user to request a display of personalized use data . if the push button of the user interface module is pressed while attached , the device would reset to 0 for accumulation of new data after accumulated data is transferred in useful formats . in the preferred embodiment , the device will contain the following components . the dispensing device contains a stationary switch mounted behind the delivery tube which can be compressed as the user obtains a dose of the liquid material . the placement of the switch would be such that the switch would go from a normally open position to a normally closed position whenever the delivery tube is compressed . the microprocessor controller monitor is reopened or closed status of the switch and in response to the switches manipulates data according to programmed instructions within the microprocessor that maintains a running total of switch closures , a running total of switch closures per use and based on these data calculates other important usage information . in order to calculate useful data the dispenser needs calibration to establish the volume of liquid dispensed per dose . the condition for determining if a single use had occurred will be any two or more switch closures within a ten second interval . the dispenser would have a push button with two functions ; a first function acts as a request or prompt with the delivery of stored data to a supervisor , and secondly , acts as a reset to zero out old totals and to begin accumulating new data at the end of a week , month , quarter , six month period or annually . reset occurs when the push button is pressed and held for two or more seconds or other known reset mode well known to those of ordinary skill in the art . the dispenser could contain a visual read out such as a led , lcd or other display to display usage data . the display could alternate between a calculated average of switch closures per use , total number of switch closures , a quotient of closures divided by calculated average of switch closures or any other data generated by the microprocessor . in another embodiment the invention involves data collection or manipulation systems that monitors the usage of preferably a liquid product dispenser or a hand soap dispenser to report total number of hand soap doses dispensed between supervisor reset operations of the data collection system . as discussed above , the dispenser uses a compression switch sensor to detect the user input such as pressure on a dispensing bar in the dispenser . the simple counting device of the alternative embodiment consists of a compression switch which can be compressed as a user compresses the bar that dispenses the liquid material such as liquid hand soap from a dispensing tube in the dispenser . microchip pic16c923 microcontroller can be installed with a replaceable battery . the compression switch can located behind the delivery tube of the liquid material dispensed . the switch is connected to an input of the microcontroller which counts all inputs . an input consists of a compression of the delivery tube by a user causing the contacts of the switch to close notifying the microcontroller that a single dose of hand soap was dispensed in response to a single input or compression of the dispenser components by a user the microprocessor recognizes multiple doses within a short period of time and counts each dose but recognizes that the multiple doses involves a single use and a single user of the dispenser . the dispensing device contains a stationary switch mounted behind the delivery tube which can be compressed as the user obtains a dose of the liquid material . the placement of the switch would be such that the switch would go from a normally open position to a normally closed position whenever the delivery tube is compressed . the microprocessor controller monitors the reopened or closed status of the switch and in response to the switches manipulates data according to programmed instructions within the microprocessor that maintains a running total of switch closures . fig1 is a perspective view of a dispenser 100 . this figure generally shows a housing 110 along with several key components . these components include a four - button keypad 120 for inputting data . also shown is a sight - glass window 130 , permitting easy assessment of the quantity of soap remaining . pushbar 140 serves to activate the electronics contained within the dispenser and , of course , permits the dispensing of soap . the last feature seen in fig1 is the lcd display 150 . this is generally a four - to six - digit lcd display . fig2 is a cutaway side elevation of the dispenser shown in fig1 . this shows different views of some of the same features found in fig1 . specifically , the housing 110 is seen , along with a side view of a keypad 120 and the lcd display 150 . new features shown in fig2 include a power supply 210 , which in this instance is a 9 - volt battery . also seen here is the cooperative relationship among the dispensing tube 220 , membrane switch 230 and the pushbar hinge mechanism 240 , which is actually shown in phantom . when pushbar 140 is depressed , moving according to the hinged mechanism 240 , two things happen simultaneously . the dispensing tube 220 is pinched , which provides for the dispensing of a predetermined amount of soap . also , membrane switch 230 registers the dispensing . fig3 is a block diagram 300 of the dispenser of fig1 . this shows the general components of the invention . previously discussed is the keypad 120 , lcd display 150 , power supply 210 and pushbar switch or membrane switch 230 . this figure shows how each of these general devices communicate with the processor 320 which is mounted on a circuit board 310 . fig4 - 8 combined show a detailed flow sheet 400 . these flow charts represent the software necessary to control the processor of the first embodiment . each figure will be described in detail . fig4 a shows the beginning of the main flow chart . flow starts in block 402 and then proceeds to block 404 which is an initialization step . during this step “ init ” is displayed on the lcd display in block 406 . control then passes to block 408 which instructs the device to read the inputs . block 410 is a decision block where the device decides if there are any active inputs . if yes , control passes to the bottom of fig4 a to point 401 . if not , control passes to decision block 412 which determines if there has been a ten second timeout . if not , control passes back up to block 408 where inputs are read again . if yes , control passes to block 414 where the display is cleared . control then passes to block 416 where the processor is put into sleep mode . while in sleep mode , the device waits for key activation or for a port b interrupt . this is seen in decision block 418 . if there is a key activation , control passes to block 420 where the processor will wake up from sleep mode and then proceed to block 422 where inputs are read . at this point control is at point 401 which is continued on fig4 b . fig4 b begins at point 401 where control then passes to decision block 426 where the device determines if a single key is active . if not , control passes to decision block 432 where the device determines if the mode keys are active . if yes , control passes to block 407 which describes the service mode which is described in detail in fig5 . if not , control passes to block 434 where the display is cleared . flow continues to block 436 where the device cleans up and prepares for a fresh start . in block 438 the processor is put into sleep mode as indicated by block 440 . now returning to decision block 426 , if a single key is active , control passes to block 428 where the device saves the first id digit , then to block 430 where the device determines if the key has been released . if yes , control continues to point 403 , which is continued on fig4 c . fig4 c begins at control point 403 and is continued from the previous figure . control passes to decision block 442 where the device determines if there has been a ten second timeout . if yes , control passes to block 460 where the display is cleared and then passes to block 462 where the device prepares for a fresh start and finally passes to block 464 where the processor is put into sleep mode as denoted by block 466 . if there has not been a ten second timeout in decision block 442 , control passes to decision block 444 where the device determines if a second id digit has been entered . if yes , the device saves the second id digit in block 446 . block 448 is a decision block where the device determines if the key has been released . if yes , control passes to block 450 wherein the id and current count are displayed on the led display . at this point control passes to decision block 452 to determine if a ten second timeout has occurred . if yes , control passes through block 468 through 470 , 472 and finally 474 where the processor sleeps . returning to block 452 , if there has not been a ten second timeout , control passes to block 454 wherein the device asks if the lever switch has been activated . if yes , control passes to block 456 where the device increases by one the count for the chosen id and control then passes to block 458 where the id and incremented count are displayed for ten seconds . control is now at point 405 which is continued on fig4 d . fig4 d is the fourth and final portion of the main flow sheet . from point 405 control passes to decision block 476 where the device determines if there is a ten second timeout . if yes , control passes to block 478 where the display is cleared . the device then cleans up and prepares for a fresh start in block 480 . the processor is put into a sleep mode at 482 and sleeps as shown at block 484 . fig5 shows the service mode of the invention . the flow begins at block 407 and passes to block 502 wherein the device displays “ mode ?” flow then passes to decision block 504 where the device asks if all keys have been released . if yes , control continues flows to 506 where the device reads inputs . at decision block 508 the device asks if the one key is active . if yes , control passes to the read - out counts mode 501 . if not , the device asks in decision block 510 if the two key is active . if yes , control passes to the clear counters mode 503 . if not , control passes to decision block 512 where the device asks if there is a ten second timeout . if not , control passes back to block 506 where the inputs are read . if there is a ten second timeout , control passes to block 514 where the display is cleared , then to block 516 where the device cleans up and prepares for a fresh start . flow then proceeds to block 518 where the processor is put into the sleep mode as indicated by block 520 . fig6 a is the beginning of the readout counts mode as mentioned in previous figure . from block 501 control passes to block 602 where “ read ” is displayed on the led display . from here control passes to decision block 604 where the device asks if all keys have been released . if yes , flow continues to block 606 where the inputs are read . block 608 is a decision block where the device asks if the one key is active . if yes , control passes to point 540 which is continued on fig6 b . if not , control passes to decision block 610 where the device asks if there is a ten second timeout . if not , it returns to block 606 where the inputs are read . if yes , the display is cleared in block 612 . in block 614 the device prepares for a fresh start . flow continues to block 616 where the processor is put into sleep mode as indicated by block 618 . fig6 b is a continuation of the previous figure . from point 540 flow passes to block 620 where the device displays a first id code and count . flow then continues to decision block 622 where the device asks if the key is still active . if yes , control passes to decision block 624 where the device asks if there is a ten second timeout . if yes , control is passed to the auto readout mode indicated by block 601 and which is described in fig7 . if , however , at block 622 the key is not still active , control passes to block 626 where inputs are read . at this point control is at point 605 , which is continued on fig6 c . points 603 and 607 are return points which are linked to fig6 c . fig6 c begins at point 605 where flow continues to decision block 628 where the device asks if the one key is active . if not , control passes to decision block 640 where the device asks if there is a ten second timeout . if not , control passes back to point 607 as referenced on fig6 b . if , however , there is a ten second timeout , control passes to block 642 where the device clears the display . flow then passes to block 644 where the device cleans up and prepares for a fresh start . in block 646 the processor is put into sleep mode as indicated by block 648 . returning to decision block 628 , if the one key is active , control passes to block 630 where the device increments the id . flow then continues to block 632 where the device displays the next id code and count . control then passes to decision block 634 where the device asks if the id count equals 20 . if not , the device then asks in decision block 638 if all keys have been released . if yes , control passes to point 603 which is referenced in fig6 b . if however the id count in block 634 is equal to 20 , control passes to block 636 where the device asks if there is a ten second timeout . if yes , control passes to point 609 which is referenced in fig6 d . fig6 d begins at point 609 as referenced in fig6 c . flow then passes to block 650 where the device clears the display . in block 652 the device cleans up and prepares for a fresh start and is put into sleep mode in 654 as indicated by block 656 . fig7 shows the auto readout mode and begins at point 601 . control passes then to block 702 where the device displays the word “ auto ” on the led readout . control then passes to block 704 where the device asks if there was a ten second timeout . if yes , control passes to block 706 where the count and id are displayed starting with the first id from here , control passes to block 708 where again the device asks if there is a ten second timeout . if yes , the device increments the id in block 710 . control then passes to decision block 712 where the device asks if the id count is greater than 20 . if not , control passes to block 714 where the next id code and count are displayed . then at block 716 the device asks if there is a ten second timeout . if yes , control passes back to block 710 and the id is incremented . returning to decision block 712 , if the id count is greater than 20 , control passes to block 718 where the display is cleared . in block 720 , the device cleans up and prepares for a fresh start and then proceeds to block 722 where the processor is put into sleep mode as shown by block 724 . fig8 shows the clear counters mode and begins at point 503 . from point 503 control passes to block 802 where the device displays the word “ zero ” on the display . the flow then passes to decision block 804 where the device asks if all keys have been released . if yes , it continues to block 806 where the inputs are read . control then passes to decision block 808 where the device asks if the two key is active . if yes , control passes to block 820 where the counters for all id numbers are cleared . then control passes to block 822 where the display is cleared , and in block 824 the device prepares for a fresh start and is put into a sleep mode in 826 as indicated by block 828 . if , however , in block 808 the two key is not active , control passes to decision block 810 where the device asks if there is a ten second timeout . if not , control passes back to block 806 where the inputs are read . if there is a ten second timeout , however , control passes to block 812 where the display is cleared . the device prepares for a fresh start in block 814 and is put into sleep mode in block 816 . this is seen in block 818 . fig9 is a perspective view of a dispenser 900 . this alternative embodiment generally shows a housing 910 along with several key components . these components include a sight - glass window 930 , permitting easy assessment of the quantity of soap remaining . pushbar 940 serves to activate the electronics contained within the dispenser and , of course , permits the dispensing of soap . fig1 is a cutaway side elevation of the dispenser shown in fig9 and shows different views of some of the same features found in that figure . specifically , the housing 910 is seen , along with a side view of the push bar 940 . new features shown in fig1 include a power supply , which is a 6 - volt battery 1050 and the membrane switch 1060 . also seen in this figure are the microprocessor 1020 , a data request input 1030 and an internal display 1010 . when pushbar 940 is depressed , two things happen simultaneously . the dispensing tube is pinched , which provides for the dispensing of a predetermined amount of soap . also , membrane switch 1060 registers the dispensing . fig1 is a block diagram 1100 of the alternative embodiment . it shows an lcd display 1010 , a power supply 1050 and a particular microprocessor 1020 . the dispenser input 1060 is the previously discussed membrane switch . data request 1030 is typically a push button interface . fig1 is a logical flow sheet 1200 which describes the overall logic flow of the alternative embodiment . the diagram starts at block 1202 . block 1204 shows the device idle while waiting for either input or request . following the request side first , block 1206 is a decision block where the device determines if there has been a request . if yes , flow continues to block 1208 where the device displays total usage . flow then continues to block 1210 where the device displays the running average . finally flow continues to block 1212 where additional information is displayed . after this flow returns to block 1204 to wait for input or request . now following the input side of the diagram , block 1214 is a decision block where the device determines if any input has been entered . if yes , the total number of dispenses is incremented by one in block 1216 . flow then continues to decision block 1218 which concerns time elapsed since last input . if the time interval has been exceeded , flow continues to block 1220 where the device recalculates the running average . if not , control returns to block 1204 where the device sleeps and waits for input or request . the above specification , and figures provide a complete description of the manufacture and use of the data competent dispenser of the invention . since many embodiments of the invention can be made without departing from the spirit and scope of the invention , the invention resides in the claims hereinafter appended .
a device which measures individual employee usage of a liquid product or hand soap dispenser as part of an overall hygiene compliance program . the dispenser consists of a self - contained keypad / display module which is attached to a standard hand soap dispenser . an employee enters a unique personal id code and then activates the dispenser . the dispenser counts all inputs to the dispenser in order to generate meaningful data for management . alternatively , the dispenser may only track and report total usage and not account for individual employee usage .