Measuring power out from solar panel

  • Is there any way that I could measure the power output of a solar panel using the ADC? The panel itself gets up to 10.5V so a voltage divider will be necessary, but how could I also go about measure the current which the solar panel is pushing in order to get the total power? Is there a way to measure current via the IO pins on the PyTrack?

    In other words, how can I create a watt meter using the LoPy and Pytrack?

  • @kbman99 This INA169 device is also interesting, because you can set the sensitivity yourself with the appropriate shunt resistor. But the INA219 device @timh mentions is even more interesting, since it takes both voltage and current, and avoids the noisy ADC of the ESP32.

  • @kbman99 probably even easier without having to worry about resistors and such is use an i2c device for measuring current and voltage like

    I am using i2c to read 4-20ma and devices on Gpy using this

  • @robert-hh Okay, definitely something to think about. I was wondering if using a super small resistor as a shunt to measure would work, then I remembered that the solar panel voltage of 10.5v wouldn't play too well with the LoPy. I suppose I could also use another larger resistor to come off the node which measures the shunt resistors voltage drop and then just calculate, based on the voltage of the larger resistors value, the actual voltage level measured.

    I've also found this breakout board on sparkfun
    Gonna look at the datasheet for the chip itself and see if it would work.

  • @kbman99 For current measuring you can use a hall effect module like the acs712. Take the one with a lowest amp range. It converts a potential free current into a DC signal, which you can measure with the ADC input.

    Edit: many of the cheap modules sold on eBay etc. contain wrong labeled chips, like a ACS713-20 instead of a ACS 712-30. They work, but have deviating properties (e.g. 20A DC instead of 30A AC). And also, most of the modules are not built for proper isolation. The chip is built to that, but not the board. So NEVER USE THEM WITH AC mains or at other dangerous voltages at the current sensing side.

Log in to reply

Pycom on Twitter