Siddhant Kumar
Project 087 · Automotive

Tire Pressure Monitor.

Puts the true pressure of every tyre on a live dashboard and warns the moment one goes low — catching the slow leak before it becomes a blowout.

Intermediate 10–16 hours 28 min read TPMSWirelessSafety
Jump to source Bill of materials
Tire Pressure Monitor — reference build illustration MCU VCC · GND · SIG · NC
Difficulty
Intermediate
Build time
10–16 hours
Indicative cost
₹2,500 – ₹4,500
Platform
ESP32 DevKit V1 (ESP-WROOM-32)
Category
Automotive
Last updated
28 July 2026
Contents — 26 sections

Project Overview

Puts the true pressure of every tyre on a live dashboard and warns the moment one goes low — catching the slow leak before it becomes a blowout.

A tyre losing pressure is one of the most common and most dangerous faults on a vehicle, and the most invisible: a tyre can be dangerously under-inflated and look completely normal, and by the time a driver feels it in the steering the damage — uneven wear, overheating, a potential blowout at speed — is already being done. Under-inflation also quietly wastes fuel and shortens tyre life. This project builds a wireless tyre-pressure monitoring system (TPMS) that measures the actual pressure in every tyre and surfaces it live on a dashboard, warning the moment one drops — turning an invisible, gradual hazard into an obvious, early alert.

The system is inherently wireless, because the sensors ride on a spinning wheel and cannot be wired to the dash. Each tyre carries a small battery-powered sensor (on the valve stem or inside the tyre) that measures pressure — and usually temperature, since heat and pressure move together — and transmits it by radio to a receiver in the cabin. The receiver, built here around an ESP32, listens to all the wheel sensors, shows each tyre's pressure on a display, and alerts when any tyre falls below a safe threshold or when a fast pressure drop signals a rapid leak.

The value is early warning of exactly the fault drivers cannot otherwise see. A slow puncture is caught while it is still a top-up, not a blowout; a correctly-inflated set of tyres saves fuel and lasts longer; and a sudden loss is flagged immediately. It is honest that a real automotive TPMS is a safety-regulated system and that the wheel sensors, their batteries and their radio protocol are the hard part (this project focuses on the receiver, alerting and dashboard, working with TPMS sensor modules). But as a wireless per-tyre pressure monitor with low-pressure and rapid-leak alerting, it addresses a leading, invisible cause of tyre failure with exactly the live visibility a driver lacks.

The dashboard of a modern car
A wireless TPMS makes every tyre's true pressure visible and warns before a low or leaking tyre becomes a blowout. Photograph sourced from Wikimedia Commons — Car dashboard.jpg. Reused under the licence stated on that page; please check it before republishing.

What this project does

  • Receives wireless pressure (and temperature) from each wheel sensor
  • Shows every tyre's live pressure on a dashboard
  • Alerts on low pressure (below a safe threshold)
  • Alerts on a rapid pressure drop (fast leak/blowout risk)
  • Flags high tyre temperature
  • Turns an invisible, gradual hazard into an early warning
  • Helps save fuel and extend tyre life through correct inflation

Real-World Applications

SettingHow it is used
Everyday driving safetyEarly warning of a low or leaking tyre before it becomes a blowout.
Fleet / commercial vehiclesPer-tyre monitoring across many wheels to cut failures and fuel cost.
Caravans / trailersMonitoring tyres the driver cannot feel through the vehicle.
Fuel economy / tyre lifeKeeping every tyre correctly inflated for efficiency and wear.

Deployment contexts where a build of this kind earns its keep.

Features & Capabilities

  • Wireless per-tyre pressure + temperature sensing
  • Live dashboard of all four (or more) tyres
  • Low-pressure and rapid-leak alerting
  • High-temperature warning
  • Per-sensor battery/signal awareness
  • Configurable thresholds per axle/vehicle
  • Honest about safety-regulated TPMS and sensor/radio complexity

Difficulty, Time & Required Skills

AttributeValue
Difficulty levelIntermediate
Estimated completion time10–16 hours
Indicative build cost₹2,500 – ₹4,500
Primary disciplineAutomotive
Reference platformESP32 DevKit V1 (ESP-WROOM-32)

Skills you should have (or will pick up)

  • Wireless sensor reception (TPMS sensors / sub-GHz or BLE)
  • Pressure/temperature interpretation and thresholds
  • Rapid-drop (rate-of-change) leak detection
  • Dashboard display and alerting
  • Per-sensor health (battery/signal) handling

Bill of Materials

Every part below is commonly available from Indian and international hobby-electronics suppliers. Prices are indicative 2026 retail figures in Indian rupees and will drift — treat them as a budgeting guide, not a quotation.

ComponentKey specificationQtyApprox. cost
ESP32 DevKit V1 (ESP-WROOM-32)
Wi-Fi transmit bursts peak near 500 mA — size the regulator accordingly.
Dual-core Xtensa LX6 @ 240 MHz, 520 KB SRAM, 4 MB flash, Wi-Fi 802.11 b/g/n + BLE 4.2, 34 GPIO, 18× 12-bit ADC, 2× 8-bit DAC1₹450
2.4″ ILI9341 SPI TFT (240 × 320)
Backlight is most of the current — PWM it for battery builds.
262 K colour, 40 MHz SPI, optional resistive touch controller1₹750
Active piezo buzzer 5 V
Active buzzers make tone on DC; passive ones need a PWM carrier.
85 dB at 10 cm, 2.3 kHz resonance, 12 mm diameter1₹25
18650 Li-ion cell 3400 mAh + holder
Never charge below 0 °C; always use a protected cell or a BMS.
3.7 V nominal, 4.2 V full, 3400 mAh, ~12.6 Wh, 2 C discharge1₹450
TP4056 Li-ion charger + DW01 protection
Buy the version *with* protection ICs — the bare charger will over-discharge your cell.
1 A programmable CC/CV charge to 4.2 V ±1 %, over-discharge and short protection1₹45
TPMS wheel sensors
Transmit by radio; the hard, safety-relevant part
Battery-powered pressure+temperature sensors, one per tyre (valve-stem or internal)4₹8,000
TPMS receiver front-endSub-GHz/BLE receiver matched to the sensors1₹400
Dashboard mountIn-cabin mount for the display1₹200
Vehicle power tap12 V → 5 V, ignition-switched1₹200

Estimated total: ₹10,520, excluding tools, shipping and consumables.

Tools and consumables

  • Soldering iron (temperature controlled, 350 °C) with 0.8 mm 60/40 or lead-free solder
  • Digital multimeter — continuity, DC volts and current ranges
  • Wire strippers, flush cutters and a small set of precision screwdrivers
  • Heat-shrink tubing and a heat gun (or a lighter, carefully)
  • A laptop with a USB port and the toolchain listed above

Hardware Specifications

PartSpecificationSupplyInterfaceReference
ESP32 DevKit V1 (ESP-WROOM-32)Dual-core Xtensa LX6 @ 240 MHz, 520 KB SRAM, 4 MB flash, Wi-Fi 802.11 b/g/n + BLE 4.2, 34 GPIO, 18× 12-bit ADC, 2× 8-bit DAC3.3 V logic / 5 V USBUART, SPI, I²C, I²S, CAN, PWMDatasheet
2.4″ ILI9341 SPI TFT (240 × 320)262 K colour, 40 MHz SPI, optional resistive touch controller3.3 VSPIDatasheet
Active piezo buzzer 5 V85 dB at 10 cm, 2.3 kHz resonance, 12 mm diameter3–5 VDigital / PWMDatasheet
18650 Li-ion cell 3400 mAh + holder3.7 V nominal, 4.2 V full, 3400 mAh, ~12.6 Wh, 2 C discharge3.0–4.2 VHolder / spot-welded tabsDatasheet
TP4056 Li-ion charger + DW01 protection1 A programmable CC/CV charge to 4.2 V ±1 %, over-discharge and short protection4.5–5.5 V inmicro-USB / padsDatasheet

Consolidated electrical and interface specifications for every active part in the build.

Power Budget & Supply Sizing

Add up the typical active current of every part, then size the supply with at least 50 % headroom so transmit bursts and motor inrush never brown out the controller.

LoadSupply railTypical current (mA)Notes
ESP32 DevKit V1 (ESP-WROOM-32)3.3 V logic / 5 V USB160Wi-Fi transmit bursts peak near 500 mA — size the regulator accordingly.
2.4″ ILI9341 SPI TFT (240 × 320)3.3 V90Backlight is most of the current — PWM it for battery builds.
Active piezo buzzer 5 V3–5 V30Active buzzers make tone on DC; passive ones need a PWM carrier.
TP4056 Li-ion charger + DW01 protection4.5–5.5 V in1000Buy the version *with* protection ICs — the bare charger will over-discharge your cell.

Summed typical draw is 1280 mA. With a 1.5× design margin the supply should deliver at least 2000 mA continuously at the stated rail voltage.

Software Requirements & Development Environment

Reference toolchain: Arduino IDE 2.3.x with the ESP32 board package 3.x (or PlatformIO on VS Code). Anything newer normally works; anything older may lack the board definitions used here.

  • Install the Arduino IDE 2.3.x (or PlatformIO if you prefer a real editor and dependency locking).
  • Add https://espressif.github.io/arduino-esp32/package_esp32_index.json under File → Preferences → Additional Board Manager URLs, then install esp32 from the Boards Manager.
  • Set the correct port under Tools → Port. On Linux add yourself to the dialout group: sudo usermod -aG dialout $USER and log out and back in.
  • Open the Serial Monitor at 115200 baud — every sketch here logs its state there.
  • Keep File → Preferences → Show verbose output during: compilation switched on while you are debugging build errors.

Required libraries

LibraryWhy it is neededInstall
WiFi (ESP32 core) bundledStation/AP connection management for the ESP32.Bundled with the ESP32 Arduino core
tft
Preferences (NVS) bundledWear-levelled key/value storage in ESP32 flash for settings.Bundled with the ESP32 core
ArduinoJson 7.xZero-allocation JSON serialisation and parsing.Library Manager → "ArduinoJson" by Benoit Blanchon
NTPClient / configTime bundledWall-clock time from an NTP server for timestamping.Bundled (`configTime()` on ESP32)

Block Diagram

The block diagram shows the functional decomposition of the system — what senses, what decides, what acts, and where the data ends up.

Tire Pressure Monitor — system block diagramFunctional block diagram of the Tire Pressure Monitor system. Each wheelTPMS sensorpressure+tempRadio TXwirelessReceiveReceiverall wheelsESP32map to positionJudgeLow?thresholdRapid drop?leakShow + warnDashboardper tyreAlertbuzzer/LEDrightrightnone
Tire Pressure Monitor — system block diagram

Circuit Diagram & Wiring

Every signal line in the build is shown below, followed by a pin-by-pin connection table you can work through with a multimeter in hand.

Tire Pressure Monitor — wiring schematicConnection schematic showing which controller pin drives each peripheral. Sensors / InputsControllerActuators / OutputsESP32 DevKit V1(ESP-WROOM-32)3.3 V logic / 5 V USBTPMS receiverGPIO 16/17Wheel-sensor packetsTFT displayGPIO 18/23/5DashboardBuzzerGPIO 25Low/leak alertWarning LEDGPIO 26AlertVehicle 5V5VIgnition powerBackup Li-ionBATRide-through
Tire Pressure Monitor — wiring schematic
PeripheralPeripheral pinController pinSignal
TPMS receiverDATA/UARTGPIO 16/17Wheel-sensor packets
TFT displaySPIGPIO 18/23/5Dashboard
BuzzerINGPIO 25Low/leak alert
Warning LEDINGPIO 26Alert
Vehicle 5VVIN5VIgnition power
Backup Li-ion+BATRide-through

Wire one row at a time and tick it off — most "it does not work" reports trace back to a single swapped pair.

Wiring explanation

  • Wheel sensors are wireless — you receive their radio packets; you do not wire to the wheels.
  • Match the receiver front-end to the sensors' protocol (sub-GHz or BLE) and pairing/IDs.
  • Drive a display for the live per-tyre dashboard and a buzzer/LED for alerts.
  • Power from ignition-switched 12 V via a regulator; a small backup cell rides through cranks.
  • Map each sensor ID to its wheel position (front-left, etc.) during pairing.
An ESP32 development board with the ESP-WROOM-32 module and USB connector
The ESP32 receiver listens to per-wheel sensors and maps each to its position for named alerts. Photograph sourced from Wikimedia Commons — ESP32 Espressif ESP-WROOM-32 Dev Board.jpg. Reused under the licence stated on that page; please check it before republishing.

System Architecture

Read the stack from the bottom up: physical hardware, the firmware that drives it, the transport that moves data off the device, and the software a human actually looks at.

Tire Pressure Monitor — architecture stackLayered architecture from hardware to user interface. Hardware layerESP32 DevKit V1 (ESP-WROOM-32) · sensors and actuatorsDriver layerwifi · tft · preferences · arduinojsonApplication logicsampling loop · filtering · thresholds · state machineTransport layerWireless wheel sensors → in-cabin receiver (optional cloud) · TLS · retryand backoffPresentation layerdashboard · mobile notifications · historical charts
Tire Pressure Monitor — architecture stack

Working Principle

The problem TPMS solves is one of invisibility. Tyre pressure cannot be judged by eye — a radial tyre can lose a large fraction of its pressure and still look inflated — so drivers routinely run under-inflated without knowing. Under-inflation flexes the sidewall more, which builds heat, which is what actually destroys a tyre: overheating leads to tread separation and blowouts, and blowouts at speed cause loss of control. It also increases rolling resistance (wasting fuel) and causes uneven wear (shortening tyre life). A monitor that simply makes the real pressure visible, continuously, removes the invisibility that makes the hazard so dangerous.

Because the sensors live on rotating wheels, the system is fundamentally wireless. Each wheel carries a self-contained sensor — a pressure transducer, usually a temperature sensor, a small battery, and a radio — that periodically transmits its reading. Direct TPMS (per-wheel sensors) is what gives a true reading of each individual tyre; the receiver's job is to listen to all of them, associate each sensor's unique ID with its wheel position, and present the fleet of readings coherently. This is why pairing/learning sensor IDs to positions is a core part of setup.

The receiver turns readings into two kinds of alert, because two different failures matter. The first is an absolute low threshold: any tyre below the vehicle's recommended pressure (with a margin) is flagged — this catches the slow leak and chronic under-inflation. The second is a rapid rate of change: a pressure that is falling fast signals an active leak or an imminent blowout, and deserves an immediate, louder warning even before it crosses the absolute threshold. Watching both the level and the slope of pressure is what separates a useful safety device from a gauge. Temperature is monitored alongside because an overheating tyre is itself a danger sign.

The design is honest about scope and safety. A production automotive TPMS is a safety-regulated system (mandated on many vehicles) with certified sensors, robust radio protocols, and integration into the vehicle — and the genuinely hard, safety-relevant engineering is in the wheel sensors: their pressure accuracy, battery life over years, sealing, balancing, and interference-resistant radio. This project focuses on the receiver, alerting logic and dashboard, working with existing TPMS sensor modules rather than reinventing the certified wheel unit. Within that honest frame, it delivers the core safety value: continuous, per-tyre visibility and early warning of both slow leaks and fast failures — exactly the information a driver cannot otherwise obtain about one of the most common causes of serious tyre failure.

The maths behind it

Low-pressure alert

plainLow-pressure alert
For each tyre i with recommended pressure P_rec:

  low if  P_i < P_rec × (1 − m)     (e.g. m = 0.20 → 20% low)

Catches slow leaks and chronic under-inflation before damage.

Rapid-leak (rate) alert

plainRapid-leak (rate) alert
Track pressure slope over a short window:

  dP/dt = (P_now − P_prev) / Δt
  fast-leak if  dP/dt < −R_leak   (falling quickly)

Warns of an active leak/blowout even before the absolute
threshold is crossed.

Temperature / heat check

plainTemperature / heat check
Heat destroys under-inflated tyres:

  high if  T_i > T_max

Rising temperature with falling pressure is a strong danger
sign — flag it prominently.

Program Flowchart

The firmware is a single cooperative loop. Nothing blocks for long, so networking, sensing and the user interface all stay responsive.

Tire Pressure Monitor — firmware flowchartControl flow through the main program loop. Receive per-wheelpressure/tempMap sensor → wheel positionBelow low threshold?Low-pressure alertCheck rate of changeLow-pressure alertCheck rate of changeRapid drop?Fast-leak alertUpdate dashboardFast-leak alertUpdate dashboard
Tire Pressure Monitor — firmware flowchart

Assembly Instructions

Build on a breadboard first and only commit to solder once the whole system has run for an hour without a fault.

  1. Pair the wheel sensors

    Fit or use TPMS sensors on each tyre and pair their IDs to wheel positions (front-left, front-right, rear-left, rear-right) in the receiver.

    Set each tyre's recommended pressure per the vehicle placard.

  2. Build the receiver + dashboard

    Wire the receiver front-end, display and buzzer/LED to the ESP32; power from ignition-switched 12 V via a regulator with a small backup cell.

  3. Set thresholds and alerts

    Configure the low-pressure margin, rapid-drop rate, and high-temperature limit; verify alerts fire clearly.

Step-by-Step Implementation Guide

Work through these in order. Each step ends in something you can observe, so a failure is always localised to the step you just finished.

  1. Receive, map and judge each tyre

    Receive each sensor's pressure/temperature, map it to a wheel position, and flag low pressure, a rapid drop, or high temperature.

    cpptpms.ino
    struct Tyre { float p, t, pPrev; uint32_t tPrev; };
    Tyre tyre[4];                       // FL, FR, RL, RR
    
    const float P_REC = 2.2f;           // bar, recommended
    const float LOW_MARGIN = 0.20f;     // 20% low
    const float R_LEAK = 0.15f;         // bar/sec rapid drop
    const float T_MAX  = 85.0f;         // degC
    
    int alertsFor(int i){
      Tyre& y = tyre[i];
      int a = 0;
      if (y.p < P_REC * (1 - LOW_MARGIN)) a |= 1;      // low pressure
      float dt = (millis() - y.tPrev) / 1000.0f;
      if (dt > 0 && (y.p - y.pPrev)/dt < -R_LEAK) a |= 2; // fast leak
      if (y.t > T_MAX) a |= 4;                         // hot
      y.pPrev = y.p; y.tPrev = millis();
      return a;                                        // bitmask of alerts
    }
    Tyre tyre[4]; // FL, FR, RL, RREach sensor is mapped to a wheel position so an alert names the actual tyre — the driver knows which one to check.
    if (y.p < P_REC * (1 - LOW_MARGIN)) a |= 1; // low pressureThe absolute low-threshold check catches the slow leak and chronic under-inflation that are invisible by eye.
    if (dt > 0 && (y.p - y.pPrev)/dt < -R_LEAK) a |= 2; // fast leakThe rate-of-change check flags an active fast leak or blowout risk even before the absolute threshold is crossed.
    if (y.t > T_MAX) a |= 4; // hotA hot tyre — often the consequence of under-inflation — is itself a danger sign and flagged.
  2. Display and alert

    Show all tyres' live pressures/temperatures and raise a clear, escalating alert (louder/faster for a rapid leak) that names the affected wheel.

Complete Source Code

The listing below is complete and compiles as written — there are no elided sections. Read the annotations under each block before you upload it.

cpptpms-receiver.ino
/* ═══════════════════════════════════════════════════════════════
   Tyre-Pressure Monitor (TPMS) — ESP32 receiver + dashboard

   Receives wireless pressure/temperature from per-wheel sensors,
   maps each to a wheel position, and alerts on low pressure, a rapid
   drop (fast leak) or high temperature. Live per-tyre dashboard.
   ══════════════════════════════════════════════════════════════════ */

#include <Preferences.h>

struct Tyre { uint32_t id; float p, t, pPrev; uint32_t tPrev; bool seen; };
Tyre tyre[4];                              // FL, FR, RL, RR
const char* POS[4] = {"FL","FR","RL","RR"};

const float P_REC = 2.2f;                  // recommended, bar
const float LOW_MARGIN = 0.20f;
const float R_LEAK = 0.15f;                // bar/sec
const float T_MAX  = 85.0f;
const uint32_t STALE_MS = 300000;          // 5 min without a packet

int wheelOf(uint32_t id){                  // sensor ID -> paired position
  for (int i=0;i<4;i++) if (tyre[i].id==id) return i;
  return -1;
}

int judge(int i){
  Tyre& y = tyre[i]; int a = 0;
  if (y.p < P_REC*(1-LOW_MARGIN)) a |= 1;                 // low
  float dt = (millis()-y.tPrev)/1000.0f;
  if (dt>0 && (y.p-y.pPrev)/dt < -R_LEAK) a |= 2;         // fast leak
  if (y.t > T_MAX) a |= 4;                                // hot
  y.pPrev = y.p; y.tPrev = millis();
  return a;
}

void onPacket(uint32_t id, float p, float t){
  int i = wheelOf(id);
  if (i < 0) return;                       // unknown/other vehicle
  tyre[i].p = p; tyre[i].t = t; tyre[i].seen = true;
  int a = judge(i);
  drawTyre(i, p, t, a);                     // update dashboard cell
  if (a & 2) alert(URGENT, POS[i], "FAST LEAK");
  else if (a & 1) alert(WARN, POS[i], "LOW");
  else if (a & 4) alert(WARN, POS[i], "HOT");
}

void checkStale(){
  for (int i=0;i<4;i++)
    if (tyre[i].seen && millis()-tyre[i].tPrev > STALE_MS)
      alert(WARN, POS[i], "NO SIGNAL");     // sensor battery/fault
}

void setup(){
  Serial.begin(115200);
  loadPairing(tyre);                        // sensor IDs <-> positions
  receiverInit(onPacket);                   // sub-GHz/BLE front-end
  displayInit();
}

void loop(){
  receiverPoll();                           // dispatches onPacket()
  checkStale();
  delay(200);
}
int wheelOf(uint32_t id){ // sensor ID -> paired positionEach wireless sensor is identified by ID and mapped to its wheel position, so alerts and the dashboard name the actual tyre.
if (y.p < P_REC*(1-LOW_MARGIN)) a |= 1; // lowThe absolute threshold catches slow leaks and chronic under-inflation — the invisible, gradual hazard.
if (dt>0 && (y.p-y.pPrev)/dt < -R_LEAK) a |= 2; // fast leakThe rate check flags a fast leak/blowout risk immediately, escalated above a mere low warning.
if (i < 0) return; // unknown/other vehicleOnly paired sensors are accepted, so a passing vehicle's TPMS packets are ignored.
if (tyre[i].seen && millis()-tyre[i].tPrev > STALE_MS)A sensor that goes silent (dead battery/fault) is flagged, since a missing tyre reading is itself a problem.

Configuration & Calibration

Configuration steps

  • Pair each sensor ID to a wheel position and set the recommended pressure per axle.
  • Configure the low-pressure margin, rapid-drop rate and high-temperature limit.
  • Configure alert escalation (gentle for low, urgent for fast leak).
  • Configure stale-sensor (no-signal/battery) handling.

Calibration procedure

An uncalibrated sensor produces confident, precise, wrong numbers. Do this once per physical unit and record the constants.

  1. Pressure accuracy

    Cross-check sensor readings against a known-good gauge at a couple of pressures.

  2. Thresholds

    Set the low margin and rapid-drop rate so real problems alert without nuisance warnings from normal temperature-driven pressure changes.

  3. Pairing/position

    Confirm each alert names the correct wheel by deliberately deflating one tyre slightly.

Network Architecture & Connectivity

Tire Pressure Monitor — network topologyPath taken by telemetry from field node to end user. Edge nodesGatewayCloudClientsWheel sensorsx4, wirelessReceiverESP32Sub-GHz/BLEESP32in cabinWi-Fi/cellularFleet TPMS (optional)per-vehicle tyresDriverdashboardFleettyre health
Tire Pressure Monitor — network topology

Communication protocol

Wheel sensors broadcast pressure/temperature to the in-cabin receiver; for fleets the receiver can forward per-tyre status to a platform.

Topic / endpointDirectionPayload
tpms/<veh>/tyre/<pos>receiver → platformpressure, temperature, state
tpms/<veh>/alertreceiver → fleetlow / fast-leak / hot / no-signal

Message contract between the device and the broker.

Cloud platform configuration

For fleets, a platform tracks every tyre across every vehicle so under-inflation and leaks are managed before failures.

Dashboard setup

A per-vehicle tyre view with pressures, temperatures and alerts; a fleet roll-up of tyre health.

Mobile app integration

Low-pressure and fast-leak alerts naming the vehicle and wheel.

Security considerations

  • Accept only paired sensor IDs; ignore foreign/spoof packets.
  • Alerting is local and immediate; cloud is optional for fleets.
  • Tyre data is low-sensitivity but per-vehicle — secure fleet uploads.

Testing Procedure & Expected Output

Test from the bottom up. Confirm power, then each sensor in isolation, then the integrated loop — the first failing step tells you exactly where to look.

TestWhat you should see
Deflate one tyre below thresholdCorrect wheel flagged LOW
Release air quicklyFAST LEAK (urgent) on that wheel
Heat a tyre (or simulate)HOT warning
Remove a sensorNO SIGNAL for that position
Normal driving warm-upPressure rises with temp — no false low alert
Park near another TPMS vehicleForeign sensors ignored

Bench-test checklist. If a row fails, stop and fix it before moving on.

Expected output

A live dashboard of every tyre's pressure and temperature, with clear low/fast-leak/hot alerts naming the affected wheel.

jsontpms-status.json
{
  "FL": { "bar": 2.2, "degC": 34, "state": "ok" },
  "FR": { "bar": 2.2, "degC": 35, "state": "ok" },
  "RL": { "bar": 1.6, "degC": 48, "state": "LOW+HOT" },
  "RR": { "bar": 2.1, "degC": 36, "state": "ok" }
}

Rear-left is low and running hot — flagged early, before the under-inflation could overheat the tyre into a blowout; the other three read normal.

An 18650 lithium-ion cell
Each wheel sensor is a small battery-powered radio unit — the safety-relevant, precision part of the system. Photograph sourced from Wikimedia Commons — 18650 Li-ion battery.jpg. Reused under the licence stated on that page; please check it before republishing.

Troubleshooting: Common Errors & Fixes

No readings from a wheel

Likely cause. Sensor battery/pairing/range

Fix. Re-pair; check sensor battery; verify receiver front-end matches the sensor protocol

Alerts on the wrong wheel

Likely cause. Position mapping

Fix. Re-pair sensor IDs to positions; verify by deflating one tyre

Nuisance low alerts when cold

Likely cause. Threshold vs temperature effect

Fix. Account for cold vs warm pressure; set thresholds sensibly

Foreign sensors show up

Likely cause. Accepting unpaired IDs

Fix. Only accept paired sensor IDs

Missed fast leak

Likely cause. No rate check / slow update

Fix. Add rate-of-change detection; ensure timely packets

The sketch will not upload — "Failed to connect" or "avrdude: stk500_recv()"

Likely cause. The bootloader is not being reached: wrong port, wrong board, a serial monitor holding the port open, or a USB cable that only carries power.

Fix. Close every serial monitor, confirm Tools → Board and Port, and swap to a known data-capable USB cable. On an ESP32 hold BOOT while the IDE prints "Connecting…", then release. If a peripheral is wired to the UART pins (GPIO 1/3 on ESP32, D0/D1 on Uno) unplug it — it fights the programmer.

The board resets in a loop, or the serial monitor prints "Brownout detector was triggered"

Likely cause. The supply cannot deliver peak current. Wi-Fi transmit bursts, relay coils and servos all pull far more than their average draw.

Fix. Power peripherals from a separate regulated supply with a common ground rather than from the board 5 V pin. Add a 470–1000 µF electrolytic capacitor across the supply near the load, and use a real power adapter rather than a laptop USB port.

Serial monitor shows garbage characters

Likely cause. Baud rate mismatch between Serial.begin() and the monitor, or a floating/shared UART line.

Fix. Set the monitor to 115200 to match the sketch. If it still garbles, the crystal or the USB bridge is being confused by noise — shorten the cable and keep motor wiring away from the USB lead.

Wi-Fi connects but MQTT never does (state -2)

Likely cause. Wrong broker address or port, a firewall in the way, or the broker requiring credentials the sketch is not sending.

Fix. Test from a laptop on the same network first: mosquitto_sub -h <broker> -t "#" -v. If that works, the problem is on the device — check the IP literal, port 1883 (or 8883 for TLS), and that client.setServer() runs before connect(). PubSubClient state codes are documented in its header.

Readings arrive for a while and then stop

Likely cause. The Wi-Fi or MQTT session dropped and the sketch never reconnects, or the broker dropped the client on keep-alive timeout.

Fix. Never assume the link stays up. Check WiFi.status() and client.connected() at the top of every loop and reconnect with exponential backoff. Add a watchdog so a wedged network stack reboots the device instead of going silent.

Performance Optimisation

  • Judge both absolute pressure and its rate of change for slow and fast leaks.
  • Map every sensor to a position so alerts name the wheel.
  • Flag stale sensors (battery/fault) as a real condition.
  • Escalate urgency: fast leak louder than a low warning.
  • Replace every delay() with a millis() comparison — blocking delays are the single most common cause of dropped readings.
  • Sample sensors on a fixed cadence and publish on a slower one; you almost never need to transmit at the sampling rate.
  • Move networking into its own FreeRTOS task so a slow DNS lookup cannot stall the control loop.
  • Use uint8_t / uint16_t where the range allows; on an 8-bit AVR a 32-bit add costs four times as much.
  • Batch several samples into one MQTT publish. Radio time, not CPU time, dominates the energy budget.
  • Set the MQTT keep-alive to a value that matches your reporting interval so the broker does not churn reconnections.
  • For battery builds use deep sleep between samples: an ESP32 drops from ~160 mA awake to about 10 µA asleep, which is the difference between days and months of runtime.

Safety Precautions

  • This aids the driver; a production automotive TPMS is a safety-regulated system — treat this as a monitor, not a certified replacement.
  • Fit wheel sensors correctly and re-balance wheels as needed; a poorly fitted sensor is a hazard.
  • Do not let the display distract driving; alerts should be glanceable/audible.
  • Correct inflation is a safety and fuel matter — act on low readings promptly.
  • Lithium cells vent and burn when abused. Only use protected cells or a proper BMS, never charge below 0 °C, and never leave a charging pack unattended on a wooden desk.
  • Wear eye protection when soldering or cutting, and solder in a ventilated space — rosin flux fumes are a respiratory irritant.
  • Power the circuit through a bench supply with a current limit while you are testing. A 300 mA limit turns a wiring mistake into a beep instead of a dead board.
  • Disconnect power before changing any wiring. Hot-plugging a sensor onto a live bus is the fastest way to lose a controller.

Maintenance

  • Replace wheel-sensor batteries before they die; act on no-signal flags.
  • Re-verify pressure accuracy periodically against a gauge.
  • Re-pair positions after tyre rotation.
  • Keep recommended pressures updated for load/vehicle.
  • Re-check every screw terminal and header after the first week — thermal cycling loosens connections that felt tight on day one.
  • Log pack voltage. When resting voltage after a full charge drops below about 4.0 V, the cell is near end of life — replace it.
  • Keep the broker and dashboard containers patched, and rotate device credentials at least once a year.
  • Recalibrate at the interval given in the calibration section, and keep the constants in a text file next to the firmware — not only in flash.
  • Keep a short logbook of firmware versions and what changed. Six months later you will not remember why that constant is 1.083.

Future Improvements & Upgrades

A working v1 is a platform, not a finish line. These are the upgrades that add the most capability for the least rework.

  • Add automatic tyre-rotation-aware position learning.
  • Add temperature-compensated pressure (cold-equivalent).
  • Add fleet trend analytics (slow-leak detection over days).
  • Add tread-wear estimation from long-term pressure/temperature.
  • Design a proper PCB. Once the breadboard version has run for a month, moving to a two-layer board removes the intermittent-contact failures that dominate prototype faults.
  • Add over-the-air firmware updates so you never have to physically reach a deployed node again.
  • Add persistent local storage (microSD or the on-chip flash) so a network outage does not create a hole in your data.
  • Move configuration out of the source: a captive-portal setup page or a JSON config file makes the build reusable without a recompile.
  • Add a battery and solar option so the unit survives a power cut and can be sited away from a socket.
  • Write a small test harness that feeds synthetic sensor values through the decision logic, so you can validate thresholds without physically triggering the event.

Frequently Asked Questions

Why not just check tyres by eye?

Because a dangerously under-inflated tyre looks normal — a radial can lose a large fraction of its pressure with no visible sag. Pressure is invisible, which is exactly why continuous measurement matters.

Why does it need to be wireless?

The sensors ride on spinning wheels and cannot be wired to the dashboard, so each is a self-contained, battery-powered radio transmitter that the cabin receiver listens to.

Why two kinds of alert?

A slow leak needs an absolute low-pressure threshold; a fast leak or blowout risk needs a rate-of-change check that fires immediately. Watching both the level and the slope catches both failure modes.

Why monitor temperature too?

Heat is what actually destroys an under-inflated tyre — the flexing sidewall overheats and can separate. A hot tyre, especially with falling pressure, is a strong danger sign.

Is this a real automotive TPMS?

It provides the core value — per-tyre visibility and early warning — but a production TPMS is a safety-regulated system with certified sensors. The genuinely hard, safety-relevant part is the wheel sensor; this project focuses on the receiver, alerting and dashboard.

References & Learning Resources

These are the primary sources worth reading in full. Manufacturer datasheets always outrank forum posts when the two disagree.

  1. Tyre-pressure monitoring systemReference
  2. Tyre safety and under-inflationReference
  3. Blowout / tread separationReference
  4. ESP32Espressif
  5. Rolling resistance and fuel economyReference