8 years, 5 months ago.

Why we've to multiplicate the read value in the 0 to 3300 range

Hi,

I didn't understand why we've to multiplicate the measurement value in the range between 0 to 3300. << code title=include the mbed library sample >>

  1. include "mbed.h"

Serial pc(SERIAL_TX, SERIAL_RX); AnalogIn analog_X(PB_15);

int main() { float measX;

pc.printf("Analog X Converter\n");

while(1) { measX = analog_X.read(); Converts and read the analog input value (value from 0.0 to 1.0) measX = measX * 3300;Change the value to be in the 0 to 3300 range pc.printf("x: %.0f \r", measX ); wait(0.5);

} }

<< /code >>

What's corresponding this value? Volts or mV?

Thanks for answering.

Be the first to answer this question.