Login| Sign Up| Help| Contact|

Patent Searching and Data


Title:
DISPENSER AND METHOD OF DISPENSING A MATERIAL
Document Type and Number:
WIPO Patent Application WO/2021/205146
Kind Code:
A1
Abstract:
A dispenser (10) for dispensing a material into a receptacle comprises a dispenser outlet (12) for dispensing material into the receptacle; a support (14) for receiving a receptacle; at least one lateral sensor (16, 18, 20) positioned to laterally sense a receptacle received on the support; an upper sensor (22) positioned to sense a receptacle received on the support from above; and a controller operatively connected to the lateral and upper sensors. The controller is configured to sense the presence of a receptacle received on the support, calculate the volume of the receptacle and/or the volume of material within the receptacle from data received from the lateral and upper sensors, and control the volume of material dispensed from the dispenser outlet into the receptacle based upon the calculated volume of the receptacle and/or the volume of material within the receptacle. In a further aspect a dispenser comprises an upper sensor comprising an ultrasonic sensor and optical recognition means positioned to sense a receptacle received on the support from above. Methods of dispensing a material are also disclosed.

Inventors:
GLASSTONE MATTHEW (GB)
RIDDIFORD MARTIN (GB)
MACKENZIE SCOTT (GB)
Application Number:
PCT/GB2021/050806
Publication Date:
October 14, 2021
Filing Date:
March 31, 2021
Export Citation:
Click for automatic bibliography generation   Help
Assignee:
BRITVIC SOFT DRINKS LTD (GB)
International Classes:
G01F13/00; A47J31/00; B67D1/08; B67D1/12; G01F17/00; G01F22/00; G01F23/00; G01F23/28; G01F23/296; G01S15/04; G01S15/88; G01S17/88
Foreign References:
US5491333A1996-02-13
US20080264092A12008-10-30
US5573041A1996-11-12
US4944335A1990-07-31
US5036892A1991-08-06
US7617850B12009-11-17
US7845375B22010-12-07
US20140319168A12014-10-30
Attorney, Agent or Firm:
WILLIAMS, Paul et al. (GB)
Download PDF:
Claims:
CLAIMS

1. A dispenser for dispensing a material into a receptacle, the dispenser comprising a dispenser outlet for dispensing material into the receptacle; a support for receiving a receptacle; at least one lateral sensor positioned to laterally sense a receptacle received on the support; an upper sensor positioned to sense a receptacle received on the support from above; and a controller operatively connected to the lateral and upper sensors and configured to sense the presence of a receptacle received on the support, calculate the volume of the receptacle and/or the volume of material within the receptacle from data received from the lateral and upper sensors, and control the volume of material dispensed from the dispenser outlet into the receptacle based upon the calculated volume of the receptacle and/or the volume of material within the receptacle.

2. A dispenser according to claim 1 configured for dispensing a beverage.

3. A dispenser according to claim 1 or 2 which comprises a single lateral sensor, and wherein the support means comprises positioning means for positioning a receptacle received on the support.

4. A dispenser according to claim 1, 2 or 3 which comprises two, three, four, five, six or more lateral sensors.

5. A dispenser according to any preceding claim wherein the lateral sensors are spaced apart in different positions along the X, Y and/or Z Cartesian axes relative to the support.

6. A dispenser according to any preceding claim wherein at least two lateral sensors are positioned opposite each other on either side of the support at different heights from the support.

7. A dispenser according to any preceding claim which has a single upper sensor.

8. A dispenser according to any one of claims 1 to 6 which comprises a plurality of upper sensors.

9. A dispenser according to claim 8 which comprises a first upper sensor positioned for detecting the rim height of a receptacle, and a second upper sensor positioned for detecting the fill level of material within the receptacle.

10. A dispenser according to any preceding claim wherein the lateral and/or upper sensors comprise sensors selected from one or more of ultrasonic sensors, infrared (IR) sensors, laser sensors, time-of-flight sensors, and optical recognition means.

11. A dispenser according to any preceding claim wherein the lateral and/or upper sensors comprise ultrasonic sensors and/or optical recognition means.

12. A dispenser according to claim 11 comprising one or more ultrasonic sensors wherein the ultrasonic sensor (s) is configured to detect the first echo and/or the first and second echoes.

13. A dispenser according to any preceding claim wherein the dispenser outlet and the upper sensor are adjacent.

14. A dispenser according to any one of claims 1 to 12 wherein the upper sensor is laterally offset from the dispenser outlet, and the dispenser further comprises a reflector for reflecting a signal from the upper sensor downwardly towards a receptable received on the support.

15. A dispenser according to claim 14 wherein the reflector is angled at 45 degrees to reflect the signal orthogonally.

16. A dispenser according to claim 14 or 15 wherein the reflector comprises a plate having a centrally positioned gap through which the dispenser outlet extends.

17. A dispenser according to any preceding claim wherein the controller is configured to control the amount of material being dispensed from the dispenser as a time based flow rate calculation or a volumetric flow rate calculation.

18. A dispenser according to any preceding claim which is configured to dispense material at a fixed flow rate.

19. A dispenser according to any preceding claim which comprises a flow rate monitor to monitor the flow rate of material being dispensed.

20. A dispenser according to any preceding claim wherein the controller is configured to control or adjust the properties of the material being dispensed.

21. A dispenser according to any preceding claim wherein the controller comprises a computer having a programmable memory, which is capable of receiving instructions from a user.

22. A dispenser according to any preceding claim which comprises a user input means, through which a user can input selections regarding the material they wish to be dispensed.

23. A dispenser according to claim 22 wherein the user input means comprises a touchscreen.

24. A dispenser according to claim 22 or 23 which is configured to allow the user to be able to select the type of material, the fill level, and/or the flavour of material to be dispensed from the dispenser.

25. A dispenser according to any preceding claim wherein the controller is configured to calculate the volume of a receptacle received by the support and control the dispenser to dispense a volume of material from the dispenser up to a pre-determined fill maximum.

26. A dispenser according to any preceding claim wherein the controller is configured calculate the volume of material already in a receptacle received by the support and control the dispenser to dispense an additive to the material in a pre-determined amount.

27. A dispenser according to any preceding claim configured such that a user can pre-programme the dispenser according to their own particular preferences for a given material to be dispensed.

28. A dispenser according to any preceding claim wherein the controller is configured to store multiple user profiles in a programmable memory.

29. A dispenser according to any preceding claim configured for wireless communication.

30. A dispenser according to claim 29 configured for wireless communication via one or more of Bluetooth, Wi-Fi, 4G and 5G.

31. A dispenser according to claim 29 or 30 configured to communicate with mobile devices.

32. A dispenser according to any preceding claim wherein the controller is configured to receive, store and process information received from a receptacle which incorporates communication means and/or an optical identifier.

33. A dispenser according to any preceding claim which comprises a pressure sensor in the support, to provide data regarding the weight of the receptacle, and/or comprises optical recognition means to provide data regarding the dimensions, volume and/or positioning of a receptacle on the support.

34. A dispenser according to any preceding claim wherein the controller is configured to use machine learning.

35. A dispenser according to any preceding claim wherein the controller has a programmable memory which is able to store and compare data regarding the volume of different types of receptacles, and is configured to use this comparison to provide more volume calculations through the use of volume estimation algorithms.

36. A dispenser according to any preceding claim wherein the controller comprises a memory which is pre-stored with volume data for different receptacles which have been measured in a prior learning phase, which data are updated and refined as new receptacles are measured.

37. A dispenser according to any preceding claim which is connectable to the internet.

38. A dispenser according to claim 37 wherein the controller has a programmable memory which can be updated with receptacle volume data, either from time to time at periodic intervals, or continuously in real time from other dispensers.

39. A method of dispensing a material from a dispenser into a receptacle, the method comprising the steps of: receiving the receptacle on a support; sensing the receptacle laterally using at least one lateral sensor positioned laterally of the support; sensing the receptacle from above using an upper sensor positioned above the support; sensing the presence of the receptacle, and calculating the volume of the receptacle and/or the volume of material within the receptacle from data received from the lateral and upper sensors; and dispensing material into the receptacle based upon the calculated volume of the receptacle and/or the volume of material within the receptacle.

40. A method according to claim 39 carried out using a dispenser according to any one of claims 1 to 38.

41. A method according to claim 39 or 40 wherein the material is a beverage.

42. A method according to any one of claims 39 to 41 wherein the lateral and/or upper sensors sense the receptacle on the support by transmitting signals towards the receptacle and receiving signals reflected by the receptacle, and/or using optical recognition means.

43. A method according to any one of claims 39 to 42 wherein the lateral and/or upper sensors sense the receptacle on the supper by transmitting and receiving ultrasonic sound waves.

44. A method according to any one of claims 39 to 43 wherein the user slides the receptacle into position on the support so that the upper sensor detects an initial echo as the receptacle rim passes through a signal beam transmitted and received by the upper sensor, and then detects a second echo of said signal beam from the surface of any material in the receptacle or the base of the receptacle if empty. 45. A method according to any one of claims 39 to 44 wherein the rim of a receptacle is detected by a first upper sensor, and the surface of any material in the receptacle, or the base of the receptacle if empty, is detected by a second upper sensor.

46. A method according to any one of claims 39 to 45 wherein artificial intelligence is used to make volume calculations.

47. A method according to any one of claims 39 to 46 wherein a controller stores and compares data regarding the volume of different types of receptacles, and uses this comparison to provide volume calculations through the use of volume estimation algorithms.

48. A method according to any one of claims 39 to 47 wherein a controller compares data regarding the volume of a newly measured receptacle for similarities with data for receptacles stored in its memory.

49. A method according to any one of claims 39 to 48 which comprises a prior learning phase in which volume data for different receptacles are measured and stored in a controller memory.

50. A method according to claim 48 or 49 wherein the volume data are updated and refined as new receptacles are measured.

51. A method according to any one of claims 39 to 50 wherein receptacle volume data stored by a controller are updated from receptacle volume data from other dispensers via the internet, from time to time at periodic intervals, or continuously in real time.

52. A method according to any one of claims 39 to 51 wherein the fill level of a receptacle is continuously monitored and the change in the radius and/or height of the upper surface of material in the receptacle measured as it fills with material, and compared with predicted data calculated from measurements from known receptacles, deviations from the predicted data being used to update the data contained in a controller memory.

53. A method according to any one of claims 39 to 52 wherein if no receptacle is sensed on the support then a controller prevents any material being dispensed by the dispenser.

54. A method according to any one of claims 39 to 53 wherein if the dispenser senses that the receptacle is off-set from the centre of the support by an amount which exceeds a threshold value then it prevents any material being dispensed.

55. A method according to any one of claims 39 to 54 wherein if the dispenser senses that the receptacle is not rotationally symmetrical then it prevents any material from being dispensed if it does not recognize the receptacle geometry, and/or requests that the user identifies the receptacle .

56. A dispenser for dispensing a material into a receptacle, the dispenser comprising: a dispenser outlet for dispensing material into a receptacle; a support for receiving a receptacle; an upper sensor comprising an ultrasonic sensor and optical recognition means positioned to sense a receptacle received on the support from above; and a controller operatively connected to the upper sensor and configured to sense the presence of a receptacle received on the support, calculate the volume of a receptacle and/or the volume of material within a receptacle from data received from the upper sensor, and control the volume of material dispensed from the dispenser outlet into the receptacle based upon the calculated volume of the receptacle and/or the volume of material within the receptacle.

57. A dispenser according to claim 56 further comprising at least one lateral sensor positioned to laterally sense a receptacle received on the support.

58. A dispenser according to claim 56 or 57 further comprising the feature(s) of any one of claims 2 to 38.

59. A method of dispensing a material from a dispenser into a receptacle, the method comprising the steps of: receiving the receptacle on a support; sensing the receptacle from above using an upper sensor comprising an ultrasonic sensor and optical recognition means positioned above the support; sensing the presence of the receptacle, and calculating the volume of the receptacle and/or the volume of material within the receptacle from data received from the upper sensor; and dispensing material into the receptacle based upon the calculated volume of the receptacle and/or the volume of material within the receptacle.

60. A method according to claim 59 performed using a dispenser according to any one of claims 56 to 58.

61. A method according to claim 59 or 60 further comprising the step of sensing the receptacle laterally using at least one lateral sensor positioned laterally of the support.

62. A method according to any one of claims 59 to 61 further comprising the features of any one of claims 41 to 55.

Description:
DISPENSER AND METHOD OF DISPENSING A MATERIAL

[001] The present invention relates to a dispenser for dispensing a material into a receptable, preferably a beverage, and a method of dispensing a material from a dispenser into a receptacle.

[002] Various types of beverage dispensers are known in the art, for dispensing a variety of different beverages, such as hot and cold beverages, carbonated and non-carbonated beverages, and alcoholic and non-alcoholic beverages.

[003] Beverage dispensers generally comprise a dispenser unit, a support on which a beverage receptacle, such as a glass or cup, can be positioned for receiving a beverage from the dispenser, and a controller for controlling the flow of beverage from the dispenser. Some beverage dispensers may have a display panel, such as a touchscreen, via which a user may select the type or flavour of beverage to be dispensed.

[004] In some beverage dispensers, the flow of beverage from the dispenser is manually controlled by the user, for example by pressing a button to start and stop the flow of beverage. Manually controlled dispensers allow users to use a receptacle of their choice, of any suitable size or shape, but rely on the user to stop the flow of beverage before the receptacle overflows. Receptable overflow is wasteful and environmentally unfriendly. Manually controlling the flow of beverage into the receptable is also time consuming, with the user having to repeatedly press the flow button to fill the receptable without it overflowing, which is of particular relevance in quick serve restaurants (QSRs).

[005] Some beverage dispensers are automatic or semi automatic and dispense a predetermined volume of beverage. For example, a beverage dispenser may be adapted for use with receptacles having a predetermined volume. Thus, for example, the user may select a "small", "medium" or "large" receptacle, and then select the corresponding volume of beverage to be dispensed. The beverage dispenser may have a pressure sensor in the receptacle support, which weighs the receptacle placed on the support, associates the weight of the receptacle with a known volume ("small", "medium" or "large"), and either automatically dispenses the corresponding volume of beverage without the user needing to make this selection, or prevents a volume of beverage being dispensed which exceeds the volume of the receptacle.

[006] Beverage dispensers for use with receptacles having a known, predetermined volume have the advantage of the prevention of overflow, and may be suitable for use in a public setting, such as a bar or restaurant, where receptacles of a known predetermined volume can be provided. However, in a private setting such as a home or office, receptacles of a known, predetermined volume are typically not provided, and users often have a preferred receptacle which they like to use, i.e. a favourite cup or glass. Attempts have been thus made in the art to provide automatic or semi-automatic beverage dispensers which may be used with receptacles of different shapes and sizes.

[007] Thus, for example, US patent numbers 4944335 and 5036892 describe beverage dispensers in which an ultrasonic sensor is located above a receptacle behind a dispense nozzle, and is used to detect the presence of a receptacle, the rim height of the receptacle, and the fill level of beverage in the receptacle. When the receiver detects that the fill level has reached a predetermined maximum relative to the rim height, then the dispenser stops dispensing the beverage. The beverage dispenser thus attempts to detect the fill level in the receptacle in real time through constant monitoring as the receptacle fills with beverage.

[008] More recently, smart technologies have been incorporated into beverage dispensers. Thus, for example, US patent numbers 7617850 and 7845375 describe beverage dispensing systems in which a receptacle comprises an RFID tag which can store information regarding the receptable, including its volume, for dispensing an appropriate amount of beverage to prevent overflow. The RFID tag may also store information regarding the type of material from which the receptacle is made, which can for example prevent the beverage dispensing system from dispensing a hot beverage if the receptable is not suitable for holding a hot beverage. The RFID tag can also store information regarding the use history of the receptacle, including the different beverages and amounts which have been purchased/dispensed using that receptacle .

[009] US 2014/03119168 describes a beverage dispenser which comprises a sensor system which employs digital imaging technology to determine, for example, the dimensions, volume and positioning of a receptacle on a receptacle support.

[0010] The present invention seeks to provide an improved dispenser for dispensing a material into a receptacle, preferably a beverage, and a method of dispensing a material from a dispenser into a receptacle.

[0011] Thus, according to the present invention in a first aspect there is provided a dispenser for dispensing a material into a receptacle, the dispenser comprising a dispenser outlet for dispensing material into a receptacle; a support for receiving a receptacle; at least one lateral sensor positioned to laterally sense a receptacle received on the support; an upper sensor positioned to sense a receptacle received on the support from above; and a controller operatively connected to the lateral and upper sensors and configured to sense the presence of a receptacle received on the support, calculate the volume of a receptacle and/or the volume of material within a receptacle from data received from the lateral and upper sensors, and control the volume of material dispensed from the dispenser outlet into the receptacle based upon the calculated volume of the receptacle and/or the volume of material within the receptacle.

[0012] It is to be noted that whilst the dispenser of the present invention is preferably for use in dispensing liquids, in particular beverages, it is not limited in this connection, and may be used for dispensing solids, such as powders.

[0013] Advantageously, the dispenser of the present invention can firstly sense the presence of a receptacle received by the support. If no receptacle is sensed, then the controller may be configured to prevent any material being dispensed by the dispenser. The dispenser of the present invention can also calculate the volume of a receptacle placed on the support by the sensors measuring external dimensions of the receptacle. The controller can then control the amount of material dispensed from the dispenser outlet based upon this volume calculation, for example to a desired maximum fill level. The dispenser of the present invention thus has an environmental advantage in that it can reduce waste, by reducing or eliminating overflow of material from the receptable. The dispenser of the present invention has the further advantage of time-saving, which is of particular relevance in quick serve restaurants (QSRs), since a user can fill a receptacle with a single action, e.g. a button press. [0014] In addition, the upper sensor can detect whether or not the receptacle already contains any material, for example water or ice. This has the advantage that not only can the controller control the amount of material dispensed from the dispenser outlet based upon the calculated volume of the receptacle and volume of material already in the receptacle, but can also be used to provide bespoke beverages for a particular user, for example through the user pre-programming the controller with their preferences through a user input (e.g. touchscreen).

[0015] Thus, for example, the dispenser can be used to add an additive, such as a flavour concentrate, to a receptable pre-filled with material, for example water, by a user. By calculating the volume of material already in the receptacle, the dispenser can dispense a particular amount of additive to the receptacle according to the particular requirements of the user. For example, in the case of a beverage, the controller can control the dispenser to dispense an additive, such as a flavour concentrate, in an amount calculated according the calculated volume of water in the receptacle, for example to provide a particular dilution factor, according to the pre-programmed preference of that user. In this way, the dispenser can provide a "perfect" beverage for that user, without the user needing to measure out a precise volume of water into the receptacle.

[0016] The dispenser of the present invention comprises a dispenser outlet for dispensing material into a receptacle, and a support for receiving a receptacle. The dispenser outlet is preferably positioned above the support so that material being dispensed is dispensed directly into the receptacle. The dispenser outlet is in communication with a source of material to be dispensed, for example hot and cold beverages, carbonated and non-carbonated beverages, alcoholic and non-alcoholic beverages, flavour concentrates, syrups, and so forth. The support is preferably positioned directly beneath the dispenser outlet, and may have positioning means for enabling a receptacle to be correctly positioned on the support, such as a centrally positioned stepped or conical well for receiving a receptable, for ensuring that the receptacle is centrally positioned beneath the dispenser outlet and/or relative to the lateral and upper sensors.

[0017] The dispenser of the present invention further comprises at least one lateral sensor positioned laterally of the support for laterally sensing a receptacle received on the support. The lateral sensor may sense the receptacle by transmitting and receiving a signal laterally across the space above the support. The sensor may thus measure the time taken for the signal to be reflected, or another signal property such as intensity of the reflected signal, which can be converted to distance. Additionally or alternatively, the lateral sensor may employ optical recognition means, such as digital imaging technology, to capture an image of the receptacle. Optical recognition means may include a camera and/or 3D imaging technology. In this way, the presence of a receptacle received on the support can be detected, the external dimensions of the receptacle can be calculated, and hence also the volume of the receptacle. The dispenser may comprise one or more lateral sensors, for example two, three, four, five, six or more lateral sensors. If a single lateral sensor is used then the support means preferably comprises positioning means to ensure that the positioning of a receptacle received on the support is accurately known. However, preferably a plurality of lateral sensors is used, with the sensors preferably positioned around the support to, for example, reflect signals or capture images from different parts of the surface of a receptacle. Thus, the lateral sensors may be spaced apart in different positions along the X, Y and/or Z Cartesian axes relative to the support (i.e. different positions side-to-side, front-to-back, and/or at different heights from the support). Preferably, the dispenser comprises lateral sensors on opposite sides of the support, which allows compensation to be made for a receptacle which is not centred on the support, i.e. an average of the calculated distances to the receptacle from opposite sides of the receptacle can be used to calculate the external dimensions of the receptacle. In addition, if the distance measurements from opposite sides of the support differ to a large extent, for example greater than a predetermined threshold difference, then the controller may be configured to prevent any material being dispensed by the dispenser, since the large difference in distance measurements may indicate that the receptable is positioned too far off-centre to properly receive the material from the dispenser outlet. Likewise, off-setting the lateral sensors front-to-back can provide for greater accuracy of measurement, in particular if a receptacle is not placed centrally on the support. The dispenser may thus comprise a first lower lateral sensor, a second lateral sensor on an opposite side of the dispenser to and above the first lateral sensor, and a third lateral sensor above the second lateral sensor and on same side of the dispenser as the first lateral sensor.

[0018] The dispenser of the present invention further comprises an upper sensor positioned above the support to sense a receptacle received on the support from above. The dispenser may comprise one upper sensor or a plurality of upper sensors (for example two, three, four or more sensors). For example, the dispenser may comprise a first upper sensor positioned for detecting the rim height of a receptacle, and a second upper sensor positioned for detecting the fill level of material within the receptacle. Alternatively, a single upper sensor may be used which is configured to detect two signal reflections instead of one, and thus detect the two closest objects to the sensor (which will typically be the receptacle rim and the fill level of material within the receptacle). The sensor may for example measure the time taken for a signal to be reflected, or another signal property, such as the intensity of the reflected signal, which can be converted to distance. In this way the height of the receptacle and/or fill level of material within the receptacle can be measured. Additionally or alternatively, the upper sensor may employ optical recognition means, such as digital imaging technology, to capture an image of the receptacle, through which the height, fill level and/or other dimensions or properties of the receptacle can be calculated. Optical recognition means may include a camera and/or 3D imaging technology. The optical recognition means may be used together with a light source to illuminate a receptacle positioned on the support. Optical recognition means may be used to capture images of a receptacle before and/or after being filled with material. For example, if the dispenser is used in a commercial setting such as a restaurant (for example a QSR)or a workplace, and customers/users of the dispenser bring their own preferred receptacles for use with the dispenser, then capturing images of the receptacle before and/or after being filled with material may be useful for quality control/management purposes. Thus, for example, if a customer/user were to raise an issue regarding the quality of a beverage dispensed by the dispenser, an image of the receptacle contents before and after the beverage was dispensed may be of assistance in helping to resolve the issue. The upper sensor may comprise a light source configured to emit ultra-violet (UV) light, for example a UVC light source. The UV light source may be used to sterilise a receptacle received on the support and/or parts of the dispenser (for example, the support and/or dispenser outlet).

[0019] Any suitable sensors may be used as lateral and upper sensors in the dispenser of the present invention, according to the requirements of the dispenser. For example, the sensors may be selected from ultrasonic sensors, infrared (IR) sensors, laser (e.g. LiDAR) sensors, time-of-flight sensors, and optical recognition means such as cameras and/or 3D imaging technology. Different sensors have different specifications, including range (cm), accuracy (yzm), sensing envelope (+ degrees), dimensions (size), and so forth, and the particular sensors to be used will depend upon the particular dispenser in question. For example, a sensor tuned for relatively longer ranges may be more appropriate in a relatively large dispenser for use in, say, a commercial setting such as a restaurant, compared to a relatively small dispenser for use in the home or office, in which a sensor tuned for a relatively shorter range may be appropriate. The one or more lateral sensors and/or upper sensor(s) are preferably ultrasonic sensors. The ultrasonic sensors may be configured to detect the first echo (i.e. the first object encountered), the first and second echoes (i.e. the first and second objects encountered), and so forth, according to requirements. Alternatively, one of the lateral and upper sensors may comprise an ultrasonic sensor and the other may employ optical recognition means to capture an image of the receptacle .

[0020] In the dispenser of the present invention, the dispenser outlet is positioned above the support so that material being dispensed is preferably dispensed directly into the receptacle. According to the design of the dispenser, it may thus be preferable for the upper sensor to be positioned away from the dispenser outlet, for example to allow for a signal transmitted by the upper sensor to be reflected towards a receptable received on the support, for example by an appropriately positioned reflector.

[0021] For example, a reflector may be positioned adjacent or around the dispenser outlet for reflecting a signal from the upper sensor downwardly towards a receptable received on the support. Thus, a reflector angled at 45 degrees will reflect a signal orthogonally, meaning that the upper sensor may be positioned to transmit a signal laterally (e.g. substantially horizontally), which is then reflected orthogonally by the reflector, downwardly towards a receptacle received by the support (and vice versa for the reflected signal). The reflector may comprise a plate, which may conveniently have a centrally positioned gap, through which the dispenser outlet may extend. The reflector is preferably planar, and may have dimensions so as to focus a signal in a particular direction or area.

[0022] It may be desirable to direct or focus a sensor signal in a particular direction, and for this purpose a signal guide, such as a shroud for ultrasonic sound waves, may be used. For example, it may be desirable that the upper sensor is used only to detect the volume of material in a receptable, rather than the height of the receptacle, in which case it is preferable to direct a signal from the upper sensor into the receptacle without detecting the rim of the receptacle walls (which is likely to be the closest surface detected by the upper sensor).

[0023] The dispenser of the present invention further comprises a controller operatively connected to the lateral and upper sensors and configured to sense the presence of a receptacle, calculate the volume of the receptacle and/or the volume of material within the receptacle from data received from the lateral and upper sensors, and control the volume of material dispensed from the dispenser outlet into the receptacle based upon the calculated volume of the receptacle and/or the volume of material within the receptacle. The controller may control the amount of material being dispensed from the dispenser as a time based flow rate calculation or a volumetric flow rate calculation. Thus, the dispenser may be configured to dispense material at a fixed flow rate, and/or may comprise a flow rate monitor which monitors the flow rate of material being dispensed, with the controller configured to make appropriate adjustments to the flow rate based upon the flow rate measurements. The controller may also be configured to control or adjust the properties of the material being dispensed, such as temperature, pressure, viscosity, concentration, and so forth.

[0024] The controller preferably comprises a computer having a programmable memory, which is capable of receiving instructions from a user. Thus, the dispenser preferably comprises a user input means, for example a touchscreen, through which a user can make various selections regarding the material they wish to be dispensed. For example, in the case of a beverage, the user may be able to select the type of beverage, the fill level, the flavour, and so forth. The controller is preferably configured to process the user instructions to control the type and amount of material to be dispensed from the dispenser, according to the user selection (s), and available volume of the receptacle, as calculated from the data received from the lateral and upper sensors. For example, if the user selects a particular beverage to be dispensed and places an empty receptacle on the support, then the controller can control the dispenser to dispense an appropriate volume of that beverage up to a fill maximum. Alternatively, if the user wants a flavoured water beverage, then the user can fill a receptacle with a desired volume of water, place the receptacle on the support, and select the particular additive to be added through user input means. The volume of water in the receptacle is calculated according to the data received from the lateral and upper sensors, and the controller instructs the dispenser to dispense an appropriate amount of the requested additive. In embodiments, the user may have pre-programmed the dispenser according to their own particular preferences for a given additive, such that the controller can instruct the dispenser to dispense the correct amount of additive, based upon the calculated volume of water in the receptacle, so as to provide a "perfect" beverage for that user, without the user needing to measure out a precise volume of water into the receptacle. The controller may be configured to store multiple user profiles in a programmable memory. Thus, in a domestic setting, each member of the household may have their own user profile stored in the memory of the controller, which contains their own preferences for different beverages, for example, flavour/additive combinations, concentrations, and so forth.

[0025] The user input means may comprise a display, such as a touchscreen display, which can be used not only to enable the user to input selections, but also for displaying information to the user, such as nutritional information regarding particular beverages, the history of use of the dispenser by that particular user, and/or when the dispenser needs refilling with a particular material.

[0026] The dispenser may be configured for wireless communication, for example Bluetooth, Wi-Fi, 4G or 5G, etc. The dispenser may thus be able to communicate with mobile devices, such as smartphones, through which a user may be able to input selections, for example through an appropriate app. [0027] The controller may be configured to receive, store and process other information. For example, the controller may be configured to use smart technologies, for example to receive information from a receptacle which incorporates communication means, such as an RFID tag. The communication means may incorporate information, for example via an identification code, regarding the receptacle and/or the user, such as user preferences for beverages, so that, for example, the controller can instruct the dispenser to dispense a particular additive or beverage to the receptacle without the need for any further input by the user. Additionally or alternatively, the receptacle may comprise an optical identifier, for example a barcode or QR code, and the dispenser may comprise an optical identifier reader, the optical identifier providing information regarding the receptacle and/or user. The dispenser of the present invention may for example further comprise a pressure sensor in the support, to provide data regarding the weight of the receptacle, and as discussed above may comprise optical recognition means, such as digital imaging technology to provide data regarding the dimensions, volume and/or positioning of a receptacle on the support.

[0028] The controller used in the dispenser of the present invention may be configured to use artificial intelligence (AI), and in particular machine learning to improve the accuracy of volume calculations. The controller may thus have a programmable memory which is able to store and compare data regarding the volume of different types of receptacles, and use this comparison to provide more accurate volume calculations through the use of volume estimation algorithms. For example, the controller may be configured to compare data regarding the volume of a newly measured receptacle for similarities with data for receptacles stored in its memory. The comparison may be through known techniques such as analysing degrees of similarity and cluster analysis. The controller memory may be pre-stored with volume data for different receptacles which have been measured from a prior learning phase, which is updated and refined as new receptacles are measured. The dispenser of the present invention may be connectable to the internet, to enable the programmable memory to be updated with additional receptacle volume data, either from time to time at periodic intervals, or continuously in real time from other dispensers, i.e. the dispensers update each other. Machine learning can assist with the accuracy of volume calculations by taking into account factors which affect the volume of material which a receptacle can hold, such as wall and base thicknesses, the material from which a receptacle is made, geometry (e.g. simple versus more complicated shapes), and so forth, in particular when combined with other information, such as receptable weight (as measured for example by a pressure sensor), and shape (as measured for example by image capture). For example, during a learning phase the actual volume of a large number of different receptacles can be directly measured by filling each receptacle with material (e.g. water), and the volumes as calculated from the sensor data can be compared with the actual volume data, and adjustments made to take into account factors which affect volume, such as those listed above.

[0029] According to the present invention in a second aspect there is also provided a method of dispensing a material from a dispenser into a receptacle, the method comprising the steps of: receiving the receptacle on a support; sensing the receptacle laterally using at least one lateral sensor positioned laterally of the support; sensing the receptacle from above using an upper sensor positioned above the support; sensing the presence of the receptacle, and calculating the volume of the receptacle and/or the volume of material within the receptacle from data received from the lateral and upper sensors; and dispensing material into the receptacle based upon the calculated volume of the receptacle and/or the volume of material within the receptacle.

[0030] The method of the second aspect of the present invention may be carried out using the dispenser of the first aspect of the invention. Thus, the method of the second aspect of the invention may incorporate any or all of the features and embodiments of the first aspect of the invention, and vice versa.

[0031] Thus, in the method of the present invention, a controller operatively connected to the lateral and upper sensors may be configured to detect the presence of a receptable on the support, calculate the volume of the receptacle and/or the volume of material within the receptacle from data received from the lateral and upper ultrasonic sensors, and control the volume of material dispensed from the dispenser outlet into the receptacle based upon the calculated volume of the receptacle and/or the volume of material within the receptacle. The controller may be configured to prevent the dispenser from dispensing material if no receptacle is sensed on the support. The controller may control the amount of material being dispensed from the dispenser as a time based flow rate calculation or a volumetric flow rate calculation. Thus, the material may be dispensed from the dispenser at a fixed flow rate, and/or the flow rate may be monitored by a flow rate monitor, with the controller making appropriate adjustments to the flow rate based upon the flow rate measurements. Other properties of the material being dispensed may also be controlled by the controller, such as temperature, pressure, viscosity, concentration, and so forth.

[0032] In the method of the present invention, the lateral and/or upper sensors may sense the receptacle on the support by transmitting signals towards the receptacle and receiving the reflected signals. Signals transmitted and received by the sensors are preferably ultrasonic sound waves, i.e. the one or more lateral and/or upper sensors preferably comprise ultrasonic sensors. However, as discussed above in connection with the dispenser of the present invention, the lateral and upper sensors may comprise other types of sensors, such as infrared (IR) sensors, laser (e.g. LiDAR) sensors, time-of- flight sensors, and optical recognition means such as cameras and/or 3D imaging technology.

[0033] In embodiments of the method of the present invention, the volume of the receptable may be measured by the user sliding the receptacle into position on the support, or may be measured through the use of a plurality of upper sensors. In the former embodiments, a narrower signal beam from the upper sensor may be used, for example through the use of a wave guide, and the user slides the receptacle through the beam when placing the receptable in position on the support. In this way, the upper sensor detects an initial echo as the receptacle rim passes through the signal beam, and a second echo from the surface of any material in the receptacle (or the inside base of the receptacle if empty). In the latter embodiments, the rim of the receptacle is detected by a first upper sensor, and the surface of any material in the receptacle (or the inside base of the receptacle if empty) is detected by a second upper sensor.

[0034] The method of the present invention may comprise the step of a user inputting instructions to the dispenser through user input means, for example a touchscreen. Thus, the user may make various selections regarding the material they wish to be dispensed. For example, in the case of a beverage, the user may select the type of beverage, the fill level, the flavour, and so forth. The user instructions are preferably processed by a controller to control the type and amount of material to be dispensed from the dispenser, according to the user selection (s), and available volume of the receptacle, as calculated from the data received from the lateral and upper sensors. For example, if the user selects a particular beverage to be dispensed and places an empty receptacle on the support, then a controller preferably controls the dispenser to dispense an appropriate volume of that beverage up to a fill maximum. Alternatively, if the user wants a flavoured water beverage, then the user fills a receptacle with a desired volume of water, places the receptacle on the support, and selects the particular additive to be added through the user input means. The volume of water in the receptacle is calculated according to the data received from the lateral and upper sensors, and a controller instructs the dispenser to dispense an appropriate amount of the requested additive. In embodiments, the user may have pre-programmed the dispenser according to their own particular preferences for a given additive, such that the controller instructs the dispenser to dispense the correct amount of additive, based upon the calculated volume of water in the receptacle, so as to provide a "perfect" beverage for that user, without the user needing to measure out a precise volume of water into the receptacle. Multiple user profiles may be stored in a programmable memory. Thus, in a domestic setting, each member of the household may have their own user profile stored, which includes their own preferences for different beverages, for example, flavour/additive combinations, concentrations, and so forth. [0035] In the method of the present invention, information may be transmitted and received by a user wirelessly, for example by Bluetooth, Wi-Fi, 4G or 5G, etc. The user may communicate with the dispenser via a mobile device, such as a smartphone, via an appropriate app.

[0036] The method of the present invention may further comprise a controller receiving, storing and processing other information. For example, the controller may use smart technologies, for example receiving information from a receptacle which incorporates communication means, such as an RFID tag. The communication means may incorporate information, for example via an identification code, regarding the receptacle and/or the user, such as user preferences for beverages, so that, for example, the controller can instruct the dispenser to dispense a particular additive or beverage to the receptacle without the need for any further input by the user. Additionally or alternatively, the method may comprise reading an optical identifier, for example a barcode or QR code, on the receptacle by an optical identifier reader, the optical identifier providing information regarding the receptacle and/or user. The method may comprise weighing the receptacle, for example through a pressure sensor in the support, to provide data regarding the weight of the receptacle, or may further comprise optically recognising the receptacle using optical recognition means, such as digital imaging technology to provide further data regarding the dimensions, volume and/or positioning of a receptacle on the support, to be used in conjunction with the data from the sensors.

[0037] The method of the present invention may use artificial intelligence (AI), and in particular machine learning to improve the accuracy of volume calculations. The method may thus comprise the use of a controller having a programmable memory to store and compare data regarding the volume of different types of receptacles, and use this comparison to provide more accurate volume calculations through the use of volume estimation algorithms. For example, the method may comprise the controller comparing data regarding the volume of a newly measured receptacle for similarities with data for receptacles stored in its memory. The comparison may be through known techniques such as analysing degrees of similarity and cluster analysis. The method may comprise a prior learning phase in which volume data for different receptacles are measured and stored in the controller memory. The data may be updated and refined as new receptacles are measured, including data from other dispensers via the internet, either from time to time at periodic intervals, or continuously in real time.

[0038] Machine learning can assist with the accuracy of volume calculations by taking into account factors which affect the volume of material which a receptacle can hold, such as wall and base thicknesses, the material from which a receptacle is made, geometry (e.g. simple versus more complicated shapes), and so forth, in particular when combined with other information, such as receptable weight (as measured for example by a pressure sensor), and shape (as measured for example by image capture). For example, during a learning phase the actual volume of a large number of different receptacles can be directly measured by filling each receptacle with material (e.g. water), and the volumes as calculated from the sensor data can be compared with the actual volume data, and adjustments made to take into account factors which affect volume, such as those listed above.

[0039] For example, the method of the present invention may involve the step of continuously monitoring the fill level of a receptacle as it fills with material. If the geometry of a receptacle is known or can accurately be estimated by comparison with data for known receptacles stored in a controller memory, then dispensing a known volume of material into the receptacle should result in a predictable change in the radius and/or height of the upper surface of material in the receptacle. The radius and/or height data, continuously measured as the receptacle fills, can be compared with predicted data calculated from measurements from known receptacles, and any deviations from the predicted data can be used through machine learning to update the data contained in the controller memory to provide more accurate volume data in the future.

[0040] The dispenser and method of the present invention work most accurately with receptacles which are rotationally symmetrical, for example having a circular cross-section. For the use of a receptacle having a different shape, for example having a square cross-section, or more complex shape, for example due to a handle, the controller may for example be configured to either prevent the dispenser from dispensing material into the receptacle in the event that it does not recognise the receptacle geometry, and/or request that the user identifies the receptacle, for example through user input means. The use of artificial intelligence, such as machine learning as described above, allows a controller having a programmable memory to compare newly measured receptacle geometries with known geometries stored in the memory, to recognise and provide more accurate volume measurements for a wider variety of receptacle geometries.

[0041] According to the present invention in a third aspect there is provided a dispenser for dispensing a material into a receptacle, the dispenser comprising: a dispenser outlet for dispensing material into a receptacle; a support for receiving a receptacle; an upper sensor comprising an ultrasonic sensor and optical recognition means positioned to sense a receptacle received on the support from above; and a controller operatively connected to the upper sensor and configured to sense the presence of a receptacle received on the support, calculate the volume of a receptacle and/or the volume of material within a receptacle from data received from the upper sensor, and control the volume of material dispensed from the dispenser outlet into the receptacle based upon the calculated volume of the receptacle and/or the volume of material within the receptacle.

[0042] According to the present invention in a fourth aspect there is also provided a method of dispensing a material from a dispenser into a receptacle, the method comprising the steps of: receiving the receptacle on a support; sensing the receptacle from above using an upper sensor comprising an ultrasonic sensor and optical recognition means positioned above the support; sensing the presence of the receptacle, and calculating the volume of the receptacle and/or the volume of material within the receptacle from data received from the upper sensor; and dispensing material into the receptacle based upon the calculated volume of the receptacle and/or the volume of material within the receptacle.

[0043] The method of the fourth aspect of the invention is preferably performed using a dispenser according to the third aspect of the invention.

[0044] The features of the dispenser of the third aspect of the invention, including the dispenser outlet, the support, the upper sensor (comprising ultrasonic sensor and optical recognition means) and controller, and method of the fourth aspect of the invention may be as described herein in connection with the dispenser of the first aspect of the invention and method of the second aspect of the invention. Thus, the dispenser and method of the third and fourth aspects of the invention respectively may incorporate any or all of the features and embodiments of the first and second aspects of the invention respectively.

[0045] Embodiments of the present invention will now be described in detail with reference to the accompanying drawings, in which:

[0046] Figure 1 shows a front view of an embodiment of a dispenser according to the first aspect of the present invention;

[0047] Figures 2a and 2b show a side view and view from below respectively of an upper ultrasonic sensor, reflector and dispenser outlet for use in an embodiment of a dispenser according to the first aspect of the present invention;

[0048] Figure 3 shows the measured dimensions of glasses of different shapes containing 200ml of water using a dispenser as illustrated in Figure 1; and

[0049] Figure 4 is a plot of "slide-in" data from an upper ultrasonic sensor for use in a dispenser as illustrated in Figure 1, detecting the edge and base of a glass slid into position.

[0050] An embodiment of a dispenser 10 of the first aspect of the present invention is shown in Figure 1. The dispenser 10 comprises a housing 11 which is open at the front, and into which a receptable (not shown in Figure 1) may be placed, to be received on a support 14. A dispenser outlet 12 for dispensing material into a receptacle is positioned directly above the support 14, for dispensing a material, such as a beverage, into the receptacle. The dispenser outlet 12 is in communication with a source of material (not shown in Figure 1) to be dispensed, for example hot and cold beverages, carbonated and non-carbonated beverages, alcoholic and non alcoholic beverages, flavour concentrates, syrups, and so forth. The support 14 may have positioning means (not shown) for enabling a receptacle to be correctly positioned on the support 14. The dispenser 10 also comprises a user input means in the form of touchscreen 21, through which a user can make various selections regarding the material they wish to be dispensed.

[0051] The dispenser 10 further comprises first 16, second 18, and third 20 lateral ultrasonic sensors for transmitting ultrasonic sound waves laterally against the side walls of a receptacle received on the support 14 and receiving the reflected waves, an upper ultrasonic sensor 22 positioned above the support 14 for transmitting ultrasonic sound waves downwardly towards a receptacle and receiving the reflected waves, and a controller (not shown in Figure 1) operatively connected to the lateral 16, 18, 20 and upper 22 ultrasonic sensors and configured to sense the presence of a receptacle on the support, calculate the volume of a receptacle and/or the volume of material within a receptacle from data received from the lateral 16, 18, 20 and upper 22 ultrasonic sensors, and control the volume of material dispensed from the dispenser outlet 12 into a receptacle based upon the calculated volume of the receptacle and/or the volume of material within the receptacle.

[0052] The lateral ultrasonic sensors 16, 18 and 20 are located in the side walls of the housing 11, with the first 16 and third 20 ultrasonic sensors located on the same side of the housing 11, and the second ultrasonic sensor 18 positioned at a height from the support 14 between the first 16 and third 20 ultrasonic sensors, and located on the opposite side of the housing 11. Whilst this embodiment of the dispenser of the invention comprises three lateral ultrasonic sensors, more or fewer lateral sensors may be used. If only a single lateral sensor is used, then the support preferably comprises positioning means for positioning a receptacle on the support 14 with known accuracy. In the illustrated embodiment, the lateral ultrasonic sensors 16, 18 and 20 are positioned at heights from the support 14 according to the requirements of the dispenser 10 and its intended use. Thus, for example, in for use in the home, typical receptacles which might be used with the dispenser 10 are a mug/tumbler, a highball type glass, either straight-sided or curved, and a wine glass. These different glasses may have a radius of from, for example, 5 to 8cm, and a height of from, for example, 6 to 20cm, depending upon the receptacle. The lateral ultrasonic sensors 16, 18, 20 will thus be positioned at appropriate heights from the support 14 to measure the radii of the different receptacles. For example, the first lateral ultrasonic sensor 16 may be positioned, for example, at a height of from 2 to 5cm above the sensor, the second lateral ultrasonic sensor 18 may be positioned, for example, at a height of from 6 to 8cm above the support 14, and the third ultrasonic sensor 20 may be positioned, for example, at a height of from 9 to 12cm above the support 14. The lateral ultrasonic sensors are also preferably offset front-to-back (although this cannot be seen in the front view of Figure 1). The upper ultrasonic sensor 22 is positioned above a receptacle positioned on the support 14, for example at a height of 20-25cm above the support 14 to accommodate the different types of receptacles to be used with the dispenser 10, and the housing 11 is thus sized accordingly .

[0053] Any suitable ultrasonic sensor may be used as the lateral ultrasonic sensors 16, 18, 20 and upper ultrasonic sensor 22 in the dispenser 10, according to the requirements of the dispenser. Different ultrasonic sensors have different specifications, including range (cm), accuracy (yzm), sensing envelope (+ degrees), and dimensions (size), and the particular sensor to be used will depend upon the particular dispenser in question. For example, a suitable ultrasonic sensor may have a range of from 2-3000cm, an accuracy of +_ 0.3cm), a sensing envelope of +_ 15°, and dimensions of approximately 15-25 x 40-50mm (width x height).

[0054] The dispenser 10 may comprise one upper ultrasonic sensor 22 or a plurality of upper ultrasonic sensors 22 (for example two, three, four or more sensors). The embodiment illustrated in Figure 1 has a single upper ultrasonic sensor 22. For example, the dispenser 10 may comprise a first upper ultrasonic sensor positioned for detecting the rim height of a receptacle, and a second upper ultrasonic sensor positioned for detecting the fill level of material within the receptacle. Alternatively, a single upper ultrasonic sensor may be used which is configured to detect two echoes instead of one, and thus detect the two closest objects to the sensor (which will typically be the receptacle rim and the fill level of material within the receptacle).

[0055] In the dispenser 10 of the present invention, the dispenser outlet 12 is positioned above the support 14 so that material being dispensed is dispensed directly into the receptacle. In the embodiment illustrated in Figure 1, the dispenser outlet 12 and upper ultrasonic sensor 22 are adjacent, directly above the support 14. Alternatively, the upper ultrasonic sensor 22 may be positioned away from the dispenser outlet 12 and for the ultrasonic sound waves transmitted by the upper ultrasonic sensor 22 to be reflected towards a receptable received on the support.

[0056] For example, with reference to Figures 2a and 2b, a reflector assembly 24 may be positioned adjacent the dispenser outlet 12 for reflecting ultrasonic sound waves from the upper ultrasonic sensor 22 downwardly towards a receptable received on the support 14. The reflector assembly 24 comprises a reflector 26 angled at 45 degrees to reflect ultrasonic waves orthogonally, meaning that the upper ultrasonic sensor 22 is positioned to transmit ultrasonic sound waves laterally (e.g. substantially horizontally), which are then reflected orthogonally by the reflector 26, downwardly towards a receptacle received by the support 14, as indicated in Figure 2a by arrow A (and vice versa for the echoes). As shown in Figure 2b, the reflector plate 26 has a centrally positioned gap 28 through which the dispenser outlet 12 extends.

[0057] The dispenser 10 further comprises a controller (not shown in the Figures) operatively connected to the lateral 16, 18, 20 and upper 22 ultrasonic sensors and configured to calculate the volume of the receptacle and/or the volume of material within the receptacle from data received from the lateral 16, 18, 20 and upper 22 ultrasonic sensors, and control the volume of material dispensed from the dispenser outlet 12 into the receptacle based upon the calculated volume of the receptacle and/or the volume of material within the receptacle. The controller may control the amount of material being dispensed from the dispenser as a time based flow rate calculation or a volumetric flow rate calculation. Thus, the dispenser 10 may be configured to dispense material at a fixed flow rate, and/or may comprise a flow rate monitor (not shown in the Figures) which monitors the flow rate of material being dispensed, with the controller configured to make appropriate adjustments to the flow rate based upon the flow rate measurements. The controller may also be configured to control or adjust the properties of the material being dispensed, such as temperature, pressure, viscosity, concentration, and so forth.

[0058] The controller preferably comprises a computer having a programmable memory, which is capable of receiving instructions from a user, through touchscreen 21. For example, in the case of a beverage, the user may be able to select the type of beverage, the fill level, the flavour, and so forth. The controller is preferably configured to process the user instructions to control the type and amount of material to be dispensed from the dispenser 10, according to the user selection (s), and available volume of the receptacle, as calculated from the data received from the lateral 16, 18, 20 and upper 22 ultrasonic sensors. For example, if the user selects a particular beverage to be dispensed and places an empty receptacle on the support 14, then the controller can control the dispenser 10 to dispense an appropriate volume of that beverage up to a fill maximum. Alternatively, if the user wants a flavoured water beverage, then the user can fill a receptacle with a desired volume of water, place the receptacle on the support 14, and select the particular additive to be added through the touchscreen 21. The volume of water in the receptacle is calculated according to the data received from the lateral 16, 18, 20 and upper 22 ultrasonic sensors, and the controller instructs the dispenser 10 to dispense an appropriate amount of the requested additive. In embodiments, the user may have pre programmed the dispenser 10 according to their own particular preferences for a given additive, such that the controller can instruct the dispenser 10 to dispense the correct amount of additive, based upon the calculated volume of water in the receptacle, so as to provide a "perfect" beverage for that user, without the user needing to measure out a precise volume of water into the receptacle. The controller may be configured to store multiple user profiles in a programmable memory. Thus, in a domestic setting, each member of the household may have their own user profile stored in the memory of the controller, which contains their own preferences for different beverages, for example, flavour/additive combinations, concentrations, and so forth.

[0059] The touchscreen display 21, can be used not only to enable the user to input selections, but also for displaying information to the user, such as nutritional information regarding particular beverages, the history of use of the dispenser by that particular user, and/or when the dispenser needs refilling with a particular material.

[0060] As discussed above, the dispenser 10 is preferably configured for wireless communication, for example Bluetooth, Wi-Fi, 4G or 5G, and so forth, to enable the dispenser 10 to communicate with mobile devices, such as smartphones, through which a user may be able to input selections, for example through an appropriate app. In addition, the controller is preferably configured to use smart technologies, for example to receive information from a receptacle which incorporates communication means, such as an RFID tag, which incorporates information, for example via an identification code, regarding the receptacle and/or the user, such as user preferences for beverages. The receptacle may comprise an optical identifier, for example a barcode or QR code, and the dispenser 10 may comprise an optical identifier reader (not shown in the Figures), the optical identifier providing information regarding the receptacle and/or user. The dispenser 10 may comprise a pressure sensor (not shown in the Figures) in the support 14, to provide data regarding the weight of the receptacle.

[0061] The controller used in the dispenser 10 of the present invention is preferably configured to use artificial intelligence (AI), and in particular machine learning to improve the accuracy of volume calculations. The controller preferably has a programmable memory which is able to store and compare data regarding the volume of different types of receptacles, and use this comparison to provide more accurate volume calculations through the use of volume estimation algorithms. The controller may be configured to compare data regarding the volume of a newly measured receptacle for similarities with data for receptacles stored in its memory. The controller memory may be pre-stored with volume data for different receptacles which has been measured from a prior learning phase, which is updated and refined as new receptacles are measured. The dispenser 10 is preferably connectable to the internet, to enable the programmable memory to be updated with additional receptacle volume data, either from time to time at periodic intervals, or continuously in real time from other dispensers, i.e. the dispensers update each other. Machine learning can assist with the accuracy of volume calculations by taking into account factors which affect the volume of material which a receptacle can hold, such as wall and base thicknesses, the material from which a receptacle is made, geometry (e.g. simple versus more complicated shapes), and so forth, in particular when combined with other information, such as receptable weight (as measured for example by a pressure sensor), and shape (as measured for example by image capture). For example, during a learning phase the actual volume of a large number of different receptacles can be directly measured by filling each receptacle with material (e.g. water), and the volumes as calculated from the ultrasonic sensor data can be compared with the actual volume data, and adjustments made to take into account factors which affect volume, such as those listed above.

[0062] Whilst this preferred embodiment comprises ultrasonic lateral and upper sensors, as discussed above different types of sensors may be used in the dispenser and method of the present invention, such as infrared (IR) sensors, laser (e.g. LiDAR) sensors, time-of-flight sensors, and optical recognition means such as cameras and/or 3D imaging technology. For example, the dispenser and method may use a combination of ultrasonic sensors and optical recognition means.

[0063] Examples [0064] Dispenser rig

[0065] A dispenser 10 rig was assembled as illustrated in Figure 1. The dispenser 10 comprised three lateral ultrasonic sensors 16, 18 and 20, and an upper ultrasonic sensor 22 positioned directly above the support 14. The first lateral ultrasonic sensor 16 was positioned at a height of 3cm from the support 14, the second lateral ultrasonic sensor 18 was positioned at a height of 7.5cm from the support 14 on the opposite side of the dispenser housing 11 to the first lateral ultrasonic sensor 16, and the third lateral ultrasonic sensor 20 was positioned above the first lateral ultrasonic sensor 16 at a height of 10.5cm from the support 14. The upper ultrasonic sensor 22 was positioned directly above the support 14 at a height of 23cm. The sensors were HC-SR04 ultrasonic ranging modules, which are widely commercially available. The ultrasonic sensors 16, 18, 20, 22 were each connected to an appropriately programmed controller and the measurements outputted as a frequency of 40Hz. [0066] Glass types and identification

[0067] Four glass types were selected for identification: a straight sided standard glass, a curved glass of approximately the same height as the straight glass, a shorter mug/tumbler, and a wine glass having pronounced curvature and a stem. Each glass was filled with 200ml water and positioned in the centre of the support 14. The radii were calculated by subtracting the measured values from the distance to the centre of the support. The measurements were then plotted to visualise how each glass was represented in the controller software, and the results are shown in Figure 3. As shown in Figure 3, the measured radii strongly resemble the true glasses.

[0068] Volume measurement - filled glasses

[0069] The radii of the straight sided and curved glasses were measured, and all significant radii averaged so each glass is represented as a plain cylinder of calculated average radius and measured water height. A radius was considered significant if it was larger than 1.5cm. The volume of the glass is then calculated using the formula for the volume of a cylinder. The water level and radius values were then modified by representative wall and base thickness values. The volume calculation for the straight sided standard glass was 3% above the measured volume, and that for the curved glass was 7% above the measured volume. Accurate volume calculations including wall and base thickness assumptions can be achieved through a learning phase in which data is collected on a large set of representative glasses, with machine learning techniques employed based upon glass geometry.

[0070] Next, 250ml of water was placed in each glass to ensure that the base thickness values for the glasses were optimised around one cup of water. The percentage error for the calculated volume for the straight sided and curved glasses with representative wall and base thickness values (0.2cm and 2cm respectively) were both 6% above the measured volumes. With the actual glass thicknesses included, the error margin for the straight sided glass was 0% and that for the curved glass 2% above the measured volume. A mug/tumbler was also tested, and with a measured glass thickness the calculated volume was 7% above the measured volume.

[0071] Volume measurement - empty glasses

[0072] In these tests, a dispenser rig as described above was used incorporating a reflector plate for the upper ultrasonic sensor, as illustrated in Figures 2a and 2b. The reflector plate was angled at 45° to orthogonally reflect the ultrasonic waves.

[0073] The total available volume of a glass was calculated through two different methods: direct measurement of the edge of the glass, and a "slide-in" method in which an empty glass was slid into position.A plot of slide-in data for a straight sided glass is shown in Figure 4, in which the edge of the glass is clearly visible before the plot settles back to the level of the base of the glass.

[0074] The maximum volume of the glass was measured by filling the glass with water until full, then weighing the glass. The same volume average radius, base thickness and wall assumptions as discussed above for the filled glasses were applied for the empty glasses. For direct measurement, the error margin for the calculated volumes of the straight sided and curved glasses were respectively 7% and 1% below the measured volumes. For the slide-in measurement, the error margin for the calculated volumes of the straight sided and curved glasses were respectively 17% below and 7% above the measured volumes. Thus, the results for the direct measurement were slightly more accurate than those for the slide in measurement, which may be due to variations in user behaviour for the latter.

[0075] It will be understood that the embodiments illustrated herein show features and applications of the invention only for the purposes of illustration. In practice the invention may be applied to many different configurations, the detailed embodiments being straightforward for those skilled in the art to implement.