why does battery light come on and off and the car cut off at a stop sign? on 1990 Honda Accord

my battery light stays on at night when i run lights and comes off and on during the day and cuts off. what is the problem?

Asked by for the 1990 Honda Accord
seek help to check battery, alternator and wirings