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.

Dc motor with l293d using pic 16f877a

Status
Not open for further replies.

adam_adi

Newbie level 3
Newbie level 3
Joined
Mar 5, 2013
Messages
4
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Visit site
Activity points
1,306
Hi...i'm new with pic16f877a.i need to design the code by using MPLAB IDE v8.70.my schematic will put 2 push button switch.first switch if we press dc motor will run anticlockwise about 360 deg or depend on delay..then when we press switch 2 it will run anticlockwise about 720 deg or Untitled.jpg depend on delay.i'm beginner in this world.any body can help me.here is my schematic........for lcd it not have problem for me and i already declared lcd using portD...TQ!!
 

can dc motor stop by delay?means we put the delay to set how long it rotate...for additional information i'm using hi tech c..hope you can help me.tq!
 

Do you mean motor runs for 5 seconds at full speed and then stops? I don't know whether dc motor stops instantly or take some time like 10ms, 100ms etc... before stops. But you can use delay to start and stop motor.
 

yes..but how can i write the code..i'm not have idea to create the code..may u help me please..tq!
 


Code C - [expand]
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#define MOTOR PORTB.F0
 
void main() {
 
    TRISB = 0x00;
    PORTB = 0x00;
    while(1) {
 
        MOTOR = 1;
        Delay_ms(5000);
        MOTOR = 0;
 
    }
 
}

 
i'm try to run in my mplab but it show the error...i'm try to modify ur code it ok but when i put in Proteus look does not any function.motor not rotate..
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top