hi i need help with a circuit diagram and code if any oen can help
i need to control a DC motor using a pic16f877a where the dc motor is on a contant speed and then when the distance sensor a SHARP's GP2D12 detects diffrence in the distance it stop and resturns to a setpoint.
can someone help me with a circuit diagram and a code which would include the A/D conversion needed for the sensor and for the PWM program to be able to read data from the sensor
first time you must to build dc motor driver may be hybridge type for drive 2 direction and write code for gennerate pwm drive.
For constant speed then make circle plate and set led and ldr for reflect light for check round of motor and round / time