Basics · 10 min read

How to Read a Datasheet: Absolute Max Ratings, Pinout, Timing

How to read a datasheet: absolute maximum ratings, operating conditions, min/typ/max, pins and timing diagrams, with DHT22, 7805 and MOSFET examples.

Knowing how to read a datasheet answers the most important question in electronics: "will this part burn out, or will it work?" A datasheet is the official technical document a manufacturer publishes for a component: it tells you what voltage it runs at, how much current it draws or can supply, what its pins do, how it communicates and which circuit it should be used with. Example code and videos online can be wrong, but the datasheet gives the values guaranteed by the people who designed the part.

In this article you'll learn the sections of a datasheet in order: absolute maximum ratings, recommended operating conditions, electrical characteristics and the min, typ and max columns, pin descriptions, timing diagrams and the typical application circuit. Then you'll read real values from the datasheets of the DHT22, the 7805 voltage regulator and the IRLZ44N MOSFET and calculate with them, see which documents to read for Arduino, ESP32 and RP2040, and find the most common misunderstandings in a single table.

What is a datasheet and where do you find it?

The safest way to find a part's datasheet is to search for its full part number (for example "L7805CV" or "IRLZ44NPBF") on the manufacturer's website. Different companies make parts with the same number; ST's L7805 and another manufacturer's 7805 can differ slightly in their values. So read the document from the manufacturer of the part you actually have. A datasheet doesn't tell the whole story on its own; with microcontrollers in particular, several documents are used together. If you are using a module, such as a DHT22 module or an ESP32 development board, you also need the board's schematic in addition to the sensor's or chip's datasheet, because extra parts like pull-up resistors, a regulator and LEDs sit on the board. If you can't read schematics yet, the reading circuit diagrams article is a good start.

DocumentWhat does it contain?When do you read it?
DatasheetElectrical values, pins, package dimensions, typical circuitThe first document for every part
Reference manual (TRM)Detailed operation of the microcontroller's registers and peripheralsWhen using timers, ADC, DMA and other peripherals in depth
Application noteExample circuit and design advice for a specific useFor topics such as heat, layout and noise
ErrataKnown bugs in the chip and their workaroundsWhen a feature doesn't work as expected
Module datasheetAntenna, flash and pin information for modules such as ESP32-WROOMWhen using a ready-made module
Board schematicRegulator, LEDs, resistors and connections on a development boardFor boards such as Arduino, ESP32 DevKit and Pico

The sections of a datasheet

SectionWhat you'll findWatch out for
Front page: features and descriptionWhat the part is, headline valuesThese values are a marketing summary under the best conditions
Absolute Maximum RatingsLimits beyond which the part will be damagedNot operating values
Recommended Operating ConditionsVoltage and temperature range in which the part is guaranteed to workDesign within this range
Electrical CharacteristicsMin, typ and max values with test conditionsThe test condition may differ from yours
Pin Configuration / DescriptionName, type and function of each pinCheck whether it is a top or bottom view
Timing DiagramsThe order and duration of signalsTimes are usually given as min or max
Typical ApplicationRecommended connection and external partsDon't skip the capacitors and resistors
Typical performance graphsVariation with temperature, voltage and currentGraphs show typical values, not guarantees
Package information and ordering codeDimensions, pin pitch, suffixes at the end of the part numberSuffixes set the temperature range and package

Absolute maximum ratings: the line you never cross

The absolute maximum ratings table gives the extremes a part can withstand without permanent damage: the highest supply voltage, the highest and lowest voltage you can apply to a pin, current per pin, total power and storage temperature. These values don't mean "it works up to here"; they mean "exceed this and the part may be damaged, run close to it and its life gets shorter". For example, the ATmega328P datasheet gives 40 mA as the absolute maximum current through an I/O pin, but the output voltages in the electrical characteristics table are measured at 20 mA. So your design should aim for 20 mA or less. For the detailed calculation, see the Arduino pin current article.

Treating an absolute maximum as an operating value is the most expensive mistake. You can apply 35 V to a 7805's input, but at that point the regulator produces 30 W of heat at 1 A and goes straight into thermal protection. If a pin's limit is "VCC + 0.5 V", applying 5 V to a 3.3 V ESP32 or Pico pin exceeds it by 1.2 V; even if the part keeps working for a while, the damage builds up.

The recommended operating conditions table gives the range in which the part meets every specification in the datasheet; your design should always stay inside it. In the electrical characteristics table there are three columns for each value. Min and max are the limits the manufacturer guarantees for every part produced. Typ (typical) is the value measured on an average part at room temperature and is not a guarantee. A safe design is always based on the worst case, that is, the min or max value. Each row also has a test condition column, such as "VCC = 5 V, IOH = −20 mA, TA = 25 °C". If your circuit runs at a different voltage or temperature, the value changes too. The table below shows a few typical rows from the ATmega328P datasheet.

ParameterConditionMinMaxWhat does it mean?
Supply voltage VCCOperating1.8 V5.5 VWorks in this range, but with a speed limit
Clock frequencyVCC = 4.5–5.5 V020 MHz16 MHz needs a supply close to 5 V
Input HIGH threshold VIHVCC = 2.4–5.5 V0.6 × VCCVCC + 0.5 VAt 5 V, at least 3.0 V counts as HIGH
Input LOW threshold VILVCC = 2.4–5.5 V−0.5 V0.3 × VCCAt 5 V, at most 1.5 V counts as LOW
Output HIGH voltage VOHIOH = −20 mA, VCC = 5 V4.2 V-While sourcing 20 mA the pin stays at 4.2 V or more
Output LOW voltage VOLIOL = 20 mA, VCC = 5 V-0.9 VWhile sinking 20 mA the pin rises to 0.9 V at most

Pin descriptions and package

The pin diagram shows what each leg of the part does. The first thing to check is the direction of the view: ICs are usually drawn from the top (top view), pin 1 is marked with a dot, notch or bevelled edge, and the numbering runs anticlockwise. Some sensors and surface-mount packages are shown from below (bottom view); miss that and you'll wire a mirror image. The pin table also gives each pin's type: I input, O output, I/O bidirectional, P or PWR power. NC (no connection) is an unconnected pin that is usually left open. Pin order can change between packages of the same part: on the 7805's TO-220 package the order is input, GND, output, but other packages can differ. To quickly see which pin goes where on boards, you can use the pinout tool.

How to read timing diagrams

A timing diagram shows the order in which signals must change during communication and how long each step lasts. The horizontal axis is time; each row is a signal line. A line at the top means HIGH, at the bottom LOW, and crossing lines mark the moment of change. Arrows and letters between two moments (for example tBE, tLOW) define a duration, and their values are given as min, typ and max in the table below the diagram. The DHT22's single-wire protocol is a good example: first the microcontroller pulls the line LOW for at least 1 ms and then releases it; the sensor answers with 80 µs LOW and 80 µs HIGH and then sends 40 bits of data. Each bit starts with a 50 µs LOW; if the following HIGH lasts about 26–28 µs the bit is 0, if it lasts about 70 µs it is 1. Libraries decode the bits by measuring these times; if the timing is disturbed, the reading returns "nan".

PhaseWho drives it?Duration (datasheet)Meaning
Start signalMicrocontrollerLOW, at least 1 msWakes the sensor
WaitMicrocontroller releasesHIGH, 20–40 µsThe pull-up pulls the line high
Sensor responseDHT2280 µs LOW + 80 µs HIGHSensor ready
Bit startDHT2250 µs LOWBefore every bit
Bit 0DHT2226–28 µs HIGHShort HIGH = 0
Bit 1DHT2270 µs HIGHLong HIGH = 1
DataDHT2240 bits16-bit humidity + 16-bit temperature + 8-bit checksum

Typical application circuit

The typical application circuit near the end of the datasheet is the connection the manufacturer used for testing and recommends. The capacitors and resistors in it aren't decoration. The 7805 datasheet shows 0.33 µF at the input and 0.1 µF at the output; the input capacitor is needed if the regulator is far from the filter capacitor, and the output one improves stability during sudden load changes. The DHT22 datasheet recommends a pull-up resistor on the data line and gives a value of around 5.1 kΩ for cables shorter than 20 m. When you buy a module, check the schematic to see whether these parts are already on the board; if you're using a bare sensor, build the typical circuit exactly.

Example 1: reading values from the DHT22 datasheet

DHT22 temperature and humidity sensor
DHT22 (AM2302): the range, accuracy and sensing period from the datasheet go straight into the code as constants.
ParameterDatasheet valueIn the code
Supply voltage3.3–6 V DC5 V on the Uno, 3.3 V on ESP32 and Pico (lower limit, keep the cable short)
Operating range−40…80 °C, 0…100 %RHTreat out-of-range values as errors
Accuracy±0.5 °C, ±2 %RH (max ±5 %RH)Show the result with ±
Resolution0.1 °C, 0.1 %RHOne decimal place is enough
Sensing period2 s on averageDon't read more often than every 2 seconds
Power-upNo command for the first 1 sWait in setup()
Current1–1.5 mA measuring, 40–50 µA standbyUse it for battery calculations
C++ (Arduino IDE)
1// DHT22 veri sayfasındaki değerleri koda dökmek
2// Turning DHT22 datasheet values into code
3#include <DHT.h>
4
5const int DHT_PIN = 2;                    // DATA -> D2 (modülde pull-up var / pull-up on the module)
6const unsigned long SAMPLE_MS = 2000;     // datasheet: ölçüm aralığı ort. 2 s / sensing period 2 s
7const float T_MIN = -40.0, T_MAX = 80.0;  // datasheet: sıcaklık aralığı / temperature range (°C)
8const float H_MIN = 0.0, H_MAX = 100.0;   // datasheet: nem aralığı / humidity range (%RH)
9const float T_ACC = 0.5;                  // datasheet: sıcaklık doğruluğu / temperature accuracy (°C)
10const float H_ACC = 2.0;                  // datasheet: tipik nem doğruluğu / typical humidity accuracy (%RH)
11
12DHT dht(DHT_PIN, DHT22);
13unsigned long lastRead = 0;
14
15void setup() {
16  Serial.begin(115200);
17  dht.begin();
18  delay(1500);   // datasheet: açılıştan sonra 1 s komut gönderme / no command for 1 s after power-up
19}
20
21void loop() {
22  if (millis() - lastRead < SAMPLE_MS) return;   // 2 s'den sık okuma / don't read faster than 2 s
23  lastRead = millis();
24
25  float t = dht.readTemperature();
26  float h = dht.readHumidity();
27
28  if (isnan(t) || isnan(h)) {
29    // Zamanlama ya da sağlama toplamı hatası / timing or checksum error
30    Serial.println("Okuma hatasi: kablo, pull-up ve besleme / read error: wiring, pull-up, supply");
31    return;
32  }
33  if (t < T_MIN || t > T_MAX || h < H_MIN || h > H_MAX) {
34    Serial.println("Aralik disi deger / value out of datasheet range");
35    return;
36  }
37  Serial.print("Sicaklik / temperature: ");
38  Serial.print(t, 1);
39  Serial.print(" +/- ");
40  Serial.print(T_ACC, 1);
41  Serial.print(" C   Nem / humidity: ");
42  Serial.print(h, 1);
43  Serial.print(" +/- ");
44  Serial.print(H_ACC, 0);
45  Serial.println(" %RH");
46}
47

The code keeps each value read from the datasheet as a named constant, so when you switch to another sensor you can see where everything comes from. The reading interval is 2 seconds, because the datasheet gives an average sensing period of 2 s and reading more often returns the same value again or warms up the sensor. If temperature or humidity is outside the datasheet's operating range, the result isn't trusted and an error is printed. If the reading fails completely, the library returns "nan"; that usually means the times in the timing diagram aren't being met, in other words a wiring, pull-up or supply problem. For troubleshooting steps, see the DHT sensor not reading article.

Example 2: the 7805 regulator and heat calculation

LM7805 voltage regulator in a TO-220 package
7805: the dropout voltage and thermal resistance in the datasheet tell you whether the regulator needs a heatsink.
ParameterDatasheet value (L7805C)What does it mean?
Input voltage (absolute max.)35 VAbove this it gets damaged; not an operating value
Output voltage4.8 / 5.0 / 5.2 V (min / typ / max)The output isn't exactly 5.00 V on every part
Dropout voltageTypically 2 V (1 A, 25 °C)The input must be at least about 7 V
Quiescent current8 mA maxThe regulator draws this even with no load
Operating junction temperature0…125 °CThe upper limit for heat calculations
Thermal resistance, junction-ambient (TO-220)50 °C/WWithout a heatsink every watt adds 50 °C
Thermal resistance, junction-case5 °C/WUsed for heatsink calculations

Let's do a real calculation with these values. You are powering a circuit that draws 0.5 A at 5 V from a 12 V adapter. The power dissipated in the regulator is P = (Vin − Vout) × I = (12 − 5) × 0.5 = 3.5 W. Since the thermal resistance of a TO-220 package without a heatsink is 50 °C/W, the junction temperature in a 25 °C room is 25 + 3.5 × 50 = 200 °C; that is far above the 125 °C limit, and the regulator goes into thermal protection and cuts its output. The power you can safely dissipate without a heatsink is about (125 − 25) / 50 = 2 W. For 3.5 W at 40 °C ambient, the total thermal resistance must be (125 − 40) / 3.5 ≈ 24 °C/W; 5 °C/W of that comes from the case and about 1 °C/W from the insulating pad, so you need a heatsink of 18 °C/W at most. Or, instead of turning the 7 V difference into heat, you use a switching step-down converter. The details are in the 7805 voltage regulator and linear vs switching regulator articles.

Example 3: a MOSFET datasheet (IRLZ44N and IRF540N)

ParameterIRLZ44NIRF540NWhat does it mean?
VDS (absolute max.)55 V100 VHighest voltage it can switch off
Continuous ID (TC = 25 °C)47 A33 AWith the case held at 25 °C, i.e. an infinite heatsink
RDS(on), VGS = 10 V0.022 Ω max0.044 Ω maxResistance when fully on
RDS(on), VGS = 5 V0.025 Ω maxNot specifiedHow well does it turn on from the Arduino's 5 V?
RDS(on), VGS = 4 V0.035 Ω maxNot specifiedProof that it's logic level
VGS(th) threshold voltage1.0–2.0 V (ID = 250 µA)2.0–4.0 V (ID = 250 µA)Only the point where it starts to turn on
VGS (absolute max.)±16 V±20 VGate-source limit
Thermal resistance, junction-ambient62 °C/W62 °C/WHeating without a heatsink

Two values in a MOSFET datasheet are misread more than any others. The first is VGS(th): seeing 2–4 V for the IRF540N, it's easy to think "the Arduino's 5 V is enough". But the threshold voltage is only the point at which 250 µA flows through the MOSFET; for full turn-on you need to look at the VGS value written in the RDS(on) row of the datasheet. The IRF540N's RDS(on) is only given for 10 V, so it isn't reliable with a 5 V Arduino. The IRLZ44N, on the other hand, also guarantees values for 4 V and 5 V; the "L" in its name stands for logic level. The second is ID = 47 A: this value is calculated with the case temperature held at 25 °C, which is impossible in practice. The real limit is set by the power calculation: at 5 V gate voltage and 5 A, P = I² × R = 5² × 0.025 = 0.625 W, the junction temperature is 25 + 0.625 × 62 ≈ 64 °C and no heatsink is needed. At 10 A the power rises to 2.5 W and the temperature goes above 175 °C; on top of that, RDS(on) increases as it heats up, which makes a heatsink mandatory. For the practical side, see the Arduino MOSFET article, and to compare transistor values, the transistor tool.

Arduino, ESP32 and RP2040 documents

PlatformDocuments to readMost important values
Arduino Uno (ATmega328P)ATmega328P datasheet, Arduino Uno schematicAbsolute max. 40 mA per pin (20 mA for design), 200 mA total through VCC and GND pins, VIH ≥ 0.6 × VCC
ESP32ESP32 Series Datasheet, ESP32-WROOM-32 module datasheet, Technical Reference Manual, DevKit schematicSupply absolute max. 3.6 V, pins not 5 V tolerant, VIH ≥ 0.75 × VDD, ADC2 can't be used with Wi-Fi
Raspberry Pi Pico (RP2040)RP2040 datasheet, Raspberry Pi Pico datasheetIOVDD 3.3 V, pins not 5 V tolerant, pin drive strength selectable 2/4/8/12 mA (default 4 mA), 3V3(OUT) up to 300 mA

Common misunderstandings

MisunderstandingThe truth
"Absolute max is 40 mA, so I'll draw 40 mA."Absolute max is the damage limit; design around the test value in the characteristics table (20 mA).
"The typ value is guaranteed."Min and max are guaranteed; typ is the value of an average part at room temperature.
"VGS(th) is 2 V, so the MOSFET is fully on at 3.3 V."Only 250 µA flows at the threshold; look at the VGS given in the RDS(on) row.
"It says ID 47 A, so I can drive a 30 A motor."That value is for a 25 °C case; the real limit is set by power and thermal resistance.
"The features on the front page are enough."The front page summarises the best case; find the test conditions and graphs in the characteristics table.
"The module's datasheet is the same as the sensor's."The module may have a regulator, pull-ups and a level shifter; look at the board's schematic.
"The curve in the graph is the same for every part."Graphs show typical behaviour; use the min and max values from the table in your design.

Read a new datasheet in 5 steps

  1. Use the front page to understand what the part is and which packages exist, and match it with the full number of the part you have.
  2. Mark the voltage and current limits in the absolute maximum table; never get close to them in your circuit under any condition.
  3. Check the supply and temperature range in the recommended operating conditions and confirm it matches your board's logic level (5 V or 3.3 V).
  4. Find the row you need in the electrical characteristics, read its test condition and calculate with the worst-case value.
  5. Read the pin diagram paying attention to the view direction, then compare the typical application circuit and timing diagram with your own circuit.
While reading a new part's datasheet, write the values you need into a small table or as constants at the top of your code: supply range, logic level, maximum current, sensing time and accuracy. When you come back to the project a few months later, you won't have to search for the same document again, and it will be clear where the numbers in your code came from.

Reading datasheets seems tiring at first, but after a few parts you'll notice you always look for the same tables: limits, operating range, min and max values, pins and the typical circuit. This habit prevents burnt pins, overheating regulators and sensors that won't read right from the start. In the projects in the BlueGrays app every connection comes with a step-by-step circuit diagram; checking a few of the values from this article in the datasheet of the sensor or driver a project uses, before you build it, makes it easier to understand both the circuit and why it is built that way.

Frequently asked questions

What is a datasheet?

A datasheet is the official technical document a manufacturer publishes for an electronic component. It contains the part's voltage and current limits, its pins, communication timing, package dimensions and the recommended connection circuit.

What is the difference between absolute maximum ratings and operating values?

An absolute maximum rating is the limit beyond which the part may be permanently damaged, and it doesn't guarantee that the part works properly at that value. Operating values are given in the recommended operating conditions and electrical characteristics tables; you should always design within that range.

What do min, typ and max mean in a datasheet?

Min and max are the lower and upper limits the manufacturer guarantees for every part produced. Typ is the typical value measured on an average part at room temperature and is not a guarantee; a safe design is based on the worst case, the min or max value.

Where can I find a component's datasheet?

The most reliable source is the manufacturer's official website, searched with the full number printed on the part. Since more than one company can make the same part number, use the document from the manufacturer of your part; for modules, also look at the board's schematic.

Why is VGS(th) misleading in a MOSFET datasheet?

VGS(th) is the gate voltage at which the MOSFET only starts to pass a tiny current such as 250 µA, not the voltage at which it is fully on. A MOSFET you use with an Arduino should have its RDS(on) specified at a 4.5 V or 5 V gate voltage; that's why logic-level models such as the IRLZ44N are preferred.

Where do I find the Arduino pin current in the datasheet?

In the Electrical Characteristics chapter of the ATmega328P datasheet, under Absolute Maximum Ratings, you'll find a limit of 40 mA per pin and 200 mA in total for the VCC and GND pins. The output voltages in the same chapter are given at 20 mA, so you should aim for 20 mA or less per pin in your design.

See all projects
Temperature and Humidity with DHT11
AR-55Intermediate

Temperature and Humidity with DHT11

How warm is your room, and is the air humid or dry? The DHT11 sensor measures temperature and humidity, and the Arduino writes the values on a two-line LCD screen, refreshing every couple of seconds.

4.7(47)
96
LED Blink
AR-1Beginner

LED Blink

The very first hello of electronics: switching a single LED on and off. The Arduino keeps the LED on for one second and off for one second, so you can easily follow every blink.

4.6(203)
1382
LED Blink with ESP32
ES-1Beginner

LED Blink with ESP32

Teaches basic GPIO output usage with ESP32. We achieve a blinking effect by turning an LED on and off from a digital pin. ESP32 version of the classic blink project on Arduino UNO; the basic blink commands in the Arduino environment are the same, but the ESP32's pin layout and 3.3 V GPIO levels differ from those of the Arduino UNO.

4.7(38)
114
Raspberry Pi Pico Onboard LED Blink (Pico and Pico W)
PI-1Beginner

Raspberry Pi Pico Onboard LED Blink (Pico and Pico W)

The opening project of the Raspberry Pi Pico series! We blink the Pico's green built-in LED to confirm the board works, the classic "Hello World" first experiment. No external parts needed, just the Pico and a USB cable. The code is written in MicroPython, the language officially supported by the Raspberry Pi Foundation.

5.0(1)
11
Raspberry Pi Pico: Controlling an External LED (Breadboard)
PI-2Beginner

Raspberry Pi Pico: Controlling an External LED (Breadboard)

The next step after the Pico's built-in LED: connect an external LED on a breadboard and control it through pin GP14. You'll learn how to use any of the Pico's GPIO pins as an output, the LED's polarity (long leg = anode/+, short leg = cathode/–) and why a current-limiting resistor (220Ω) is a must. Without the resistor, too much current flows through the LED and it can burn out.

4.5(2)
7
ESP32 DHT22 Temperature and Humidity (with LCD Display)
ES-15Intermediate

ESP32 DHT22 Temperature and Humidity (with LCD Display)

This project measures ambient temperature and humidity using a DHT22 sensor and displays the data in real time on a 16x2 I2C LCD. Data is read from the sensor using the one-wire protocol via the Adafruit DHT library. This project serves as the foundation for IoT weather stations, smart home automation, or environmental monitoring systems in greenhouses. Communication with the DHT22 is established via the ESP32's GPIO 4 pin.

4.8(38)
57
ESP32 Temperature Data Logger (DHT22 + DS1307 RTC + microSD + OLED)
ES-40Advanced
Premium

ESP32 Temperature Data Logger (DHT22 + DS1307 RTC + microSD + OLED)

Build a timed temperature and humidity logger with the ESP32! A DHT22 sensor reads temperature and humidity once a minute, and each reading is saved to a microSD card in CSV format with a real-time stamp from the DS1307 RTC module. The OLED display shows the latest temperature, humidity, timestamp and total number of records live, in large text.

4.7(7)
12
ESP32 LED Fade with PWM
ES-8Beginner

ESP32 LED Fade with PWM

Smoothly changing the brightness of the LED from 0 to max, from max to 0. We control PWM with analogWrite() as in Arduino - the same syntax as ESP32 Arduino Core 3.0+ works without problems. Pin definition + pinMode + analogWrite is enough.

4.8(36)
55