A bit of help with algebra
NWUpgrades
Posts: 292
OK, So I skipped more school than·I honestly should have, so now that I need Algebra I am a bit lost. At 47 years old it may be time to go brush up a bit. Any how, I am working on the BoeBot and having a blast doing it. However, I have run in to an issue that I can not resolve. I need to calibrate my photo resistors. I have the following values:
In Ambient Light: timeLeft: 26 timeRight: 46
In low light: timeLeft: 203 timeRight: 377
I am trying right now to figure this out using Appendix F in the BoeBot manual, but I am getting totally lost. Could someone explain how to do this in plain ol laments terms as opposed to the normal math terms? I am not looking for a handout or for anyone to do the math (unless you really want to!!!) I just need some guidance in Algebra. Thanks for any help you can provide.
In Ambient Light: timeLeft: 26 timeRight: 46
In low light: timeLeft: 203 timeRight: 377
I am trying right now to figure this out using Appendix F in the BoeBot manual, but I am getting totally lost. Could someone explain how to do this in plain ol laments terms as opposed to the normal math terms? I am not looking for a handout or for anyone to do the math (unless you really want to!!!) I just need some guidance in Algebra. Thanks for any help you can provide.
Comments
slope = m = (y2 - y1) / (x2 - x1) = (377 - 46) / (203 - 26) = 331 / 177 = 1.87
intercept = b = y2 - m * x2 = 377 - 1.87 * 203 = 377 - 380 = 3
With these values, you can compute timeRight for any timeLeft. By reversing the formula, you can also compute timeLeft for any timeRight.
timeRight = m * timeLeft + b = 1.87 * timeLeft + 3