Taking the "Blink" sketch from the Arduino Library and expanding it, I was able to create a blinking sequence that resembles street lights. After that we added a potentiometer that allows us to control the speed of the flashing lights. The script is slightly more difficult than our first attempt.
...
https://www.youtube.com/watch?v=yFhaSN7vYIo