All paths

Build a drink mixer

Build a mocktail mixer on an Uno: four pumps on relays, calibrated pours, recipes in flash, an LCD menu and a cleaning cycle.

Arduino Uno R3Free6 lessons5 h3 chapters1,777 XPMaker · Intermediate+150 XP

0 of 6 done

What you will build

2 projects, built step by step

6 lessons in 3 chapters, about 5 hours on a simulated Arduino Uno R3. Free, in your browser, every step checked by the simulator.

Chapter 1 project

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.

Open it in the simulator
Chapter 2 project

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.

Open it in the simulator
The map

Chapter by chapter

Each lesson opens when the one before it is done, and each chapter ends in a project.

Chapter 1

Pumps and pours

Switch pumps safely, and turn time into milliliters.

  1. Open205 XP

    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.

    0 of 5 steps

  2. ProjectLocked410 XP

    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.

    0 of 5 steps

5 questions, graded as you go.
Chapter 2

The machine

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

  1. Locked205 XP

    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.

    0 of 5 steps

  2. Locked236 XP

    A menu

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

    0 of 6 steps

  3. ProjectLocked472 XP

    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.

    0 of 6 steps

5 questions, graded as you go.
Chapter 3

A mocktail bar

Put it all together into a machine worth sharing.

  1. Locked249 XP

    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.

    0 of 7 steps

3 questions, graded as you go.
Syllabus

Every lesson in the course

All 6 lessons, in order, each with what it covers. Any of them opens in the editor right away.

Chapter 1

Pumps and pours

  1. 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.
  2. 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.
Chapter 2

The machine

  1. RecipesKeep a table of recipes as structs in flash with PROGMEM, copy one out when it is needed, and pour every bottle at once.
  2. A menuA 20x4 LCD and a keypad: one number for the recipe on show, two states, and a stop key that always works.
  3. 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.
Chapter 3

A mocktail bar

  1. Project: a mocktail barPut it all together: a menu, two glass sizes, parallel pours, a drink counter and a cleaning cycle on one machine.
Keep going

The next course on your track

Build a drink mixer is part of the maker track, a ladder of courses from zero to expert.

Next course

Build a foam dart sentry

A foam dart desk guard built safety first: a thermal camera that finds a warm body, pan and tilt aim from its pixels, a range check, a solenoid trigger with a flyback diode, an arm switch, and no-fire zones in code.

Open the next course
Track

Maker track

Follow the starter kit you already own, then build a claw machine, a balance bot, a handheld console or an LED cube, each a short course checked by the simulator.

See every course on the track
Kits

Build it on your bench too

Every lesson runs in the simulator with nothing to buy. When you want the real thing, these kits have the parts.

Have a kit already?

Find your kit

Pick the starter kit you own and run every lesson in its manual with the same parts on the same pins.

See every kit
Questions

About Build a drink mixer

Is Build a drink mixer free?

Yes. All 6 lessons of Build a drink mixer are free and run in your browser, with nothing to install and no parts to buy before you start.

Do I need a real Arduino Uno R3?

No. Every lesson runs on a simulated Arduino Uno R3 with its parts on the canvas, and the simulator checks each step as you go. When you want to build it for real, the same wiring and code work on a real board.

How long does Build a drink mixer take?

About 5 hours: 6 lessons in 3 chapters, each one a few short steps. Your progress is kept, so you can stop after any lesson and pick up where you left off.

What will I build?

Each chapter ends in a project that puts it together: Measured pours and Cleaning cycle.

Where do I start?

With "Pumps and relays", and each lesson builds on the one before it. New to circuits? Electronics basics is the course that starts from zero.