Press Next to call the next token; the number shows on an LCD with a beep.
Built and tested by Shahan Fathima K · Industrial Robotics Institute

A token display for clinics, banks and offices. Staff press the Next button to call the next token number, which appears on a 16×2 LCD with a short beep; a Reset button starts the count again from zero. It keeps queues orderly without anyone calling out numbers.
| Component | Qty |
|---|---|
| ESP8266 NodeMCU | 1 |
| Push Buttons (Next / Reset) | 2 |
| 16×2 LCD with I2C Module | 1 |
| Buzzer | 1 |
| Jumper Wires | As needed |
| Power Supply | 1 |
| From | Connect to |
|---|---|
| Next button | D1 and GND |
| Reset button | D2 and GND |
| LCD VCC | 5V (VIN) |
| LCD GND | GND |
| LCD SDA | D3 |
| LCD SCL | D4 |
| Buzzer + | D5 |
| Buzzer − | GND |
Complete, tested Arduino C++ code for this project. Copy it into Arduino IDE and upload it to the ESP8266 NodeMCU.
#include <Wire.h>
#include <LiquidCrystal_I2C.h>
#define nextButton D1
#define resetButton D2
#define buzzer D5
LiquidCrystal_I2C lcd(0x27, 16, 2);
int token = 0;
void beep()
{
digitalWrite(buzzer, HIGH);
delay(200);
digitalWrite(buzzer, LOW);
}
void setup()
{
pinMode(nextButton, INPUT_PULLUP);
pinMode(resetButton, INPUT_PULLUP);
pinMode(buzzer, OUTPUT);
Wire.begin(D3, D4); // SDA = D3, SCL = D4
lcd.init();
lcd.backlight();
lcd.print("Queue System");
delay(2000);
lcd.clear();
}
void loop()
{
if (digitalRead(nextButton) == LOW)
{
token++;
beep();
delay(300);
}
if (digitalRead(resetButton) == LOW)
{
token = 0;
beep();
delay(300);
}
lcd.setCursor(0, 0);
lcd.print("Now Serving:");
lcd.setCursor(0, 1);
lcd.print(token);
lcd.print(" ");
delay(200);
}A token display for clinics, banks and offices. Staff press the Next button to call the next token number, which appears on a 16×2 LCD with a short beep; a Reset button starts the count again from zero.
You need: ESP8266 NodeMCU (1), Push Buttons (Next / Reset) (2), 16×2 LCD with I2C Module (1), Buzzer (1), Jumper Wires, Power Supply (1). Software: Arduino IDE, LiquidCrystal_I2C library.
Yes. It is rated beginner and takes about 1–2 hours to build, using the ESP8266 NodeMCU. The guide on this page explains every connection and step.
The complete, tested Arduino C++ code is free on this page. Copy it into Arduino IDE and upload it to the board.
Yes. IRI sells a kit with the parts for this project (PRJ-064). Message IRI on WhatsApp at +91 86060 82634 for the kit price and delivery details.