Cirkit Designer LogoCirkit DesignerYour all-in-one circuit design IDE Launch Cirkit Designer App

Arduino Mega ADK Airline Seat Booking System with LED Indicators

View and Edit Project In Cirkit DesignerImage of Arduino Mega ADK Airline Seat Booking System with LED Indicators

Circuit Documentation

Summary

This circuit is an Airline Seat Booking System using an Arduino Mega ADK (Rev3) microcontroller. It includes 16 red LEDs to represent seats and 4 pushbuttons for user input. The system allows users to book seats in either First Class or Second Class, with the status of each seat indicated by the corresponding LED.

Component List

  1. LED: Two Pin (red)

    • Description: Red LED with two pins (anode and cathode).
    • Purpose: Indicates the status of seats (available or occupied).
  2. Arduino Mega ADK (Rev3)

    • Description: A microcontroller board based on the ATmega2560.
    • Purpose: Controls the LEDs and reads input from the pushbuttons.
  3. Resistor

    • Description: 200 Ohms resistor.
    • Purpose: Limits the current to the LEDs to prevent damage.
  4. Pushbutton

    • Description: A simple pushbutton with four pins.
    • Purpose: Allows user input for selecting class, row, and seat.

Wiring Details

LED: Two Pin (red)

Arduino Mega ADK (Rev3)

Resistor

Pushbutton

Code Documentation

// Airline Seat Booking System with Four Buttons
const int totalSeats = 16;         // Total seats: 4 First Class + 12 Second Class
bool seats[totalSeats] = {false}; // Seat occupancy (false = available, true = occupied)

// LED pin assignments
const int ledPins[totalSeats] = {
  2, 3, 4, 5,   // First Class seats (1+1 configuration)
  6, 7, 8,      // Second Class Row 1
  9, 10, 11,    // Second Class Row 2
  12, 13, A4,   // Second Class Row 3
  A5, A6, A7    // Second Class Row 4
};

// Button pin assignments
const int buttonB1 = A