In this paper, we describe our strategy on the design, construction, and characterization of a novel molecular device. By integrating a photoregulated fluorescent switch and a DNA-based nanomachine, the distance-dependent FRET process between fluorescein and photochromic moieties can be further modulated by the spatial output of a unique proton-driven DNA manomachine. This device could be reversibly switched in a reliable manner, and the fluorescence variation behavior, exhibited by this dually modulated fluorescence switch, can also mimic the function of a Boolean logic operation.