Simulator ohmmeter problem

Hello friends,
I've now used the simulator, but it simply doesn't give me the correct voltage, only "INF". is this a bug or am I an idiot?
here ist the Link: Simulator ohmmeter problem
Pfeiffy

Bei dem Link den du gepostet hast geht es um Zeitmessung
WOKWI project nummer projects/388615780864830465

Da hast du dich wohl im Link vertan.

oh, ja, ist komisch mit dem speichern dort. Hier: https://wokwi.com/projects/388638572452156417
Pfeiffy

oops we are in the english forum.

To analyse such an error print

each and every

variable
and

each and every

step of the calculation to the serial monitor
and then you will see where the bug is

I changed all variables to float. But the bug is stil there.
I guess you have to use millivolts instead of volts

No. probably the WOKWI-simulator is unable to calculate a voltage-divider build with two resistors
I replaced your resistors with a slide-potentiometer and now it works

best regards Stefan

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.