Voltage Divider for Photoresistor

Initializing live version
Download to Desktop

Requires a Wolfram Notebook System

Interact on desktop, mobile and cloud with the free Wolfram Player or other Wolfram Language products.

The easiest way to connect a photoresistor to a microcontroller is to connect a voltage divider of constant resistance and a photoresistor. You can measure the resistance of the photoresistor under the observed lighting conditions to get minimum and maximum resistance values. Then you can use this Demonstration to see what constant resistance you need to use in the voltage divider to get discrete low and high values on the microcontroller pin.

Contributed by: Vladislav Glagolev (March 2014)
Open content licensed under CC BY-NC-SA




Feedback (field required)
Email (field required) Name
Occupation Organization
Note: Your message & contact information may be shared with the author of any specific Demonstration for which you give feedback.