blog · 26 November 2026
See your Arduino talk: decoding Serial, I2C and SPI on the oscilloscope
A practical guide to de:volt's protocol decoder: read every byte your Arduino sends over Serial, I2C and SPI, find a sensor that isn't answering, and learn how the protocols really work.
Serial, I2C and SPI are how an Arduino talks to the world: to your computer, to displays, to sensors. Usually that conversation is invisible. You write Wire.write(0x42) and hope. With de:volt's redesigned oscilloscope, you can watch every byte go by.

Turn on decoding
Decoding works whenever your circuit has an Arduino Uno or Nano. Open the oscilloscope and press Decode in the row of tool buttons. Three lanes appear under the plot, on the same time axis as the waveform:
- TX / RX for Serial,
- I2C for the Wire library,
- SPI for the SPI library.
There is nothing to wire and no settings to choose: de:volt reads the traffic straight from the board.
Serial: one byte at a time
Upload a sketch that prints something:
void setup() {
Serial.begin(115200);
}
void loop() {
Serial.println("Hi");
delay(2);
}Set the scope's time base to 1 ms so a single message fills the screen. In the TX lane you will see four boxes: 48 'H', 69 'i', 0D and 0A. That is "Hi", then the carriage return and newline that println adds. Each box is as wide as the time the byte really takes on the wire at 115200 baud. Change the baud rate to 9600, upload, and watch the boxes stretch out.
That is a lesson in itself: at 9600 baud, a single character takes about a millisecond to send. Print a lot, and your loop() slows down waiting for it.
I2C: who is talking to whom
I2C is where decoding really earns its keep. Build the weather station from our sensor guide (or any sketch that uses an I2C part) and look at the I2C lane. Each transaction reads left to right:
- S for the start condition.
- The address of the part, with W for a write or R for a read. The OLED shows up at 0x3C and the BMP280 at 0x77.
- The data bytes.
- An acknowledgement after every byte, where the receiving part says "got it".
- P for the stop condition, or Sr for a repeated start when a sketch writes a register number and then reads straight back.
Hover over any box to read its value.
Finding a missing sensor
Here is the trick that saves hours. Change the BMP280's address in your sketch to the wrong one, bmp.begin(0x76), and upload. The I2C lane now shows the Uno calling 0x76, followed by a NACK in red: nobody answered. On a real bench, all you would get is a sensor that silently reads nothing. Here, the reason is right in front of you.
The same check catches a wire on the wrong pin or a module with no power: if the part can't answer, its acknowledgement turns red.
SPI: in and out at once
SPI sends and receives at the same time. The SPI lane shows both directions for each transfer: MOSI, what the Arduino sends, and MISO, what comes back. Try a sketch that uses SPI.transfer() and compare the two.
Tips
- Use the 1 ms window to read individual bytes, and 10 ms or longer to see the rhythm of a whole conversation.
- Freeze the display to study a moment in detail. The lanes keep about the last 5 seconds of traffic.
- Pair decoding with the Arduino debugger: pause on the line that sends a byte, then step over it and watch it appear.
Try it at sim.devoltapp.com.