I believe the error can be fixed with the change in the the code shown below...
- Code: Select all
while(res>=1000)
{res /=10;
mult++;
if(res<1000 && round(res)==1000){
res=round(res)}
}
The while loop that is used to figure the multiplier value doesn't account for values that will later be rounded to be equal to 1000. With this code it checks for that and loops again if that is the case. Anyway, I hope this helps other people. I was really getting confused, even though those are really invalid resistor values...lol.
Thanks for the great resource and learning tools.
Chris