Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Problem With PIC 16f877a and DC Motor

Status
Not open for further replies.

ankit35

Newbie level 4
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.
 

motor 1.JPG

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.
bt code.JPG
 

ankit35,

l293d.JPG

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

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top