Coffee.js - How I hacked my coffee machine using JavaScript
summary
Takes apart a capsule coffee machine, traces an 8‑pin ribbon and finds pins 1–3 are power, 4–6 drive LEDs and 7–8 read buttons, and proves it by measuring resistances and toggling voltages. Builds a controller on Tessel 2 using Johnny‑Five and uses three relays to emulate the on/espresso/regular switches so pressing timing matches the machine’s behavior. Adds an HTTP API that implements the RFC 2324 brew method and Alexa auth; the hack brews reliably though the server needs occasional restarts. Code and wiring are on GitHub.
AI-written summary · about
chapters (8)
- 0:00Motivation for the project
- 2:24Choosing JavaScript hardware
- 4:21Hardware platform selection
- 7:38Reverse engineering the unit
- 16:17Implementing relay controls
- 18:27HTCPCP protocol integration
- 21:49Final demo and execution
- 26:40Lessons learned and conclusions
related talks
39mCoffee.js? How I hacked my coffee machine using JavaScript
24mcoffee.js? How I hacked my coffee machine
19mHardware Hacking for JS Developers
47m50,000 Lines Of Code to Brew a Coffee
32mJS in Strange Places
30mWhen Porgs Scream at Webpack and Other Stories
55mPrison Break - When the web escapes the browser
26mAlice in Hardware Land - JavaScript models of interaction with the physical world
