Simulate a CCD (activity for physics class)