Embedded SystemsBeginnerPRJ-064

Smart Queue Management System (Token Display) Using ESP8266

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

Circuit diagram of the Smart Queue Management System (Token Display) using ESP8266 NodeMCU
Circuit diagram · ESP8266 NodeMCU
LevelBeginner
Build time1–2 hours
BoardESP8266 NodeMCU
Parts6 components

What is the Smart Queue Management System (Token Display)?

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.

How it works

  1. The LCD shows "Now Serving:" and the current token number.
  2. Pressing Next adds one to the token and beeps.
  3. Pressing Reset sets the token back to 0 and beeps.
  4. The display updates continuously.

Parts list

ComponentQty
ESP8266 NodeMCU1
Push Buttons (Next / Reset)2
16×2 LCD with I2C Module1
Buzzer1
Jumper WiresAs needed
Power Supply1

Software

  • Arduino IDE
  • LiquidCrystal_I2C library

Wiring and connections

FromConnect to
Next buttonD1 and GND
Reset buttonD2 and GND
LCD VCC5V (VIN)
LCD GNDGND
LCD SDAD3
LCD SCLD4
Buzzer +D5
Buzzer −GND

How to build the Smart Queue Management System (Token Display)

  1. Connect the Next button between D1 and GND, and the Reset button between D2 and GND.
  2. Connect the I2C LCD to D3 (SDA) and D4 (SCL).
  3. Connect the buzzer to D5.
  4. Install the LiquidCrystal_I2C library and upload the code.
  5. Press Next to call tokens and Reset to start over.

Smart Queue Management System (Token Display) code

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);
}

Real-world uses

  • Hospitals and clinics
  • Banks
  • Government offices
  • Shops and service counters

Frequently asked questions

What is a Smart Queue Management System (Token Display)?

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.

What components are needed for the Smart Queue Management System (Token Display)?

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.

Is the Smart Queue Management System (Token Display) project good for beginners?

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.

Where can I get the code for the Smart Queue Management System (Token Display)?

The complete, tested Arduino C++ code is free on this page. Copy it into Arduino IDE and upload it to the board.

Can I buy a kit for the Smart Queue Management System (Token Display)?

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.

Industrial Robotics Institute
Logo