You are working on a project where cups (up to 3) are placed in front of a machine. When the machine detects the cups using infrared sensors, lights turn on at the detected locations. After confirming the presence of lights, you want to control the machine by touching the sensors so that it dispenses two types of drinks in the desired ratio only into the detected cups. You have an Arduino Uno R3, a breadboard, 3 infrared sensors, 1 touch sensor, 3 stepper motors, and 2 water pumps. You are seeking ideas on how to control the stepper motors effectively for dispensing the drinks.
[If my English was not good, I'm sorry! I am learning English.]
You might start with a block diagram to identify all components used, including their physical and logical characteristics.
Divide the block diagram in logical parts and start coding these parts step by step. If you are happy the step test results you can merge all parts to the complete project.