MuTech Robotics
Join
Kids OK with adultESP32-C3Level 2/3

Is Your Milkman Giving a Full Litre? Milk Flow Meter

Pour the milk through this meter and it counts every millilitre, then tells you if the litre was full or short.

Sign in to save
Is Your Milkman Giving a Full Litre? Milk Flow Meter
Kids OK, with an adult

DIY project. Children must build this only with an adult (16+ years) beside them at all times. Not suitable for children under 8 years.

Use a food-grade sensor and a steel funnel only, and rinse with clean water after every use. Low voltage, 5 V. Build it with an adult.

Strictly follow the description given with this video.

Video

The video link will be added here soon.

How it works

  1. Milk flows through a food-grade turbine flow sensor; the turbine sends a pulse every few mL, about 450 per litre.
  2. Two resistors bring the 5 V pulses down to 3.3 V for the ESP32.
  3. The ESP32 counts pulses and shows the millilitres live on an OLED.
  4. When the pour stops, it says “full” or how many mL short. Calibrate once with exactly 1 litre of water.

Parts you need

  • Small ESP32-C3 board× 1
  • Food-grade turbine flow sensor× 1
  • 10k resistor10k resistor₹0.57× 1Buy
  • 20k resistor (or two 10k in series)20k resistor (or two 10k in series)₹0.57× 2Buy
  • 0.96" OLED display (I2C)0.96" OLED display (I2C)₹218× 1Buy
  • Steel funnel× 1
  • Power bank (5 V)Power bank (5 V)× 1Buy

Wiring

5V / GNDSensorred / blackyellowGPIO3(10k)to GND20k resistorGPIO8 / GPIO9OLEDSDA / SCLVCC3.3VCommon GNDAll grounds
PowerGroundSignal
#FromConnect to
1 PowerSensor red / black5 V / GND
2 SignalSensor yellow (pulse)10k → GPIO3
3 Ground20k resistorGPIO3 to GND
4 SignalOLED SDA / SCLGPIO8 / GPIO9
5 PowerOLED VCC3.3 V
6 GroundAll groundsCommon GND

3D print files

This project has no 3D-printed parts.

Code

Get the code