Smart lighting systems are capable of producing light when and where it is needed. Such functionality can be achieved with adaptive optical systems, which consist of one or multiple adjustable components, enabling illumination with a variable radiation pattern. This paper introduces the design of a compact, tunable optical system, allowing illumination with variable beam size and beam direction. We demonstrate how this system can be combined with computer vision and a feedback loop, to achieve a fully autonomous, smart illumination system.