Using a basic sensor - photodiode

Let us start our journey of learning basic sensor devices using a photodiode LED. A photodiode LED is usually black in color and looks slightly larger than a normal LED. A photodiode LED generates small amounts of voltage when light is incident upon it. The amount of voltage generated is proportional to the amount of light incident upon the photodiode. You will learn how to do an Arduino sketch to measure the voltage generated on the analog pin that is connected to the photodiode.

For easy reference, the parts required for this project are listed as follows:

  • Arduino Uno
  • USB cable
  • Photodiode
  • Ohms resistor
  • Breadboard
  • Some male-to-male jumper wires

Once all the preceding parts are assembled, build the circuit ...

Get Learn Arduino Prototyping in 10 days now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.