4. Oscilloscope Images of Noise and Signal on a Photodiode Sensor
(article continued from previous page)
Even the best algorithm can be foiled by poor input. A signal-to-noise ratio describes the level of good stuff (signal) compared to the level of bad stuff (noise). Many top engineers have made their careers out of developing methods to increase signal strength and decrease noise.
Electrical and Ambient Noise
Electrical emissions from a computer monitor, fluorescent lamp, or electrical motor normally consist of much less electrical power than the output of a chip or transistor. So, the signal from a digital chip easily overrides the environmental electrical noise.
But, the photodiode (in this case a reversed LED) doesn't put out much power. So much so, that stray electrical sources are comparable in voltage levels.

Oscilloscope trace of electrical noise amplified by the high-gain op amp. There is no signal in this image.
The above image illustrates ambient oscillating electrical noise leaking into the photodiode amplifier circuit when the photodiode is completely covered by an opaque material. Even though this is a battery operated circuit, the surrounding residential appliances, outlets, and cords are emitting electrical signals that are picked up by the circuit.
The original noise voltage level was quite insignificant, but now the noise has been amplified to about 0.2 V by the high-gain op-amp that is required to amplify the weak photodiode signal.

Oscilloscope trace of electrical noise overlaid on a rising and falling photodiode signal.
The photodiode is uncovered for the above image. In this case, the photodiode voltage is much greater than the background noise. The photodiode signal is clearly dominant. But, the background noise does roughen things up a bit.
Always be wary of any great amount of signal amplification, as the noise is amplified also. If you forget about this problem, you may be scratching your head when the robot goes crazy near the refrigerator or vacuum cleaner, which are both sources of significant electrical noise.
To reduce noise pick up, you can:
- Reduce the number of components, such as using a 20 megohm resistor instead of two 10 megohm resistors.
- Shorten the length of components leads, as they tend to act like antennas in picking up stray signals.
- Build the circuit on a soldered printed circuit board (PCB) instead of a solderless breadboard. Inside of the solderless breadboard are columns and rows of connected contacts that also act like little antennas.
- Build the circuit on a soldered PCB using surface-mount components, since the pins on DIP chips and other through hole resistors pick up stray signals and lengthen the distance between the signal and the amplifier.
- Coat the finished PCB in a protective insulating coating. Without the coating, touching parts of the circuit with your fingers will result in horribly noisy, spiky chaos that overwhelms the photodiode signal. If you have an oscilloscope, go ahead and touch pin 2 on the solderless breadboard to see for yourself.
- Add a ground plane (a larger flat layer connected to GND) or a guard ring (a ground trace that encircles the signal source and the amplifier).
- Reduce the amount of amplification necessary, which can sometimes be permitted by increasing the amount signal.
Increasing Signal By Adding Light Sensors
The last bullet point on the above list can be accomplished by adding a second photodiode -- which you see we did in the completed circuit. Depending on the application, this may not always be acceptable, as the second photodiode isn't focusing on the same spot as the first. However, where appropriate, additional photodiodes can improve and smooth (average out) the signal.

Oscilloscope trace of the voltage level of a single unamplified photodiode.
The above image illustrates the response of a single photodiode before amplification. That's about 1.25V.

Oscilloscope trace of the voltage level of a pair of unamplified photodiodes.
The above image illustrates the additive response of a pair of parallel photodiodes before amplification. More current flows because the surface area for photons has doubled.
In this example, I was surprised that the voltage more than doubled (it's about 3.25V). It could be because:
- The additional photodiode was more sensitive (LED brightness qualities tend to vary considerably, even in the same lots).
- Or that the added photodiode was simply aimed more directly at the light source (high-brightness LEDs tend to have narrow beams of focus).
- Or that some static current drain (input bias current for the op amp, or solderless breadboard leakage) is constant, and so the added photodiode could devote all of its capacity to raising the voltage.
Hopefully, the oscilloscope traces convince you of the value of using more than one reversed LED to increase signal strength. This becomes a required practice for higher energy wavelengths like green, blue, or UV.