The BBT machine is controlled by both an Arduino and Raspberry Pi. The Arduino is responsible for issuing specific commands to our various components and sensors, such as turning the motor or dispensing a topping. The RaspPi, on the other hand, is responsible for issuing any routines we want to run such as calibrating the machine or taking a drink order and figuring out what the Arduino needs to do in order to create the drink.
The Arduino and RaspPi communicate via serial, and in previous weeks Python code was implemented such that the RaspPi could issue Gcode commands to the Arduino. This week, calibration routines were implemented that would allow us to set the location of the different topping/liquid stations, calibrate the weight scale conversion factor, and calibrate the distance conversion factor. These routines will allow us to operate the machine more smoothly and with more ease!