How-to · Intermediate · 3 min read
Logic Analyzers
Debug I2C, SPI and UART Signals
By Geekobot Learning Team · Updated 24 Oct 2026
On this page
A logic analyzer records many digital signals at once and shows them as a timeline, so you can see exactly what a microcontroller sends on I2C, SPI or UART. A low-cost 8-channel 24 MHz USB analyzer with free PulseView software decodes these protocols into readable bytes. Connect ground first, set a sample rate at least four times faster than the signal, add a trigger, and let the decoder show the addresses and data.
Key specs at a glance
- Channels
- 8 on common low-cost units; 16 on larger ones
- Sample rate
- 24 MS/s on common low-cost units (suits signals up to a few MHz)
- Input levels
- Typically 0 to 5 V logic; not for analog or higher voltages
- Software
- PulseView (sigrok), Saleae Logic 2 (genuine hardware)
- Decoders
- I2C, SPI, UART, 1-Wire, CAN, WS2812, IR and many more
- Triggers
- Rising, falling or level on one or more channels
Connecting and capturing
- 1Connect the analyzer's GND to the circuit ground.
- 2
- 3In PulseView, choose the device, set the sample rate and number of samples. Sample at least 4 times the signal frequency: 2 MHz or more for 400 kHz I2C, and much higher for fast SPI.
- 4Add a trigger on a falling edge of CS or SDA, then start the capture and run your code.
Decoding protocols
Add a protocol decoder and assign channels. The decoder shows start bits, addresses, ACK or NACK and data bytes above the waveform.
Common finds: - I2C NACK after the address: wrong address, missing pull-ups or a dead device. - Garbage UART bytes: baud rate mismatch; measure the shortest bit width to find the real rate. - SPI shifted data: wrong mode (clock polarity or phase). - Missing pulses: the code never reached that point; toggle a spare pin in code to time sections.
Limits and when to use a scope
A logic analyzer sees only high and low, not voltage levels, slow rise times or noise. If a signal looks fine on the analyzer but the device still fails, look at it on an oscilloscope: the edges may be slow, the voltage too low or there may be ringing. Cheap analyzers often have no input protection, so never connect them to more than 5 V, mains, or circuits with a different ground.
Common mistakes to avoid
- No common ground connection.
- Sample rate too low, so pulses are missed.
- Connecting to signals above 5 V.
- Wrong decoder settings (baud rate, SPI mode).
- Expecting it to show analog problems.
Frequently asked questions
What is the difference between a logic analyzer and an oscilloscope?
A logic analyzer shows many digital channels as high or low; an oscilloscope shows the real voltage of a few channels.
Can a cheap logic analyzer decode I2C?
Yes. A 24 MHz 8-channel unit with PulseView decodes I2C, SPI and UART.
What sample rate do I need?
At least 4 times, ideally 10 times, the fastest signal frequency.
Is it safe on 3.3 V signals?
Yes, within its input range. Do not exceed 5 V on most low-cost units.
What software works with it?
PulseView from the sigrok project is free and supports most low-cost analyzers.
Parts for this guide
- ₹518View
Terms in this guide
Keep learning
Sources
Written by the Geekobot team from manufacturer datasheets. Always check the datasheet for the exact part and variant you buy.

