Hi all
First I want to thank forum owners for this great forum, which can be very useful for students and engineers.
My project is wheeled robot powered with two dc-motors and gear boxes included with the motors, I used H-Bridge L298 to drive the two motors , under the control of PIC 16F84 , I did design the robot body and it is really looks great ;
Now I had one incremental encoder i mounted it in the left wheel and I want use it to gives order to motors to move in certain directions for example:
I want to program the robot to move forward while the encoder counting then when the encoder reach a value then stop the motors, then turn right 90 degrees then stop and move forward....etc.
now I wondering how to make the 16F84 count the pulses from the encoder ; do I need another chip like counter chip , and what is the Picbasic pro codes do I need ??????
I had a good experience with PIC basic pro complier .... Thanks for reading
First I want to thank forum owners for this great forum, which can be very useful for students and engineers.
My project is wheeled robot powered with two dc-motors and gear boxes included with the motors, I used H-Bridge L298 to drive the two motors , under the control of PIC 16F84 , I did design the robot body and it is really looks great ;
Now I had one incremental encoder i mounted it in the left wheel and I want use it to gives order to motors to move in certain directions for example:
I want to program the robot to move forward while the encoder counting then when the encoder reach a value then stop the motors, then turn right 90 degrees then stop and move forward....etc.
now I wondering how to make the 16F84 count the pulses from the encoder ; do I need another chip like counter chip , and what is the Picbasic pro codes do I need ??????
I had a good experience with PIC basic pro complier .... Thanks for reading