We use the chaotic signal generated by a field-programmable gate array (FPGA) to establish a digital chaotic pulse lidar system, which can achieve mid-range detection and high ranging accuracy without a complex optical structure. We employ the FPGA to generate random sequences with different modulation rates based on different chaotic iterative equations and initial values. By selecting the initial value and improved logistic equations, we successfully achieve centimeter-level ranging accuracy. Experiments have proved that the digital chaotic lidar system can effectively resist the interference of chaotic signals, square wave signals, and sine wave signals with modulation frequencies of 10 MHz, 100 MHz, 200 MHz, and 1 GHz, showing its strong anti-interference capability.