Diodo como sensor de temperatura
An ordinary 1N4148 measuring temperature, with linear regression of the readings
- Electronics
- Data
- Year
- 2026
- Context
- Signal Processing course — Fundação Liberato
- Team
- Maurício Gedrat, Leonardo Kohn
Illustrative background photo: Michael Dziedzic / Unsplash
Overview
A diode's voltage changes with temperature. We amplified that change and measured both heating and cooling.
The problem
Use a cheap, ordinary part as a sensor, and find out whether its response is linear enough to be useful.
The approach
- 01Inverting amplifier with an LM324 and a gain of 10, on ±12 V. The gain was checked by swapping the diode for a 10 kΩ potentiometer.
- 02Readings during heating and cooling, with linear regression and Pearson correlation.
How the system works
- 01
1N4148
sensor
- 02
LM324
inverting ×10
- 03
Spreadsheet
regression
Result
Almost perfectly linear response: ρ = 0.9988 when heating and ρ = 0.9993 when cooling.
- 21.72 mV/°C
- slope while heating
- 19.85 mV/°C
- slope while cooling
Technologies
- 1N4148
- LM324
- Regression
- Excel