Hello,
I am working on a project to do the following:
Write a program that continuously
-reads the voltage value input from a photocell
-if the photocell is getting lots of light (choose an arbitrary number), a servo turns clockwise
-if the photocell is getting less light (choose an arbitrary number), a servo turns counterclockwise
I have a SG90 servo motor and an Arduino Leonardo. Any ideas as to how I would write this code? Thanks!