Least squares fit of the diode equation

This page uses the Multiparametric nonlinear regression code from https://github.com/jonasalmeida/fminsearch to fit the diode equation,

$$I = I_S\left(\exp\left(\frac{e(V-IR_S)}{\eta k_BT}\right) - 1\right)\hspace{0.5cm}\text{[A]}.$$

The parameters in this equation are the saturation current $I_S$, the nonideality factor $\eta$ and the series resistance $R_S$. More details of a pn-diode can be found at PN diode IV charateristics and for a Schottky diode at Thermionic-emission current in a Schottky diode.

Copy the measured data measureed in forward bias into the textbox with the red border. The equation was derived for forward bias so only the forward bias data should eb uded. The first column should be the voltage in volts and the second column should be the current in amperes. Press the 'remove commas' button if necessary. The columns should only be separated by white spaces.

 $V$   $I$

$T=$ K
  $I_S=$ ,  $\eta = $,  $R_S = $

$I$ [A]

lg$\;I/A$

$V$ [V]