We designed a continuous culturing apparatus for use with optogenetic systems to illuminate cultures of microbes and regularly image cells in the effluent with an inverted microscope. The culturing, sampling, imaging, and image analysis are fully automated so that dynamic responses to illumination can be measured over several days.