The invention relates to the technical field of green communication, and discloses a
visible light communication system and method based on CDMA (
Code Division Multiple Access), the
system comprises a transmitting end module, a visible light channel module, a receiving end module and a dynamic optimization module, by combining a CDMA multiple
access technology and OFDM (
Orthogonal Frequency Division Multiplexing) modulation, multi-user efficient access and spectrum resource dynamic allocation are realized, and the
visible light communication efficiency is improved. User data streams are distinguished based on orthogonal spreading codes, and multi-user interference is effectively suppressed; through an OFDM
subcarrier mapping and self-adaptive power
allocation algorithm, the
subcarrier transmitting power is optimized, the spectrum
utilization rate is improved, the problem of
resource allocation rigidness in a traditional TDMA / FDMA technology is solved, the communication capacity and the
data transmission efficiency in a multi-user scene are remarkably improved, and by measuring the
signal-to-
noise ratio and the
path loss of a channel in real time, the transmission efficiency of the multi-user scene is improved. And the spreading code length and the OFDM
modulation order are dynamically adjusted, and
signal attenuation and
distortion caused by complex illumination conditions and a
multipath effect are reduced.