#Robot
A script that controls pumps for a cocktail making robot
##Terminology
- Robot - One complete unit powered by a raspberry pi. A robot is made up of two machines, a button and a light.
- Machine - A set of three pumps. Three drinks can be mixed together to make a cocktail.
- Job - Instructions to make a drink. A recipe is a list of pump activation times measured in milliseconds.
- Cocktail - Mmmm...
##Description
The robot.js
script runs on a raspberry pi using Johnny-Five and communicates with a cocktail-control server using MQTT.js.
When the button is pressed, the robot notifies the control server that it is ready to receive jobs.
test_job.js
is a script that can be used to send test jobs to the robot without needing to start the entire control server.
- cocktail-control - The control server.
- workaholic-ui - A web interface for ordering drinks.
- relay - One of the robots was built using relays instead of transistors so we needed to change some code.
- reversed-light - We mistakenly soldered some of the led circuitry on a robot in reverse i.e. on = off && off = on.
- Matteo Collina for his work on the cocktail-control.
- Glen Keane for creating the workaholic UI.
- Marco Piraccini for lending us his electronics genius.
- Julian Cheal for coming up with the original idea, building a relay based robot, and contributing to the code.
MIT