| Author |
Message |
1qwerty1
Joined: 09 Mar 2008 Posts: 1
|
09 Mar 2008 18:01 controlling a DC Motor using pic16F877 and a distance sensor |
|
|
|
|
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
|
|
| Back to top |
|
 |
dhana
Joined: 29 Feb 2008 Posts: 2
|
12 Mar 2008 10:39 controlling a DC Motor using pic16F877 and a distance 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
|
|
| Back to top |
|
 |
Google AdSense

|
12 Mar 2008 10:39 Ads |
|
|
|
|
|
|
| Back to top |
|
 |
makri
Joined: 01 Jan 2004 Posts: 126 Location: India, Kerala
|
14 Mar 2008 18:08 Re: controlling a DC Motor using pic16F877 and a distance se |
|
|
|
|
see this
http://www.edaboard.com/ftopic155264.html
makri
Added after 9 minutes:
see this pdf very good for pic and motor control
http://kcchu888.tripod.com/Ch8_MCU2.pdf
makri
|
|
| Back to top |
|
 |
harakiri
Joined: 24 May 2008 Posts: 4
|
24 May 2008 3:54 Re: controlling a DC Motor using pic16F877 and a distance se |
|
|
|
|
| I am on the same project with u... i am woriking with it now..... I am using C... i will ppost anything if it still can help.. .
|
|
| Back to top |
|
 |