A pendulum-type DNA nanoswitch, which can perform a reversible on/off molecular motion at an about 9.1-nm scale is developed as a proof-of-concept, and the sequence-specific recognition and quantification of target olignucleotides are demonstrated utilizing this screening scheme.