Go Down

Topic: How can I measure maximum range of my ohm meter? (Read 502 times) previous topic - next topic

bitrux

 :D Hello everyone I am working on a project that will measure ohm value of a resistor .

Schematic

And


Here is the code below

Code: [Select]
int analogPin= 0;
int raw= 0;
int Vin= 5;
float Vout= 0;
float R1= 1000;
float R2= 0;
float buffer= 0;

void setup()
{
Serial.begin(9600);
}

void loop()
{
raw= analogRead(analogPin);
if(raw) 
{
buffer= raw * Vin;
Vout= (buffer)/1024.0;
buffer= (Vin/Vout) -1;
R2= R1 * buffer;
Serial.print("Vout: ");
Serial.println(Vout);
Serial.print("R2: ");
Serial.println(R2);
delay(1000);
}
}



There need to be a known and another unknown resistor.

The ohm value of known resistor is supposed to be 1k ohm

So my question is, what is the max ohm range will my arduino ohm meter will be able to measure of the unknown resistor with 1k reference resistor and how to calculate it?

Thanks for giving me your attention :D ??? ???

ballscrewbob

@bitrux

Other post/duplicate DELETED
Please do NOT cross post / duplicate as it wastes peoples time and efforts to have more than one post for a single topic.

Continued cross posting could result in a time out from the forum.

Could you also take a few moments to Learn How To Use The Forum.

Other general help and troubleshooting advice can be found here.
It will help you get the best out of the forum in the future.



It may not be the answer you were looking for but its the one I am giving based on either experience, educated guess, google (who would have thunk it ! ) or the fact that you gave nothing to go with in the first place so I used my wonky crystal ball.

bitrux

#2
Oct 26, 2020, 03:48 pm Last Edit: Oct 26, 2020, 03:50 pm by bitrux
Please give me the link if the question has been asked by someone else before otherwise pls give me my answer, it's really urgent

Go Up