Arduino Based Automatic Tire Inflator Using Pressure Sensor, Relay Module and LCD Display

 

This Arduino-based Automatic Tire Inflator is a smart air pressure control system designed to automatically inflate vehicle tires to a preset pressure level. The system uses a pressure sensor to monitor tire pressure in real time and controls an air compressor through a relay module, ensuring accurate and safe inflation. A 16x2 LCD display provides live pressure readings and system status updates.


Project Overview

This automatic tire inflation system includes:

  • Arduino UNO microcontroller

  • Pressure sensor (air pressure transducer) for PSI measurement

  • 4-channel relay module (used to control air compressor and other outputs)

  • Air compressor / DC pump

  • 16x2 LCD display for real-time pressure display

  • Buzzer for alert notification

  • Push buttons for setting desired pressure

  • SMPS power supply with DC-DC buck converter

  • Supporting wiring and connectors


How It Works

  1. The pressure sensor continuously measures tire air pressure.

  2. The Arduino compares the measured pressure with the preset target value.

  3. If the pressure is below the set limit:

    • The relay module activates the air compressor.

  4. When the desired pressure is reached:

    • The compressor automatically turns OFF.

    • The buzzer gives a confirmation alert.

  5. The LCD display shows:

    • Current tire pressure (PSI/Bar)

    • Set pressure value

    • System status (Inflating / Completed)


Key Features

  • Automatic inflation control

  • Real-time tire pressure monitoring

  • Over-inflation protection

  • Relay-controlled air compressor

  • LCD-based user interface

  • Safe and energy-efficient operation

  • Suitable for cars, bikes, and bicycle

Code:
#include <EEPROM.h>
#include <LiquidCrystal_I2C.h>
#include <Wire.h>
LiquidCrystal_I2C lcd(0x27, 20, 4);  //Device Address,N Charecter, LCD Lines
//SDA-> A4 SCL-> A5

int sensorPin = A0;
int setvalue = 0;

int sw_set = 2; //Connect to Switch Set
int sw_up = 3; //Connect to Switch UP
int sw_dwn = 4; //Connect to Switch Down
int sw_ent = 5;//Connect to Switch Enter

int purge = 6; //For Solenoid
int feed = 7; //For Solenoid

int max_pressure = 70;
int min_pressure = 10;
int pressure_value = 0;
int sensor_Value = 0;
int cal_factor = 0;
int set_mode = 0;
int threshold = 5;

int inf_delay = 200;
String disp_string[4] = { "  Tyre Inflator", "Set Pressure", "-", "-" };
void setup() {
  // declare the ledPin as an OUTPUT:
  //pinMode(ledPin, OUTPUT);
  pinMode(purge, OUTPUT);
  pinMode(feed, OUTPUT);
  pinMode(sw_up, INPUT_PULLUP);
  pinMode(sw_dwn, INPUT_PULLUP);
  pinMode(sw_set, INPUT_PULLUP);
  pinMode(sw_ent, INPUT_PULLUP);

  Serial.begin(9600);
  load_settings(set_mode);
  delay(500);

  if (setvalue > max_pressure) {
    save_settings(set_mode, 23);
  }
  lcd.init();
  lcd.backlight();
  lcd.clear();
  lcd.setCursor(6, 0);
  lcd.print("Welcome");
  lcd.setCursor(4, 1);
  lcd.print("Automatic");
  lcd.setCursor(2, 2);
  lcd.print("Tyre Inflator");
  delay(3000);
  lcd.clear();
  disp_string[1] = "Set Pres.:" + String(setvalue) + "PSI";
  disp_string[2] = "Press Enter";
  disp_string[3] = "To Start Inflating";
  display();
}

void loop() {
  if (set_mode == 1) {
    sensor_Value = analogRead(sensorPin);
    pressure_value = sensor_Value + cal_factor;
    disp_string[2] = "Set Pressure:" + String(setvalue) + "PSI";
    disp_string[3] = "Tyre Pressure:" + String(pressure_value) + "PSI";
    delay(5);

    if (pressure_value < (setvalue + threshold)) {
      delay(inf_delay);
      if (pressure_value > setvalue) {
        //Stop Inflating
        disp_string[1] ="Inflation Done";
        digitalWrite(purge, HIGH);
        digitalWrite(feed, HIGH);
      } else {
        //inflating
        disp_string[1] ="****Inflating****";
        digitalWrite(purge, HIGH);
        digitalWrite(feed, LOW);
      }
    }

    if (pressure_value > (setvalue + threshold)) {
      delay(inf_delay);
      if (pressure_value > setvalue) {
        //Purging
        disp_string[1] ="****Purging****";
        digitalWrite(purge, LOW);
        digitalWrite(feed, HIGH);
      } else {
        //Stop Purging
        disp_string[1] ="Purging Done";
        digitalWrite(purge, HIGH);
        digitalWrite(feed, HIGH);
      }
    }
   
    display();
  } else {
    digitalWrite(purge, LOW);
    digitalWrite(feed, LOW);
  }

  if (digitalRead(sw_up) == LOW) {
    delay(1000);
    switch (set_mode) {
      case 0:
        if (setvalue < max_pressure) {
          setvalue += 1;
          delay(10);
          save_settings(set_mode, setvalue);
          disp_string[2] = "Set Pressure:" + String(setvalue) + "PSI";
          display();
        }
        break;
      case 2:
        if (cal_factor < 200) {
          cal_factor += 1;
          delay(10);
          save_settings(set_mode, cal_factor);
          sensor_Value = analogRead(sensorPin);
          pressure_value = sensor_Value + cal_factor;
          disp_string[2] = "Cal. Factor: " + String(cal_factor);
          disp_string[3] = "Pressure:" + String(pressure_value) + "PSI";
          display();
        }
        break;
    }
  }
  if (digitalRead(sw_dwn) == LOW) {
    delay(1000);
    switch (set_mode) {
      case 0:
        if (setvalue > min_pressure) {
          setvalue -= 1;
          delay(10);
          save_settings(set_mode, setvalue);
          disp_string[2] = "Set Pressure:" + String(setvalue) + "PSI";
          display();
        }
        break;

      case 2:
        if (cal_factor > 1) {
          cal_factor -= 1;
          delay(10);
          save_settings(set_mode, cal_factor);
          sensor_Value = analogRead(sensorPin);
          pressure_value = sensor_Value * (cal_factor / 100);
          disp_string[2] = "Cal. Factor: " + String(cal_factor);
          disp_string[3] = "Pressure: " + String(pressure_value) + "PSI";
          display();
        }
        break;
    }
  }


  if (digitalRead(sw_set) == LOW) {
    delay(1000);
    set_mode = 0;  //Pressure Setting
    disp_string[1] = "Pressure Setting..";
    display();
  }

  if (digitalRead(sw_ent) == LOW && digitalRead(sw_set) == HIGH) {
    delay(1000);
    set_mode = 1;  //Running
    lcd.clear();
  }

  if (digitalRead(sw_ent) == LOW && digitalRead(sw_set) == LOW) {
    delay(1000);
    set_mode = 2;  //Clibration
    lcd.clear();
    disp_string[1] = "Sensor Calibration";
    display();
  }
}

void standby() {
  digitalWrite(purge, LOW);
  digitalWrite(feed, LOW);
  lcd.clear();
  disp_string[1] = "Set Pres.:" + String(setvalue) + "PSI";
  disp_string[2] = "Press Enter";
  disp_string[3] = "To Start Inflating";
  display();
}

void display() {
  //lcd.clear();
  for (int i = 0; i < 4; i++) {
    lcd.setCursor(0, i);
    delay(1);
    lcd.print(disp_string[i]);
    Serial.println("L" + String(i) + ": " + disp_string[i]);
    delay(5);
  }
}

void save_settings(int address, int value) {
  EEPROM.write(address, value);
  EEPROM.update(address, value);
}

void load_settings(int address) {
  setvalue = EEPROM.read(address);
}


 Applications

  • Smart vehicle maintenance systems

  • Automated air filling stations

  • Portable digital tire inflator

  • Industrial pneumatic pressure control

  • DIY automotive electronics projects

This Arduino Automatic Tire Inflator System is ideal for automotive automation projects, embedded systems learning, and smart vehicle maintenance solutions.

 

IOT & SMART SYSTEM PROJECTS

  1. IoT Weather Monitoring System (NodeMCU ESP8266 + DHT11 + Rain Sensor)
  2. ESP8266 NodeMCU Smart Health & Environment Monitoring System with Pulse, Temperature and Motion Sensors
  3. ESP32 Wi-Fi Weight Sensor with HX711
  4. Smart RFID Access Control System Using ESP32 Dev Board and UHF RFID Reader Module
  5. Smart IoT Motor Control System Using ESP32 Dev Board and L298N Motor Driver Module
  6. Smart Waste Management System Using Arduino Nano, Ultrasonic Sensor & GSM Module – Solar Powered IoT Solution
  7. Raspberry Pi Zero W and GSM SIM900 Based Ultrasonic Distance Measurement System
  8. Arduino UNO Smart Surveillance System with ESP8266 WiFi, PIR Motion Sensor & Camera Module
  9. Arduino UNO Environmental Monitoring System with OLED & 16x2 I2C LCD Display
  10. Arduino UNO-Based Smart Home Automation System with Flame and IR Sensors 
  11. Arduino Nano-Based Landslide Detection System with GSM Alerts – Smart Disaster Monitoring Project
  12. Arduino Nano Rain-Sensing Stepper Motor System
  13. Arduino Based Automatic Tire Inflator Using Pressure Sensor, Relay Module and LCD Display
  14. Arduino-Based Automatic Cooker Using Servo Motors, DC Stirrer Motor, Temperature Sensor and Relay-Controlled Heater
  15. Arduino Sketch for Plastic Bottle and Can Reverse Vending Machine

 TRAFFIC & SMART CITY PROJECTS
  1. RFID-Based Smart Traffic Control System (Arduino Mega)
  2. Arduino UNO Traffic Light Control System – Smart LED Signal Project
  3.  Arduino UNO Controlled Traffic Light System with Joystick Interface

ROBOTICS PROJECTS
  1. Arduino UNO Smart Obstacle Avoiding Robot (Ultrasonic + IR + GSM)
  2. Arduino-Powered Autonomous Obstacle Avoidance Robot with Servo Control
  3. Arduino Nano Bluetooth Controlled Line Follower Robot Using L298N Motor Driver
  4. Arduino UNO Bluetooth Controlled 4WD Robot Car Using L298N Motor Driver
  5. Arduino UNO Multi-Sensor Obstacle Avoidance & Bluetooth Controlled Robot Car Using L298N
  6. Raspberry Pi Motor Control Robot (L298N + Li-ion)
  7. RC Car Simulation with L298N Motor Driver and Joystick Control using Arduino (CirkitDesign Simulation)
  8. Raspberry Pi Robotic Arm Control System with Camera Module and Motor Driver – Smart Automation & Vision-Based Robotics Project
  9. ESP32-Based 4WD Robot Car Using Dual L298N Motor Drivers – Circuit Diagram and IoT Control Project

LORA & WIRELESS COMMUNICATION PROJECTS
  1. Arduino LoRa Communication Project Using Adafruit RFM95W LoRa RadioArduino Nano with RFM95 SX1276 LoRa
  2. Arduino Nano with RFM95 LoRa SX1276 Module – Long Range Wireless Communication Project
  3. Arduino Nano Digital Clock Using DS3231 RTC and TM1637 4-Digit Display – Circuit Diagram and Project Guide

 LED, LIGHTING & DISPLAY PROJECTS
  1. Arduino UNO Controlled NeoPixel Ring Light Show
  2. Wi-Fi Controlled NeoPixel Ring (ESP8266)
  3. Chained NeoPixel Rings with Arduino – Addressable RGB LED Control Project
  4. Arduino Nano-Controlled Lighting System with Gesture and Sound Interaction
  5. Raspberry Pi GPIO Multi-LED Control System – Beginner-Friendly Embedded Electronics Project
  6. 4 Channel Relay Module with Arduino UNO

 SENSOR & DETECTION PROJECTS
  1. Arduino UNO Color Sensor + Proximity System (TCS3200 + Inductive)
  2. Arduino Color Detection Project Using Adafruit TCS34725 RGB Color Sensor
  3. Arduino Gas Leakage Detection and Safety Alert System Using MQ-2 Gas Sensor
  4. MQ-135 Air Quality Detector Using Arduino | Cirkit Designer Simulation Project
  5. Pulse Sensor Using Arduino – Complete Guide with Simulation 
  6. HX711 Load Sensor Demo Using Arduino | Digital Weight Measurement Project
  7. Track Time with DS1307 RTC and Display on Arduino Uno with 16x2 LCD | Cirkit Designer Project
  8. Parking Sensor Simulator using Arduino Uno and HC-SR04 Ultrasonic Sensor

 FUN & INTERACTIVE PROJECTS
  1. Pong Game with Arduino UNO and OLED Display – Project Explanation
  2.   Arduino UNO Bluetooth-Controlled Servo Motor System
  3. Arduino UNO-Based Interactive Touch and Distance Sensing System with LED Indicators and Servo Control

 INDUSTRIAL / AUTOMATION PROJECTS
  1. Arduino UNO Smart Waste Sorting System Using Ultrasonic Sensor, Moisture Sensor, Servo, Stepper Motor and LCD
  2. Arduino-Based Smart Waste Segregation System Using Metal, Plastic and Moisture Sensors with Stepper and Servo Control
  3. ESP32-Based Digital Weighing Scale Using 50kg Load Cell, HX711 Module and 16x2 LCD Display
  4. Arduino-Based Smart Toll Gate Automation System with RFID, GSM, Ultrasonic Sensor and LCD Display

  5. Arduino-Based Automatic Pill Dispenser Machine with LCD Display, Servo Motor and Buzzer Reminder

  6. Arduino UNO Smart Water Quality Monitoring System with pH Sensor, Turbidity Sensor and LCD Display

  7. Arduino-Based Ocean Cleaning Boat Robot with Dual IBT-2 Motor Drivers and Conveyor Belt System

  8. IoT-Based Accident Detection and Health Monitoring System Using Raspberry Pi with GSM, GPS and Camera Integration

  9. Raspberry Pi RFID and Keypad Based Smart Door Lock System with LCD Display and L298N Motor Driver

  10. Smart Shopping Trolley Using Arduino UNO & RFID | Automatic Billing System

  11. Arduino UNO Based Automatic Liquid Hand Sanitizer & Soap Dispenser System

  12. Arduino Based Robotic Weeding Machine with Ultrasonic Obstacle Detection and L298N Motor Driver

  13. Arduino UNO Based Biometric Electronic Voting System with LCD Display and Fingerprint Authentication

  14. Arduino UNO Based Electronic Voting System with ILI9341 TFT Display


Comments