For multipath effects and frequency fading of channels in indoor visible light communication systems. In this paper, an improved LMS algorithm is proposed to compensate for the channel. First, the channel model of indoor visible light communication and the simulation model of orthogonal frequency division multiplexing (OFDM) are built.The simulation verifies the effect of eigenvalue distribution, filter order and step size on the LMS algorithm. Secondly, the NLMS algorithm proposed in this paper solves, to a certain extent, the inherent contradiction that the convergence speed and steady-state error of the LMS algorithm cannot be reasonably coordinated. The simulation results show that: The algorithm improves the convergence speed and reduces the computational complexity compared with the LMS algorithm, which effectively improves the performance of visible light communication systems.