Hobby task

Debug an Arduino sensor signal with the Rigol DS1054Z

Task: find out whether a sensor problem is caused by bad power, noisy wiring, wrong timing or incorrect firmware assumptions.

What to measure first

Start with the sensor power rail. Put channel 1 on the supply pin and check that the voltage is stable when the sensor is active. If the supply dips or contains bursts of noise, the sensor output may be unreliable even if the code looks correct.

Use more than one channel

Put channel 2 on the sensor output. If there is a trigger, enable or clock line, use channels 3 and 4 to compare timing. This is where the DS1054Z's four inputs are valuable: the fault may only appear when one signal changes shortly before another.

How to interpret the result

A clean analogue sensor should move smoothly within its expected voltage range. A digital sensor output should switch cleanly between valid logic levels. If the waveform is noisy, check grounding and cable length. If it is delayed, check the sampling point in firmware. If it never reaches the expected level, check pull-ups, voltage compatibility and loading.

What you get out of it

Instead of guessing whether the bug is hardware or software, you can see the electrical behaviour and compare it with what the program expects.

Next guides