Fundamentals/TCP and UDP

A card can be lost. A strip is counted.

TCP and UDP are two ways to send over the same network, shown as a classroom where a novel is torn into numbered strips for TCP and one-line cards go by UDP. Twelve short lessons, each with a bench you can press, on a laptop, a phone or in a VR headset.

What IP leaves to the application, how an address and a port find the right program, what UDP does with a datagram, and what can happen to it on the way.

The handshake, the byte stream, acknowledgements and resends, the receiver's window, congestion, and how a connection ends.

How to choose by what an app needs, what QUIC adds on top of UDP, and where all of this shows up on an ESP32.

The other fundamentals track

Electricity

Volts, current, resistance and the mistakes that kill parts. 35 pages, true of every board.

35 articles →
The other fundamentals track

Power and protection

Fuses, ideal diodes, TVS and lithium cells — every part that sits between a supply and something you would rather not replace. 13 pages, with part numbers.

13 articles →
The other fundamentals track

I2C

The two-wire bus nearly every sensor module speaks, from the beginning. Every lesson has a bench in 3D and in a VR headset.

12 articles →
The other fundamentals track

MQTT

How a reading gets from a sensor to a phone, a laptop and a lamp without any of them knowing the others. Every lesson has a bench in 3D and in a VR headset.

10 articles →
The other fundamentals track

SPI

The four-wire bus that chip after chip uses when it needs to be fast: a clock, two belts of bits, and a light that says who is listening. Every lesson has a bench in 3D and in a VR headset.

14 articles →
The other fundamentals track

Screens

Every way a screen is fed, from a two-wire OLED to an eDP laptop panel: how much data a picture is, where the picture lives, and what has to keep moving. Every lesson has a bench in 3D and in a VR headset.

16 articles →
The other fundamentals track

UART

How two devices send bytes down a wire with no clock between them, only an agreement made beforehand: the idle line, the start bit, the data bits, baud, and what happens when the two sides disagree. Every lesson has a bench in 3D and in a VR headset.

12 articles →
The other fundamentals track

Workshop

The hand skills. Soldering a joint that lasts, and reading the ones that will not. 2 pages, no circuit required.

2 articles →
Next, in the ESP32 book

Wires on the board

How two chips agree on what a line means, sorted by what it costs you in pins

9 articles, no board required →
Next, in the ESP32 book

Messages on the network

Once there is no wire left to agree about, the question is who talks first

5 articles, no board required →