


If this is your first time using Arduino, please review our tutorial on installing the Arduino IDE.If you have not previously installed an Arduino library, please check out our installation guide. Note: This example assumes you are using the latest version of the Arduino IDE on your desktop. We'll then use the jumper wires to connect from breadboard to Arduino. This resistor kit is handy for some trial-and-error testing to hone in on the most sensitive circuit possible.īreadboard and Jumper Wires - The photodetector's legs can be bent and shaped to fit a standard 0.1"-spaced breadboard. On the other half of the sensor we'll need a 10kΩ pull-up resistor to take advantage of the phototransistor's light-dependent current throughput. Resistor Kit - The LED portion of the photodetector requires a current-limiting resistor - somewhere in the range of 330Ω. Any Arduino-compatible development platform - be it a RedBoard, Pro or Pro Mini - can substitute. Beyond the sensor itself, the following materials are recommended:Īrduino Uno - We'll be using the Arduino's analog-to-digital converter to read in the analog output voltage of the photodetector.

This tutorial serves as a quick primer on reflective photodetector's and demonstrates how to hook them up and use them. The component can be used to produce an analog signal - read by a microcontroller's analog-to-digital converter pin - proportional to a nearby object's proximity. The QRD1114 is easy to hook up: All you need is a current-limiting resistor for the IR LED and a pull-up resistor on the phototransistor's collector pin.
