Bartender Bot
Overview
This project involves creating an automatic cocktail maker. A user selects a drink choice from a predefined menu on a website, and their choice is concocted from a variety of drinks housed within the cocktail maker.
The Raspberry Pi is only used for hosting and serving a website for drink selection and interactions with the MBED. Once the user selects a drink on the website, the Raspberry Pi sends the MBED a specific recipe and the MBED feeds signals to the three dual H-bridge instructing the motor-driven pumps to dispense the specific liquids required for the drink.
Demo Video
Hardware Components
- Raspberry Pi 4
- mbed NXP LPC1768 MODULE
- Dual H Bridge Motor Driver (3)
- Peristaltic Pumps (6)
- Smart Color LCD (uLCD-144-G2 128)
Software Components
- Raspberry Pi
- Mbed
Schematic

Pin Connections
Peristaltic Motors
Connect all 6 motors in a similar method. AIN1 and AIN2 connect to MBED digital pins, and PWM connects to a PwmOut pin.
| MBED | H Bridge | Motor |
|---|---|---|
| P5 | AIN1 | |
| P6 | AIN2 | |
| P21 | PWMA | |
| AO1 | + | |
| AO2 | - |
LCD Screen
| MBED | uLCD |
|---|---|
| 5V | 5V |
| Gnd | gnd |
| TX (P27) | TX |
| RX (P28) | RX |
| P30 | Reset |
Images


Code
Website Code
https://github.com/nicholasjoaquin/drink-dispense
MBED Drink Dispensing Code
Import programdrink_dispensing_program
Drink Dispensing Program
Please log in to post comments.
