Difference between revisions of "Sparkfun: Mini Photocell"

From eLinux.org
Jump to: navigation, search
(Created page with "Category:ECE497 == Overview == The: [https://www.sparkfun.com/products/9088 product]. The [http://www.sparkfun.com/datasheets/Sensors/Imaging/SEN-09088-datasheet.pdf datash...")
 
(Inputs and Outputs)
Line 7: Line 7:
  
 
== Inputs and Outputs ==
 
== Inputs and Outputs ==
 
+
As for inputs and outputs, the object is basically a resistor and thus should be read from the analog input pins. To work with the analog input, you must put 1k ohm resistor from analog ground to the analog input you choose then connect the sensor from the analog VDD to the analog input you choose. The input voltage can then be read by the processor to interpret the amount of light in the room.
 
 
  
 
== Bone Usage ==
 
== Bone Usage ==

Revision as of 11:59, 23 September 2012


Overview

The: product. The datasheet.


Inputs and Outputs

As for inputs and outputs, the object is basically a resistor and thus should be read from the analog input pins. To work with the analog input, you must put 1k ohm resistor from analog ground to the analog input you choose then connect the sensor from the analog VDD to the analog input you choose. The input voltage can then be read by the processor to interpret the amount of light in the room.

Bone Usage

Reading and Interpreting Analog Input Data

Sample C Code