Twelve buttons and a Raspberry Pi: how a mountain café stopped waving at waiters (TableBell)

#esp8266 #raspberry-pi #restaurant

No replies · 1 views · started 48 minutes ago · 5 min read

GumSlone Administrator Principal · 1,700 posts #1

Friday, 19:40. Every table is full.

The café sits at the end of a mountain road, the kind of place where the mobile signal gives up two bends before you arrive, and the internet comes and goes with the weather. Twelve tables, one kitchen, a bar, and Marta, who has been carrying plates for eleven hours.

On Fridays it's chaos.

Table 4 is waving. Table 9 wants the bill, and has wanted it for ten minutes; you can tell from the way they keep putting their coats on and taking them off again. Table 2 ordered soup, but the note with "no onions" is under a coffee cup somewhere. The kitchen bell rings: something is ready. For whom? Nobody remembers.

A guest at table 7 raises a hand, waits, gives up, and walks to the bar. On the way he knocks over a chair.

Marta's brother Andriy watches this from the corner with a laptop. He fixes things: tractors, routers, the coffee machine. That night he goes home with an idea and a shoebox of old parts: a Raspberry Pi, a bag of ESP-01 modules, and a dozen big round arcade buttons left over from a project he never finished.

One button per table

Andriy flashes the first module at the kitchen table at two in the morning, using a little script that builds and flashes it as one table:

tools/flash.sh -t 7 -e esp01_1m -m

He wires the arcade button to GPIO0 and an LED to GPIO2, plugs it into a USB charger, and it joins the café's own Wi-Fi. No internet needed: the Raspberry Pi in the back office is the network, the access point and the server, running a small TableBell hub.

By Wednesday every table has a button in a little wooden box Andriy cut himself.

How the café learns the new language

  • Short press: "Waiter, please." The LED on the button blinks fast. On Marta's phone, table 7's card turns colour and a timer starts counting.
  • Hold 1.5 seconds (it chirps) and let go: "The bill, please." The LED double-pulses.
  • Changed your mind? Keep holding to 5 seconds and the request is cancelled.
  • Marta taps "I'm coming" on her phone, and the LED on the table goes solid. The guest at table 7 doesn't have to wave; he can see she's on her way.

The QR card

On each table there's a laminated card with two QR codes. The first joins the Wi-Fi. The second opens a page just for that table, no app needed:

  • Browse and order: the menu, in English, German or Ukrainian depending on the phone, with "no onions" typed right into the order.
  • Live status: received → being prepared → ready → served.
  • The bill, running in real time, and a choice of cash or card before Marta even arrives.

The tourists from Munich order in German. The kitchen reads the same dish in Ukrainian.

In the kitchen and at the bar

A cheap tablet on the kitchen wall shows tickets with timers that turn amber, then red, when an order is running late. The cook taps an item: new → cooking → ready. Drinks go to the bar's own screen automatically. When the last portion of borscht goes, the cook taps Sold out and it disappears from every guest's menu.

The "for whom?" problem is gone. Marta's dashboard has a "ready to serve" strip: table 2, soup, no onions.

The night the power went out

In November a storm knocks the power out for twenty minutes. Candles come out. When the lights return, Marta holds her breath.

Nothing is lost. The hub saves everything to disk before it answers, so every order, call and bill is still there. The buttons had kept their requests in a queue and retried until the hub came back, and the dashboard lit up exactly as it was. One button by the window shows "offline" on Marta's screen. Its charger had come unplugged. Andriy plugs it back in. Done.

Friday again, 19:40

Every table is full. It's still busy; it's a Friday. But it's quiet busy.

Nobody waves. Nobody walks to the bar. Table 9 pressed and held their button, chose "card", and Marta arrives with the terminal already in her hand. Her dashboard shows the average response time for the evening: under two minutes. At the end of the night it shows the day's sales too, so nobody has to count napkins with numbers on them.

Andriy sits in his corner with a coffee and watches the little LEDs blink across the room like fireflies.

"Twelve buttons," Marta says, sitting down for the first time in hours. "That's it?"

"Twelve buttons and a Raspberry Pi," he says. "And no internet at all."


The real project

The café is fiction; the system is real: TableBell on GitHub, offline table service for restaurants and cafés.

 [table node]──┐                       ┌── waiter phones/tablets  /waiter
 [table node]──┤  Wi-Fi (HTTP POST)    │── kitchen screen         /kitchen
 [table node]──┼──────►  HUB  ◄────────┤── bar screen             /bar
 ...           │   Raspberry Pi/laptop │── guest phones (QR on the table)
  • Table buttons on ESP-01, ESP8266 or ESP32: call, bill, cancel, with LED feedback and an optional buzzer.
  • Waiter dashboard: colour-coded tables, wait timers, orders, sold-out items, button signal strength, response times and daily sales.
  • Guest page by QR code: call the waiter, order with notes, live order status, the running bill, cash or card.
  • Kitchen and bar screens with ticket timers and automatic routing by station.
  • English, German and Ukrainian, per device, with menu items translated too.
  • Nothing gets lost:
    • the nodes retry until the hub confirms
    • the hub saves before it answers, so it survives power cuts
    • the dashboard flags any button that goes quiet
  • Safety: a staff PIN, a secret per table, prices checked on the server, rate limits, and optional waiter confirmation of orders.
  • The hub is plain Node.js with no npm dependencies, on a Raspberry Pi or any laptop.
  • Try it first: npm run demo gives you a look around with realistic demo data.

It works anywhere the internet is unreliable or unwanted: a mountain café, a beer garden, a festival tent, a hotel terrace.

Would you put one of these in your favourite café? And what would you add — a "more bread" button?

Advertise your mobile site for FREE with AdTwirl

External image (may be gone)

Write your reply now; next you create a free account (or sign in) and it is posted right away. Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close