1qwerty1
Newbie level 1
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
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