Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronic 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.

Register Log in

PIC 16f877 DC motor control

Status
Not open for further replies.

omsi

Member level 5
Joined
Jan 24, 2006
Messages
93
Helped
7
Reputation
14
Reaction score
4
Trophy points
1,288
Location
London
Activity points
2,105
pic16f877 dc motor

hi,
if u search for program for dc motor controller using pic16f877 u get the sample program for that using pwm.try out.
 

jymoo30

Newbie level 4
Joined
Oct 24, 2005
Messages
6
Helped
1
Reputation
2
Reaction score
1
Trophy points
1,283
Activity points
1,332
using encoder to pic16f877a

Hi guys...i'm also having a same job with u. I got to use PIC16F876 to generate PWM to control the motor bridge with feedback system and to change the direction at the same time.

Is there any way to obtain the sample program regarding to this case?
 

coshkun

Full Member level 2
Joined
Aug 27, 2005
Messages
126
Helped
18
Reputation
36
Reaction score
10
Trophy points
1,298
Activity points
2,214
pic16f877a and dc motor

I've tried to simulate pwm with isis.I can see the pwm waveform on the scope but i can't see any voltage when i measure with a dc voltmeter.What's the problem?
 

minisan

Junior Member level 1
Joined
Dec 15, 2005
Messages
19
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,489
pwm using pic16f877a

hi guys,
i am working on the same project too... mind to share your schematic circuit?
 

coshkun

Full Member level 2
Joined
Aug 27, 2005
Messages
126
Helped
18
Reputation
36
Reaction score
10
Trophy points
1,298
Activity points
2,214
pic16f877 motor control

Here's a ISIS model on controlling DC motor with PWM.It's in PIC BASIC.
 
  • Like
Reactions: baristura

    V

    points: 2
    Helpful Answer Positive Rating

    baristura

    points: 2
    Helpful Answer Positive Rating

kordix

Member level 3
Joined
Jan 18, 2006
Messages
58
Helped
8
Reputation
16
Reaction score
4
Trophy points
1,288
Activity points
1,825
dc motor control with pic16f877

tipically, that's what u need!
 
  • Like
Reactions: xiexin

    coshkun

    points: 2
    Helpful Answer Positive Rating

    xiexin

    points: 2
    Helpful Answer Positive Rating

minisan

Junior Member level 1
Joined
Dec 15, 2005
Messages
19
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,489
pwm using pic16f877

thank you very much! Does opto-encoder a typical way for speed sensing? Is there any alternative to sense the speed?
 

coshkun

Full Member level 2
Joined
Aug 27, 2005
Messages
126
Helped
18
Reputation
36
Reaction score
10
Trophy points
1,298
Activity points
2,214
how cuntrol pwm inpic16f877

Also you can you use a tacometer to sense the speed but that's the older way of doing this.
 

    V

    points: 2
    Helpful Answer Positive Rating

coshkun

Full Member level 2
Joined
Aug 27, 2005
Messages
126
Helped
18
Reputation
36
Reaction score
10
Trophy points
1,298
Activity points
2,214
control motor pic16f877

What do you use in your dc contrller to drive the motor? H-bridge,MOSFETs ... etc?
 

minisan

Junior Member level 1
Joined
Dec 15, 2005
Messages
19
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,489
16f877 dc motor

Yes. Full bridge with mosfets. Controlled by PIC16F877A.
 

kiddd

Newbie level 3
Joined
May 7, 2006
Messages
4
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,393
picc pwm

minisan said:
thank you very much! Does opto-encoder a typical way for speed sensing? Is there any alternative to sense the speed?

how about hall effect sensor....try this... sense the magnitude field of the DC motor and output digtial signal back to PIC...
 

saeed_pk

Full Member level 4
Joined
May 20, 2006
Messages
238
Helped
35
Reputation
68
Reaction score
27
Trophy points
1,308
Location
Islamabad, Pakistan
Activity points
2,667
pic16f877 pwm controller

Can any body tell are there any predefined PWM, ADC, UART function in HItech C Compiler i m using PICC Version 8.03PL1
PLease help
 
  • Like
Reactions: aqua60

    aqua60

    points: 2
    Helpful Answer Positive Rating

syahrul.s

Junior Member level 2
Joined
Aug 18, 2007
Messages
22
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,391
pic 16f hall

any sample of using PIC 16f877 with the hall effect speed sensor? thanx
 

hassan1980

Full Member level 4
Joined
Jan 14, 2005
Messages
204
Helped
9
Reputation
18
Reaction score
6
Trophy points
1,298
Activity points
1,348
dc motor to pic16f877a

This code written in Proton Plus Compiler to control the illumination of the LED

device 16f630

xtal = 10
all_digital = 1
dim VALUE as byte
symbol SW1 = portc.0
SYMBOL SW2 = PORTc.1
value = 0

CHK1:
if value < 255 then
IF SW1 = 0 THEN
VALUE = VALUE + 1
ENDIF
endif

if value > 0 then
IF SW2 = 0 THEN
VALUE = VALUE - 1
endif
ENDIF

pwm porta.0, value, 100

goto CHK1

END
 

syahrul.s

Junior Member level 2
Joined
Aug 18, 2007
Messages
22
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,391
16f877a control motor

hi
whats the best compiler for pic16f877a??
 

glenjoy

Banned
Joined
Jan 1, 2004
Messages
963
Helped
72
Reputation
146
Reaction score
20
Trophy points
1,298
Location
Philippines
Activity points
0
pwm ccs 16f877

syahrul.s said:
hi
whats the best compiler for pic16f877a??
Search the board, you will get your answer. But I think any compiler is good depending on the kind of application.

You can use CCS C, it is user friendly, but don't expect that it is the best.
 

hassan1980

Full Member level 4
Joined
Jan 14, 2005
Messages
204
Helped
9
Reputation
18
Reaction score
6
Trophy points
1,298
Activity points
1,348
dcmotor+pic16f877a

glenjoy said:
syahrul.s said:
hi
whats the best compiler for pic16f877a??
Search the board, you will get your answer. But I think any compiler is good depending on the kind of application.

You can use CCS C, it is user friendly, but don't expect that it is the best.
Dearfriend, glenjoy

I prefer to use Proton Plus Compiler it is powerfull compiler
 

predator_hbk

Newbie level 1
Joined
Sep 19, 2009
Messages
1
Helped
1
Reputation
2
Reaction score
1
Trophy points
1,283
Location
malaysia
Activity points
1,283
Re: dc motor to pic16f877a

hassan1980 said:
This code written in Proton Plus Compiler to control the illumination of the LED

device 16f630

xtal = 10
all_digital = 1
dim VALUE as byte
symbol SW1 = portc.0
SYMBOL SW2 = PORTc.1
value = 0

CHK1:
if value < 255 then
IF SW1 = 0 THEN
VALUE = VALUE + 1
ENDIF
endif

if value > 0 then
IF SW2 = 0 THEN
VALUE = VALUE - 1
endif
ENDIF

pwm porta.0, value, 100

goto CHK1

END
 
  • Like
Reactions: xiexin

    xiexin

    points: 2
    Helpful Answer Positive Rating
Status
Not open for further replies.
Toggle Sidebar

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top