How to add a photocell on the basis of the figure below to control the speed of the motor？
Have a look here, where they show how to pwm an led based on the light reading of the photocell.
You just need to pwm the 293's enable pin instead.
PS to above, you will very likely find that the motor doesn't move below some or other PWM value, and you will need to experiment to see what that threshold is.
Depends on which photocell and what you plan to do with it.
This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.