Please note that User Registration has been temporarily disabled due to a recent increase in automated registrations. If anyone needs an account, please request one here: RequestAccount. Thanks for your patience!--Wmat (talk)
Please email User:Wmat if you experience any issues with the Request Account form.

Difference between revisions of "SparkFun: QRD1114,Optical Detector/Phototransistor"

From eLinux.org
Jump to: navigation, search
(Created page with "Category:ECE497 Category:SparkFun == Overview == The QRD1114 is a Optical Detector/Phototransistor that can be purchased from [https://www.sparkfun.com/products/246 Spa...")
 
Line 14: Line 14:
 
===Connecting to the Bone===
 
===Connecting to the Bone===
  
The QRD1114 connects directly to the Beaglebone via one of the Analog In pins namely ain0-ain6. Also, with the other legs of the device connected to VDD_1.8V and GND respectively.
+
The QRD1114 connects directly to the Beaglebone via one of the Analog In pins namely ain0-ain5. Also, with the other legs of the device connected to VDD_1.8V and GND respectively.
  
 
== Code ==
 
== Code ==
  
 
=== Sample C Code ===
 
=== Sample C Code ===

Revision as of 01:34, 1 October 2012


Overview

The QRD1114 is a Optical Detector/Phototransistor that can be purchased from SparkFun. The datasheet describes it as:

This sensor uses an infrared emitted diode combined with an infrared phototransistor to detect the reflected infrared signal. Ideal for sensing black-to-white transitions or can be used to detect nearby objects (.5-1cm).

Inputs and Outputs

The QRD1114 takes a supply voltage (Vs) of 0-5 V.

Connecting to the Bone

The QRD1114 connects directly to the Beaglebone via one of the Analog In pins namely ain0-ain5. Also, with the other legs of the device connected to VDD_1.8V and GND respectively.

Code

Sample C Code