Build a drink mixer lesson plan
Build a mocktail mixer on an Uno: four pumps on relays, calibrated pours, recipes in flash, an LCD menu and a cleaning cycle.
Objectives and materials
By the end, students can
- Switch pumps safely, and turn time into milliliters.
- Recipes in flash, a menu on an LCD, and a cleaning cycle.
- Put it all together into a machine worth sharing.
Materials for the whole unit
- Arduino Uno R3
- Character LCD, 20x4, with I2C backpack
- Keypad, 4x4
- Mini water pump x 4
- Relay board, four channels
Every part is already on the simulator’s bench, so there is nothing to buy or hand out. The counts are the most any one lesson uses, if you build it on real breadboards too.
Pumps and pours
Switch pumps safely, and turn time into milliliters.
| Lesson | Time | What students do |
|---|---|---|
| Pumps and relaysSwitch four pumps with an active-low relay board, learn why a motor needs a diode across it, and add a safety limit no command can override. | 45 min |
|
| Measured poursA pump moves a steady amount each second, so a pour is a time: ml divided by ml per second, calibrated pump by pump with a measuring jug. | 45 min |
|
Materials
- Arduino Uno R3
- Character LCD, 20x4, with I2C backpack
- Keypad, 4x4
- Mini water pump x 4
- Relay board, four channels
Check for understanding
Each student finishes "Measured pours" on their own, without opening the hints. The simulator checks 5 of its 5 steps as they go.
Then ask each one to explain, in a sentence or two, the last thing it asked of them: "A better pour".
The machine
Recipes in flash, a menu on an LCD, and a cleaning cycle.
| Lesson | Time | What students do |
|---|---|---|
| RecipesKeep a table of recipes as structs in flash with PROGMEM, copy one out when it is needed, and pour every bottle at once. | 45 min |
|
| A menuA 20x4 LCD and a keypad: one number for the recipe on show, two states, and a stop key that always works. | 55 min |
|
| Cleaning cycleRun warm water through every line in turn with a small state machine, stop it any time, and count drinks to ask for a clean. | 55 min |
|
Materials
- Arduino Uno R3
- Character LCD, 20x4, with I2C backpack
- Keypad, 4x4
- Mini water pump x 4
- Relay board, four channels
Check for understanding
Each student finishes "Cleaning cycle" on their own, without opening the hints. The simulator checks 6 of its 6 steps as they go.
Then ask each one to explain, in a sentence or two, the last thing it asked of them: "A reminder".
A mocktail bar
Put it all together into a machine worth sharing.
| Lesson | Time | What students do |
|---|---|---|
| Project: a mocktail barPut it all together: a menu, two glass sizes, parallel pours, a drink counter and a cleaning cycle on one machine. | 60 min |
|
Materials
- Arduino Uno R3
- Character LCD, 20x4, with I2C backpack
- Keypad, 4x4
- Mini water pump x 4
- Relay board, four channels
Check for understanding
Each student finishes "Project: a mocktail bar" on their own, without opening the hints. The simulator checks 7 of its 7 steps as they go.
Then ask each one to explain, in a sentence or two, the last thing it asked of them: "Make it yours".
Teach this unit as a class
Start a class from this course and its 6 lessons are assigned in one go, in order. Students join with a six-character code or printed login cards, and each one’s work comes back to you.
The class tools are free for 30 days for one class of up to 20 students, with no card. The lessons themselves are free either way.