Some photons are absorbed at the p-n junction; therefore a solar module is made up of photons of various energy. To represent the electrical behaviour of a solar cell, a single diode equivalent model has been utilised. A current source connected to a diode, a shunt resistance, and a series resistance component is used to simulate a perfect solar cell. Due to variations in light intensity and temperature, the parameters of the solar cell fluctuate. The mathematical model of the solar cell is developed using parameters in this study, and the model is then simulated with Matlab/Simulink. Solar cells may be used to generate renewable energy, which can be used in green instrumentation.