A device for dispensing a predetermined amount of liquid from a tap, the device comprising: a) a housing; b) a fluid channel comprising an inlet portion defining an inlet and an outlet portion defining an outlet, the inlet and outlet portions both extending in a same direction, said inlet comprising coupling means for coupling the inlet to the outlet of a tap, wherein said fluid channel comprises a flow meter having an electronic output and a valve switcheable between an open position and a closed position, wherein both the flow meter and the valve are accommodated in the housing; c) an input panel coupled to a processor for the input of a value corresponding to the amount of liquid to be dispensed, wherein said processor is accommodated in the housing and coupled to the output of said flow meter and the to the valve, enabling switching the valve position in function of the input value and the electronic output of the flow meter; d) a power supply means accommodated in the housing; wherein the ratio between the height H -measured in a direction wherein the inlet and outlet portions of the fluid channel extend between the inlet and outlet of the fluid channel-, over the maximum diameter of the device in a direction perpendicular to the height direction is comprised in a range of 0,5 to 1,5, characterized in that the fluid channel is arranged in the housing to define a non-straight pathway defined by several sections provided between the inlet section and the outlet section, whereby a first section of the fluid channel hereby accommodates the flow meter, whereas a second section of the fluid channel extending in another direction or other sense than the first section accommodates a valve, the flow meter and valve both being accommodated in the housing. a) a housing; b) a fluid channel comprising an inlet portion defining an inlet and an outlet portion defining an outlet, the inlet and outlet portions both extending in a same direction, said inlet comprising coupling means for coupling the inlet to the outlet of a tap, wherein said fluid channel comprises a flow meter having an electronic output and a valve switcheable between an open position and a closed position, wherein both the flow meter and the valve are accommodated in the housing; c) an input panel coupled to a processor for the input of a value corresponding to the amount of liquid to be dispensed, wherein said processor is accommodated in the housing and coupled to the output of said flow meter and the to the valve, enabling switching the valve position in function of the input value and the electronic output of the flow meter; d) a power supply means accommodated in the housing; wherein the ratio between the height H -measured in a direction wherein the inlet and outlet portions of the fluid channel extend between the inlet and outlet of the fluid channel-, over the maximum diameter of the device in a direction perpendicular to the height direction is comprised in a range of 0,5 to 1,5, characterized in that the fluid channel is arranged in the housing to define a non-straight pathway defined by several sections provided between the inlet section and the outlet section, whereby a first section of the fluid channel hereby accommodates the flow meter, whereas a second section of the fluid channel extending in another direction or other sense than the first section accommodates a valve, the flow meter and valve both being accommodated in the housing.