I am confused on how voltage and current work in a solar cell. I know that current is affected by the amount of sunlight the cell receives from the sun, and the voltage of the cell is based on the electric field of the PN junction.
When I learnt about solar cells, I thought that voltage was constant or at least close to constant, but looking at I-V curves, voltage increases for some reason and I am not sure why. I saw a video that compared the voltage output of a solar cell at different resistors, which changed as the resistance changed, so is this why the voltage increases? Also, if this is the case, does this mean voltage is dependent on the current and resistance of a circuit (instead of current being dependent on the voltage and resistance of the circuit?) because I learnt that Ohm's law stated that current is dependent on the voltage and resistance, not the other way around. Or am I just thinking about this the wrong way? Thanks for helping me!