Society of Robots - Robot Forum

General Misc => Misc => Topic started by: genesis on June 05, 2009, 08:38:35 AM

Title: Equation question
Post by: genesis on June 05, 2009, 08:38:35 AM
I'm sure this is obvious to everyone else, but on the equation to determine the appropriate resistor for the photoresistor circuit, how is that the Vin is dropped from the equation.  All the rest of the math makes perfect sense, but I don't understand why it is ok to drop the Vin.

The model equation is:

voltage difference = absolute_value((R*Vin)/(R+Rp_dark) - (R*Vin)/(R+Rp_bright))

and to find the local maximum ribs uses

F(x)=x/(x+Rd) - x/(x+Rb)  - where x = resistance of second resistor, Rd = Rp_dark, Rb = Rp_bright

Notice the Vin is dropped from the f(x) function. 

Any insight would be greatly appreciated. Thanks.
Title: Re: Equation question
Post by: Webbot on June 05, 2009, 06:58:09 PM
Presumably because the 'answer' is F(x) ie a function of the resistance since thats what 'x' is defined as. What voltage you apply is up to you.
Title: Re: Equation question
Post by: genesis on June 07, 2009, 03:48:33 PM
Surely, someone must know.
Title: Re: Equation question
Post by: awally88 on June 08, 2009, 04:25:59 AM

Where did you find these equations?
Title: Re: Equation question
Post by: genesis on June 08, 2009, 07:26:41 AM
The equations are on http://www.societyofrobots.com/schematics_photoresistor.shtml (http://www.societyofrobots.com/schematics_photoresistor.shtml) (about a quarter of the way down the page).
Title: Re: Equation question
Post by: genesis on June 09, 2009, 07:30:13 AM
Figured it out.