What would I need for a small motor that can rotate back and forth like a windshield wiper?

Pretty new to all of this stuff but I need to make something for one of my classes, it’s just a bit hard work no experience. Thank you. I was thinking maybe just a regular DC motor with a switch?

submitted by /u/TheYellowChicken
[link] [comments]