Question
I have 2 LDR sensors, they are connected to A0 and A1 pins, and the servo motor is connected to C2 pin. I want to
I have 2 LDR sensors, they are connected to A0 and A1 pins, and the servo motor is connected to C2 pin. I want to make a light tracking system. If the LDR on the right side has more light, I want the motor to turn to the right side, that is, to follow the light. If the light on the left side has more light, I want it to turn left, that is, follow it. In short, wherever I shine the light, the servo will turn there. I am using PIC16F887, I need ccs c codes for this. If this does not happen, another option could be PIC16F887A or PIC16F877. But the best would be pic16f887
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started