Noise#

Zoom in on the sleep current of a quiet target and the trace is never a flat line. Some of that fuzz is real: your target and its supply really do draw a slightly varying current. The rest is noise from the instrument, from the wiring, and from everything else connected to the target. This page explains where the noise comes from and how to reduce it, so that what you see is your target.

Where noise comes from#

Instrument noise

Every measurement has a noise floor, set by the instrument’s amplifiers, shunt resistors and analog-to-digital converters. It depends on the current range and the bandwidth. The values for each instrument are in its specifications, available from Products.

Pickup

The wires between the supply, the Joulescope and the target form loops. A loop is an antenna for changing magnetic fields from mains wiring, transformers, motors and switching power supplies. A target with a radio transmitter can also couple directly into the wiring and the instrument.

Connected equipment

Debuggers, logic analyzers, oscilloscopes and serial adapters connect the target to other equipment, and often to a computer and protective earth. They inject noise directly and form ground loops; see Ground loops.

The power supply

Supply voltage noise drives a real current through the target’s input capacitance, I = C dV/dt. The Joulescope measures that current correctly, but it comes from the supply, not from your target’s activity.

The sections below address each one.

Noise and bandwidth#

Noise amplitude depends on bandwidth. For random, broadband noise, the RMS noise is proportional to the square root of the bandwidth. Reduce the bandwidth by a factor of 100 and the RMS noise drops by about a factor of 10.

At the full sample rate, a Joulescope has a bandwidth of a few hundred kHz, so that it can show short events such as interrupts. If you do not need that time resolution, select a lower sample rate with Signal frequency in the Joulescope UI Device Control widget. The downsampling filter reduces the bandwidth, and the noise drops with it. You trade time resolution for lower noise. See Bandwidth for how the sample rate and filter change what a waveform looks like, and for how to choose a sample rate.

Two limits apply:

  • Noise at a single frequency, such as 50 Hz or 60 Hz mains pickup, does not drop until the bandwidth falls below that frequency. Remove its source instead.

  • Average current, charge and energy do not need low noise. Random noise averages toward zero over a long measurement, at any sample rate. Noise that is real current, such as current driven around a ground loop, does not average out, because the target or the instrument actually conducts it.

To find out what kind of noise you have, look at it with the Spectrum widget. A peak at 50 Hz or 60 Hz and its harmonics points to mains pickup and ground loops. A peak at tens or hundreds of kHz often matches the switching frequency of a power supply.

Wiring#

Twisted pairs#

When your setup is only a power supply, a Joulescope and a target, with no other connections to the target, twist the wires in pairs:

  1. Twist together the + and − wires from the power supply to the Joulescope.

  2. Twist together the + and − wires from the Joulescope to the target.

A twisted pair encloses almost no loop area, and the twists cancel what little voltage the field induces, so the pair picks up very little noise. Keep the wires short as well. Shorter wires pick up less noise and drop less voltage. The How to Connect chapter of your instrument’s user’s guide shows this wiring, for example the JS320 User’s Guide.

Star ground#

When other equipment also connects to your target, such as a debugger, a logic analyzer or a serial adapter, its ground connects to the target’s ground too. Several ground wires between the same points form loops; see Ground loops. To avoid them, connect every ground to a single point, the star ground node, as shown in Fig. 8:

Supply, Joulescope and target wired to a single star ground node, with twisted supply and target pairs and a debugger connected only to the target

Fig. 8 Star ground wiring for a JS320 or JS220. Every ground meets at one node, and the debugger’s ground reaches it only through the target.#

  1. Twist together the power supply + and − wires. Connect − to the star ground node.

  2. Connect the power supply + to the Joulescope current input.

  3. Connect the Joulescope current output to the target +. Twist this wire together with the target ground wire.

  4. Connect the target ground to the star ground node.

  5. Connect the Joulescope voltage − to the star ground node. This is the Joulescope’s only ground connection.

The terminal names depend on the instrument:

Connection

JS320, JS220

JS110

Current input, from the supply +

I+

IN+

Current output, to the target +

I−

OUT+

Voltage +

V+, to the target +

Connected internally to IN+

Voltage −, to the star ground node

V−

IN−

Not connected

OUT−

On the JS110, IN− and OUT− are connected inside the instrument. Connecting both to ground would add a second ground path through the Joulescope, so leave OUT− disconnected. The Joulescope measures current on the + side, so all of the target’s current still flows through it.

Connect the other equipment to the target as usual. Its ground then reaches the star ground node only through the target ground wire.

RF transmitters#

When your target contains a radio transmitter, short wires are not always better. The wiring and the Joulescope near the antenna can become part of the antenna, which couples RF energy into the measurement. Locate the Joulescope at least one wavelength away from the transmitter: about 33 cm at 915 MHz and 12 cm at 2.4 GHz. Keep the Joulescope’s USB cable away from the antenna too, and keep twisting the wire pairs.

Connected equipment#

Debuggers, logic analyzers, oscilloscopes and other equipment connected to your target can inject noise, even when they form no ground loop. Their own digital circuits and power supplies switch constantly, and their connections carry that noise to the target.

  • Remove equipment that you do not need during the measurement. Disconnect it physically: closing the software is not enough.

  • Where you need it, electrically isolate it. USB isolators break the connection between the equipment and the computer. Many support only USB low and full speed, which is enough for most debuggers and serial adapters but not for high-speed equipment, so check the speed before you buy one.

  • Use the Joulescope GPI inputs, rather than a logic analyzer, to observe firmware activity.

Connected equipment can also leak current into or out of the target, which changes the measured current rather than adding noise to it; see Leakage current.

Power supply#

Use a quality, low-noise power supply. Your target draws current in response to every change in its supply voltage, and the Joulescope measures it faithfully.

  • A battery is the quietest source. Use one to find out how much of the noise comes from your supply.

  • Linear bench supplies are usually quieter than switching supplies. Switching supplies, including USB chargers and wall adapters, produce ripple at their switching frequency and its harmonics.

  • A supply with an earth connection can complete a ground loop with other earthed equipment; see Ground loops.

Summary#

  • Reduce the sample rate when you do not need the time resolution. Lower bandwidth means lower noise.

  • Twist the supply and target wire pairs, and keep the wires short.

  • With other equipment connected, use a star ground, and connect the Joulescope to ground only through voltage −.

  • Keep the Joulescope one wavelength away from RF transmitters.

  • Remove or isolate debuggers, logic analyzers and other equipment.

  • Use a low-noise power supply, or a battery.