PDA

View Full Version : Using PIC16F877 for wheels



shaiqbashir
- 19th May 2006, 02:23
Hi guys!

well! i want to use PIC16877 for my two wheels that are driving my robot.

There is one DC motor attached with each of the two wheels so there are total Two DC motors for Two wheels. I want to use differential drive in this case. Can i use HPWM on this PIC16F877??
if yes then at what ports this is supported???


In my robot, i have to perform certain other functions while its wheels are running. So using HPWM, i think it would be possible to control other functions?

I have to use two sensors to detect a white line during operation, so should i use the interrupt option or GOSUB one?
please send me any example if u have!

can anyone plz give me some code examples????

Im a newbie to this PIC world and tried to study the datasheet but found it very very hard, please provide me with some examples so that i can understand what i have to do.

Thanks in advance!

Take carez

sougata
- 21st May 2006, 16:58
Hi Shaig,

You can use the HPWM function for two different drive outputs in your PIC. If you do not want to modify the PWM registers yourself then just use the HPWM command once and then modify the duty cycle register in your program.