Hello, I have an LTSpice simulation of a programmable load for a battery cycler project I am working on. Some issues I am facing is that whenever Vds drops Vgs increases, changing the MOSFET operating region from saturation to linear. It may be component parameters or an incorrect circuit configuration, but any advice helps. I want to operate the FET in linear region and measure a near constant current at the drain. Any advice helps. At the top is also a arduino pwm control I want to apply for the gate voltage. I am assuming that Vgs should not change in response to a change in Vds.



