A screen for prices
Add a 16x2 LCD on an I2C backpack, so the machine can show prices, credit and messages with only two signal wires.
Open it in the simulatorBuild a real vending machine piece by piece: a keypad, a screen, coins and change, spirals, a drop sensor and service mode.
0 of 6 done
6 lessons in 3 chapters, about 5 hours on a simulated Arduino Uno R3. Free, in your browser, every step checked by the simulator.
Add a 16x2 LCD on an I2C backpack, so the machine can show prices, credit and messages with only two signal wires.
Open it in the simulatorAdd an infrared beam across the bin, so the machine only takes your money when it sees the item fall, and tries again when it does not.
Open it in the simulatorEach lesson opens when the one before it is done, and each chapter ends in a project.
A keypad to choose with and a screen that talks back.
Start the vending machine with a 4x4 keypad: sixteen keys on eight pins, read by scanning rows and columns, and a selection like B2.
0 of 4 steps
Add a 16x2 LCD on an I2C backpack, so the machine can show prices, credit and messages with only two signal wires.
0 of 4 steps
Take money, turn a spiral, and make sure the item really fell.
Add a coin switch and a bill switch, count credit in whole cents, and give a refund on the star key.
0 of 4 steps
Turn slot A1 with a continuous servo: pay, choose, and the spiral turns once and pushes the item off the end.
0 of 4 steps
Add an infrared beam across the bin, so the machine only takes your money when it sees the item fall, and tries again when it does not.
0 of 4 steps
Four slots, stock counts, change for every price and a service code.
Finish the machine with four spirals, a speaker, sold out counts, change for every price, and a code that opens service mode.
0 of 4 steps
All 6 lessons, in order, each with what it covers. Any of them opens in the editor right away.
Build a vending machine is part of the maker track, a ladder of courses from zero to expert.
A letter grid on WS2812 LEDs that spells the time: words as numbers, a snake-wired panel, a DS3231, brightness by light and animations.
Open the next courseFollow 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 trackEvery lesson runs in the simulator with nothing to buy. When you want the real thing, these kits have the parts.
A keypad, a price screen, coin and bill slots, four spirals and a drop sensor.
Open the kitPick the starter kit you own and run every lesson in its manual with the same parts on the same pins.
See every kitYes. All 6 lessons of Build a vending machine are free and run in your browser, with nothing to install and no parts to buy before you start.
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.
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.
Each chapter ends in a project that puts it together: A screen for prices and Did it really drop.
With "A keypad to choose with", and each lesson builds on the one before it. New to circuits? Electronics basics is the course that starts from zero.