Problem With PIC 16f877a and DC Motor

Status
Not open for further replies.

ankit35

Newbie level 4
Joined
Mar 6, 2013
Messages
7
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Visit site
Activity points
1,320
I am stuck with 2 problems :
1. WHen I run the HEx Code in ISIS proteus.. Motor runs but very slow in speed. If i implement this in real time, then motor will run in normal speed?

2. How To Control Left And Right Direction Of The Bot?

Thanks in advance.
 

1) proteus does not simulate motor in fast speed . you can connect oscilloscope or voltmeter to compare your code in real life and simulation
2) use l298 ic to forward and reverse.
 



Hi all, i am doing the same project DC motor with PIC16f877A + L293D and draw the circuit in proteus. * Already change D4-D5 to LED.
My problems are :
1- why, when i push one button the LED will off, but the rest of LED will blinking?
2- Why the motor did not run? Can someone check my circuit and my code.

Here also the Source code that I write in mikroC PRO for PIC.
 

ankit35,



It is mean i need to change the code?

if(TRISB.F0 == 0) //If the switch is pressed
{
TRISB.F0 = 1;
TRISD.F0 = 0;
TRISD.F1 = 0; //Motor Stop
Delay_ms(1000); //1 Second Delay
 

Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…