Arduino icon indicating copy to clipboard operation
Arduino copied to clipboard

Slightly wrong math in ReadAnalogVoltage tutorial narrative

Open amfriedman opened this issue 12 years ago • 1 comments

On this page http://arduino.cc/en/Tutorial/ReadAnalogVoltage ...

Under the heading entitled "Code" ...

float voltage= sensorValue * (5.0 / 1024.0); ... should read ... float voltage= sensorValue * (5.0 / 1023.0);

While this tiny math error appears in the line-by-line explanation, it is correct in the full code example at the bottom.

amfriedman avatar Jan 02 '14 00:01 amfriedman

Fixed

shfitz avatar Feb 02 '14 10:02 shfitz