Arduino
Arduino copied to clipboard
Slightly wrong math in ReadAnalogVoltage tutorial narrative
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.
Fixed