A little explanation first.
I am working on an Arduino project where I want to measure photovoltaic power generation by measuring voltage and current of an array of 10 small PV modules at 5.5 V. Maximum current output is 1.2 A. This PV array is powering up the Arduino while charging a battery.
I have successfully used a voltage divider to measure PV voltage, but I am having a really hard time in measuring current. I tried using a ACS712 hall sensor but the current draw is too low and the sensor doesn't identify it.
The question follows.
So I would like to use a resistor with a low ohmic value to measure voltage drop across it and estimate current draw.
Since using a resistor to measure current draw is the most inefficient circuit I can think of, I would like to use an SPDT relay to temporary switch on the "resistor circuit" and measure current. After the measurement, I would switch off the resistor circuit and use the normal circuit.
On another topic I read about the SPDT analog switch TS5A3157 by Texas Instruments, which does exactly what I am looking for. Only problem is it can only work with currents up to 100 mA, which is not enough.
So, could anyone recommend another SPDT?
Or should I switch to another type of switch (ahah), such as a mechanical relay?
Many thanks for your help!
As explained above, I am measuring a maximum current of 1.2 Amps (from PV Panels). Nonetheless, I would say typical current draw will be around 50 mA when all of my sensors are on (temperature, LDR resistor, pressure sensor).
I read somewhere (here) that a 4.9 ohm resistor could work pretty good: 1 mA of draw translates to 1 mV of voltage drop. So 50 mA would mean 0.24 V voltage drop, which is inacceptable in my view.
That's the reason why I thought about a switch: to power the resistor only for a few seconds in order to take a measurement.