Before I knew it, my venus flytraps had multiplied and I had to divide them into more pots. Watering them was tedious, especially since they need to be kept pretty moist. So I designed this robot in SolidWorks and printed it out, and bought a few parts for the electronics.
The robot is plugged into a timer I had, and waters the plants on a daily basis.
To make the robot's movement precise, I used an LED and a photoresistor, along with a slotted disc I 3D printed, in order to track exactly how long the robot extends and retracts the nozzle. As the disk rotates, the light from the LED is continuously covered and uncovered by the slots on the disk. On the other side of the disk is a photoresistor, which can count the amount of times the light is covered and then uncovered, or 'blinks.' The motor stops after a certain amount of blinks are counted, thus accurately stopping the nozzle at the same displacement every time.
A simple potentiometer is coupled to the large gear the robot is mounted upon. In fact, the potentiometer is the actual shaft! Since the potentiometer knob glides so smoothly anyway, I thought why not use it as a robot joint?