the third one begins to diminish if a speed detector is unable to determine the moving direction of the pedestrian the brightness of road lamps beginning with each second road lamp before and after the pedestrian follows a diminution of q per road lamp based on this principle if q 25 the brightness of the fifth road lamp before the pedestrian will be diminished to be zero i e road lamps beginning with the fifth one do not need to be lighted up if a detector detects a vehicle passing by three road lamps before the vehicle and one road lamp after the vehicle are lighted up even if there is no vehicle coming behind it is better to turn on one road lamp after the vehicle such that the driver will feel secure when he or she looks in the rear view mirror because of the light behind the vehicle road lamps beginning with the fourth one do not need to be lighted up for the execution of the road lamp lighting program among the priority levels of executing the program after a signal is received the first is the detector of the road lamp where the pedestrian or the vehicle is at the second is the detector of adjacent three road lamps which detects a vehicle and the last is the detector of adjacent four road lamps which detects a pedestrian when the detector of the road lamp where a pedestrian or a vehicle is at or the detector of the adjacent road lamps sends signals.