Build it step by step
0 of 6 doneSet the buck module
Connect 12 V to the LM2596 and turn its trimmer until the output reads 5.0 V on a multimeter.
Wire the electronics
Fuse then LM2596, Nano 5V and GND, MAX6675, LCD and buzzer.
Test on the bench
Hold the probe tip in your hand or in hot water. The reading follows.
Choose the limit
Check the engine's maximum normal temperature in its manual and set LIMIT_C below it.
Fit the probe
Clamp or bolt the tip to the cylinder head or block, and run the wire clear of hot and moving parts.
Mount the box
Put it where you can hear the buzzer and keep it out of oil and heat.
How do you build an engine temperature alarm?
A thermocouple on an engine or generator sounds an alarm when it runs too hot. You need Arduino Nano, MAX6675 thermocouple module with K-type probe, 16x2 LCD with I2C backpack (PCF8574), Active buzzer 5 V, LM2596 Buck Module, Fuse 1 A glass (5 × 20 mm), Fuse holder (panel, 5 × 20 mm) and Jumper wires male to male (40 pcs, 20 cm). It takes 6 steps and about 90 minutes.
- Level
- Beginner
- Time
- About 90 min
- Parts
- 8
Wiring
| From | To | Why |
|---|---|---|
| Vehicle or battery + (12 V) | 1 A fuse, then LM2596 IN+ | Fused supply |
| Vehicle or battery - | LM2596 IN- and ground | Ground |
| LM2596 OUT+ (set to 5.0 V first) | Nano 5V pin | Regulated supply |
| LM2596 OUT- | Nano GND | Ground |
| MAX6675 VCC and GND | Nano 5V and GND | Supply |
| MAX6675 SCK | Nano D6 | Clock |
| MAX6675 CS | Nano D5 | Chip select |
| MAX6675 SO | Nano D4 | Data out |
| LCD SDA and SCL | Nano A4 and A5 | Display |
| Buzzer + and - | Nano D8 and GND | Alarm |
Code
Arduino IDE, board "Arduino Nano" (processor ATmega328P, or ATmega328P (Old Bootloader) for clones). Install "MAX6675 library" by Adafruit. The K-type probe is rated far above engine temperatures, but its wires must be clipped away from exhaust. Set the LM2596 output to exactly 5.0 V on a multimeter before connecting the Nano, because vehicle supplies spike and sag. This is an indicator and should not replace the engine's own protection.
Runs on a virtual Arduino Nano in your browser, with sliders for the sensors. Happy with it? Verify and upload to your real board from the same page (Chrome or Edge on a computer).
#include <max6675.h>
#include <Wire.h>
#include <LiquidCrystal_I2C.h>
MAX6675 thermocouple(6, 5, 4); // SCK, CS, SO
LiquidCrystal_I2C lcd(0x27, 16, 2);
const byte BUZZ = 8;
const float LIMIT_C = 110.0; // set from your engine's manual
float peak = 0;
void setup() {
pinMode(BUZZ, OUTPUT);
lcd.init(); lcd.backlight();
delay(500); // let the MAX6675 settle
}
void loop() {
float t = thermocouple.readCelsius();
if (!isnan(t)) {
if (t > peak) peak = t;
lcd.setCursor(0, 0); lcd.print("Temp "); lcd.print(t, 0); lcd.print(" C ");
lcd.setCursor(0, 1); lcd.print("Peak "); lcd.print(peak, 0); lcd.print(" C ");
digitalWrite(BUZZ, t > LIMIT_C ? (millis() / 300) % 2 : LOW);
} else {
lcd.setCursor(0, 0); lcd.print("Probe error ");
digitalWrite(BUZZ, LOW);
}
delay(1000); // the MAX6675 converts about 4 times a second
}Test checklist
What you should see at each check. If a reading is far off, stop and use the troubleshooting list.
| Check | Expected |
|---|---|
| Probe in hot water at 80 °C | Reads close to the water temperature |
| Reading above the limit | Buzzer pulses |
| Peak line | Holds the highest value |
| Unplug the probe | Shows Probe error |
If it does not work
Reading is always 0 or NaN
The probe is not connected or wired backwards at the module.
Reading jumps around
Electrical noise from the engine. Shield or twist the probe wires and add 100 µF on the 5 V rail.
LCD blank
Check the address 0x27 or 0x3F and contrast trimmer.
Nano resets when the engine cranks
The supply sags. Add a 470 µF capacitor at the buck input.
Still stuck? Find the fault step by step with your multimeter →
Common questions
What parts do I need for the engine temperature alarm?
Arduino Nano, MAX6675 thermocouple module with K-type probe, 16x2 LCD with I2C backpack (PCF8574), Active buzzer 5 V, LM2596 Buck Module, Fuse 1 A glass (5 × 20 mm), Fuse holder (panel, 5 × 20 mm) and Jumper wires male to male (40 pcs, 20 cm).
How long does the engine temperature alarm take to build?
About 90 minutes for a beginner maker, in 6 steps.
How do I know the engine temperature alarm works?
Probe in hot water at 80 °C: Reads close to the water temperature. Reading above the limit: Buzzer pulses. Peak line: Holds the highest value.
Reading is always 0 or NaN: what should I check?
The probe is not connected or wired backwards at the module.
Reading jumps around: what should I check?
Electrical noise from the engine. Shield or twist the probe wires and add 100 µF on the 5 V rail.
LCD blank: what should I check?
Check the address 0x27 or 0x3F and contrast trimmer.
Nano resets when the engine cranks: what should I check?
The supply sags. Add a 470 µF capacitor at the buck input.
