Bonus Challenge! You will combine what you know about LED’s, photoresistors, and servos to complete a servo sweep circuit. A photo-resistor will be attached on the arm of a servo motor. It will sweep back and forth to look for the brightest LED light in front of it as shown in the picture. (Wires are not hooked up, image is only used for visualization purposes). Three LEDs will be placed side by side and one of them will randomly light up. The servo will search for the LED and when found, the fourth LED will light up for a second, indicating that a LED is found. Next, another LED will light up and the process repeats.
1 Metro M0 Express
1 breadboard
1 photoresistor
1 micro servo
4 LEDs
Wires
Image from Intro to Arduino