LEDs turning on one after the other when the Human Sensor is activated

Worked on programming an Arduino with code for the Human Sensor. Then tested it using LEDs on a breadboard. Played around with code until I managed to get 13 LEDs to turn on one after the other with shorter and shorter delays between them (i.e. there is less and less time between each consecutive LED turning on)

 

Advertisements