Choose a logic analyser if you mainly debug digital buses such as I2C, SPI and UART, and choose an oscilloscope if you need to see real voltage shapes such as motor noise, ringing or sagging supply rails. Many robotics benches end up with a cheap version of each.
Key takeaways
- An oscilloscope draws voltage against time, so it shows the shape of a signal, including noise, spikes and slow edges.
- A logic analyser records many digital lines as simple highs and lows and can decode protocols such as I2C, SPI and UART into readable bytes.
- For the oscilloscope vs logic analyser choice in robotics, buses point to the analyser and motor or power noise points to the scope.
- A common rule is to sample a digital signal at four or more times its frequency, and to choose scope bandwidth several times above the signal.
What Each Instrument Shows
An oscilloscope shows how a voltage changes over time on one to four channels, while a logic analyser shows the on-off state of many lines at once. The scope shows detail and the analyser shows meaning.
If a sensor line looks fine in code but the robot misbehaves, the scope shows whether the edge is clean or rounded. If an I2C device does not answer, the analyser shows the address byte, the acknowledge bit and any missing reply. A scope sees the analog truth of a single wire. An analyser sees a record of many wires, but only as ones and zeros, so it cannot tell you that a high is only 2.2 V. Check the threshold setting on your analyser.
| Question | Scope | Logic analyser |
|---|---|---|
| Is the signal voltage clean? | Yes | No |
| What bytes went over I2C? | Hard | Yes, with decoding |
| How many lines at once? | Usually 2 to 4 | Often 8 or 16 |
| Is the supply rail dipping? | Yes | No |
Bandwidth Needs
Bandwidth is the highest signal frequency a scope can show without much loss, and for a logic analyser the equivalent is the sample rate. Both should be well above your signal.
Take these worked examples, using a four-times rule for digital sampling:
- I2C fast mode, 400 kHz: 400 000 x 4 = 1 600 000, so at least 1.6 MHz sampling, and 10 times gives 4 MHz.
- SPI at 8 MHz: 8 000 000 x 4 = 32 000 000, so at least 32 MHz sampling.
- UART at 115 200 baud: 115 200 x 4 = 460 800, so about 0.46 MHz sampling.
Most robot buses sit at or below a few megahertz, so a modest instrument is enough. Motor driver PWM frequencies are often in the kilohertz range, but the edges contain faster content, so a scope with tens of megahertz of bandwidth shows them more truthfully than one with only a few. Check how the maker defines bandwidth, and use it as a guide.
Protocol Decoding
Protocol decoding turns raw high-low traces into bytes and addresses. It saves time because you read the data instead of counting clock pulses by eye.
Many logic analysers and some scopes include decoders for I2C, SPI and UART. Decoding helps when a sensor returns the wrong value, when two devices share an address, or when a baud rate mismatch garbles serial output. Read the I2C, SPI and UART guide to know what you are looking at. When using a USB analyser with software, check that the software runs on your operating system and exports data.
Motor Noise Debugging
Motor noise is electrical interference created when motors switch current, and it can reset a microcontroller or corrupt sensor readings. A scope is the right tool for finding it.
Probe the 5 V or 3.3 V rail at the microcontroller while the motors start and stop. If you see dips or spikes, the supply, wiring or decoupling needs work. Use a short ground spring on the probe, since a long ground lead picks up noise and misleads you. A logic analyser cannot show a dipping rail, but it can show that a reset happened by showing a line going silent. See the troubleshooting guide for the checks to run before reaching for instruments. For a motor control build to practise on, try the PID motor speed control project.
Budget and Sharing
Budget decides whether you buy one instrument or both, and sharing can reduce the cost. A college lab or robotics club may already own a scope.
Ask your lab, department or club before buying. Many labs have bench scopes that students can book. A small USB logic analyser is a common personal purchase because it is portable and suits laptop work. Check what accessories are included, such as probes and clips. Buy from a seller with a return policy, and check current listings, since prices and models change.
Starter Setup
A starter setup is the smallest kit that lets you debug the most common robot faults. For many students it is a multimeter plus one of the two instruments.
- If your robots use many sensors on I2C, SPI and serial: a logic analyser with 8 channels.
- If you fight resets and noisy readings with motors: a scope with at least two channels.
- If you have both needs, borrow a scope and own an analyser.
The ESP32 robot car is a good place to practise, since it has motors, a regulator and several signals. Before you probe, use the ESP32 pinout guide to find the right pins, and set up your code with the Arduino IDE setup guide. The learn hub lists more tutorials.
How to check this yourself
- List the fastest signal in your robot, such as an SPI clock, and multiply its frequency by four to get a minimum sample rate.
- Compare that figure with the sample rate or bandwidth on the instrument’s datasheet, noting how it is defined.
- Connect the instrument to a known signal, such as a PWM pin set to a fixed frequency, and check the measured frequency matches your code.
- Probe your logic rail while a motor starts and note the lowest voltage you see.
- Capture an I2C read from a sensor and compare the decoded address with the one in the datasheet.
Common mistakes
- Choosing an analyser with too low a sample rate for the bus.
- Using a long ground lead on a scope probe and trusting the noise it shows.
- Forgetting to connect the instrument’s ground to the robot’s ground.
- Setting the analyser threshold wrongly for 3.3 V logic.
Quick checklist
- Fastest bus or signal identified and multiplied by four.
- Instrument bandwidth or sample rate checked in the datasheet.
- Decoders available for I2C, SPI and UART if needed.
- Probes, clips and ground leads included.
- Lab or club equipment checked before buying.
Frequently asked questions
Do I need an oscilloscope for robotics?
Not at first. A multimeter and good wiring solve most beginner faults. An oscilloscope becomes useful when you chase motor noise, resets, slow edges or odd PWM signals. If your college lab has one, learn on that before buying your own.
What is a logic analyser used for?
A logic analyser records many digital lines at once and decodes protocols such as I2C, SPI and UART. It helps you see whether a sensor answers, what address was sent and whether data bytes are correct. It does not show analog voltage shapes.
What sample rate do I need for I2C?
A common guideline is at least four times the bus frequency, and more for clean edges. For 400 kHz I2C that is 1.6 MHz or higher, and ten times gives 4 MHz. Most low-cost analysers exceed this, but check the datasheet.
Related reading
- Wiring checker, to catch pin conflicts before you probe.
- Servo pulse width and PWM calculator, to know what signal to expect.
About the author and how this is kept accurate
Written, checked and maintained by Jignesh Panchal of Jaadu Digital. Figures in worked examples come from the stated assumptions, not from a bench test of our own. Read the editorial standard, follow the author on LinkedIn, or send a correction. Last reviewed: November 2026.



