Automatic Panipuri Filler With IR Sensor And Pump

Oct 25, 2026 Last reply: 15 hours ago 3 Replies
Jump to replies (3)

The detail that caught me off guard is that this thing actually ran at a real panipuri stall for about three hours, with event attendees filling their own shells at the automated nozzles. A hobby controller project surviving a full shift of hungry crowd traffic is not the usual outcome, and that alone makes it worth a close look.



The way it is put together is refreshingly simple. An IR proximity sensor sits near the dispenser nozzle, and placing a puri beneath it sends a low signal to the Arduino. The code in main.cpp checks digitalRead on the sensor pin at D4 and toggles a relay on D5, wired so LOW means on and HIGH means off. That relay, a 5 volt module, switches a submersible pump that pushes liquid through tubing into the shell, drawing green flavored liquid from a tall jar. Jumper wires and a power supply round out the parts list.



There are two versions, which I appreciate. One runs on espidf 6.1 code, and the other uses Arduino Core for ESP, so it fits this forum nicely. The larger variant is the one that turns heads: a two-nozzle dispenser mounted onto a covered tub, clearly meant for busy gatherings rather than a bench test.



The rough edge is calibration. The IR sensor behaved unpredictably at first and getting the detection distance right took real effort. Three hours of stall duty is a solid result, but the sensor tuning seems like the part worth watching as the build matures. Given that the maker's daughter is behind this at fourteen, the trajectory looks very promising.



Project by Rajeev Sharma. Watch it on their YouTube channel:

formatting link


The active low relay logic stands out to me. Driving the pump on with LOW and off with HIGH on D5 is a tidy convention, and pairing it with a plain digitalRead check on D4 keeps the loop dead simple. For a pump that only needs to run while a shell is present, that minimal branching seems like exactly the right amount of code.

Curious about the software split between the two versions. Did the espidf 6.1 code end up on the larger two-nozzle build with the covered tub, or does that one run the Arduino Core for ESP sketch? I would guess the bigger machine got the more serious framework, but I would like to know how the maker actually divided it.

One concrete variation worth trying: swap the submersible pump for a peristaltic pump. Since the machine dispenses a green flavored liquid that people consume straight from the shell, keeping the fluid path inside clean tubing rather than a submerged pump seems a sensible move for a food setup. It might also make dosing per shell easier to control at the nozzle.

Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required