Serial Driver for PHP to Port Interface

This week we worked on testing the pumps for the liquids. I also began work on a new driver program that will serve as an interface between the PHP code and the hardware. The program will be called with a string of arguments. These will include the glass size, the port numbers that the liquids are connected to, and the percentage of each liquid in the drink. It then takes those values and computes the number of ounces per liquid based on the percentages and the glass size. From there, it will convert the ounces for each drink into lengths of time. We will use these times as delays between turning the ports on and off. Last night, we determined that it takes just over 2 seconds for the system to pour one ounce. This number will need to be recalculated once we have a permanent solution for the bottle caps. The next step will be creating the system calls from the current data that is passed to the program. The pumps work well, and as soon as we can get the second pump connected, we can begin testing actual mixes.

Post a Comment

Your email is never published nor shared. Required fields are marked *

*
*