I want to measure current using the MAX471 sensor that outputs voltage proportional to the current (1V/A according to the datasheet). To test the module, I connected a 330 ohm resistor to the sensor and powered it from 3.3V arduino. Using ohms law, I was expecting an output voltage of around 10 mV (for ~ 10 mA) in my circuit. However, I am getting an output of around 2.17 volts which seems wrong.
Does anyone see any mistake in my circuit or how I am trying to measure the current?
Here is my circuit:
My Code:
#include <Arduino.h>
void setup()
{
Serial.begin(115200);
}
void loop()
{
int adc_val = analogRead(A5);
float vol = 3.2 / 4095 * adc_val; // using a 12 bit adc
Serial.println(vol);
delay(3000);
}