Source: https://mokxi.com/teachers/plans/build-drink-mixer
Updated: 2026-11-19

Lesson plan

# 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.

3 chapters, 6 lessons, about 5 hours, on the Arduino Uno R3. Every lesson runs in the browser, with nothing to install.

Start a class from this course

The unit

## 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.

Chapter 1. About 1 h 30 min

## Pumps and pours

Switch pumps safely, and turn time into milliliters.

Lesson | Time | What students do

Pumps and relays Switch 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

- A mocktail machine
- A relay runs the pump
- Active low
- The diode
- A safety limit

Measured pours A 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

- Time is volume
- Pour 50 ml
- Done on time
- Calibrate
- A better pour

### 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".

Chapter 2. About 2 h 35 min

## The machine

Recipes in flash, a menu on an LCD, and a cleaning cycle.

Lesson | Time | What students do

Recipes Keep 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

- Recipes as data
- Read them out
- Make one
- All at once
- Ready

A menu A 20x4 LCD and a keypad: one number for the recipe on show, two states, and a stop key that always works. | 55 min

- The menu
- Down the list
- Wrap around the top
- Pour
- The stop key
- Ready

Cleaning cycle Run 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

- Clean every time
- Start the cycle
- One after another
- Done
- Stop it
- A reminder

### 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".

Chapter 3. About 1 h

## A mocktail bar

Put it all together into a machine worth sharing.

Lesson | Time | What students do

Project: a mocktail bar Put it all together: a menu, two glass sizes, parallel pours, a drink counter and a cleaning cycle on one machine. | 60 min

- Bar open
- Choose
- A bigger glass
- Pour a Sunrise
- Count the drinks
- Clean up
- Make it yours

### 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".

Your class

## 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.

Start a class from this course See the demo class

More units

## Other lesson plans

Electronics basics 20 lessons, about 10 h. Embedded on the Arduino Uno 16 lessons, about 12 h. Embedded on the ESP32-C3 13 lessons, about 11 h. Embedded on the Raspberry Pi Pico 7 lessons, about 6 h. Build your own fight stick 5 lessons, about 4 h. Embedded on the STM32F411 6 lessons, about 6 h. C++ on a board 13 lessons, about 10 h. Digital logic and memory 4 lessons, about 4 h. Interactive devices on the Uno 9 lessons, about 8 h. From gates to a computer 23 lessons, about 16 h. Build a claw machine 8 lessons, about 6 h. Every unit All the courses as ready-made units, on the teachers page.
