Thanks to the SoR member 'ribs', we got a nice welcome upgrade to the photoresistor tutorial.
Remember how we had to use the excel sheet with a graph to find the resistor to give the optimal voltage output?
Well ribs did some crazy calculus and derived an equation that gives the answer right away . . .
resistor = sqrt(R_dark*R_bright)If you want to see the crazy math, I posted it on the tutorial:
http://www.societyofrobots.com/schematics_photoresistor.shtmlThanks ribs!!!!!!!!!!
old school:
