CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to support@ccsinfo.com

Dc motor control

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
amsyar



Joined: 15 Mar 2011
Posts: 9
Location: malaysia

View user's profile Send private message Yahoo Messenger ICQ Number

Dc motor control
PostPosted: Tue Mar 15, 2011 10:52 pm     Reply with quote

Hi everyone. Can somebody help me? I have a problem to control DC using PIC16F877A. I know I need to use motor driver. Currently I am using L293D to control the motor. But the problem is I do not know how to connect the Vss and Vs to the microcontroller.
FvM



Joined: 27 Aug 2008
Posts: 2337
Location: Germany

View user's profile Send private message

PostPosted: Tue Mar 15, 2011 11:59 pm     Reply with quote

Quote:
I do not know how to connect the Vss and Vs to the microcontroller

Vss is the logic supply, in most cases it would be connected to the 5V µC supply. Vs is is the motor supply and will be choosen according to the motor requirements.
amsyar



Joined: 15 Mar 2011
Posts: 9
Location: malaysia

View user's profile Send private message Yahoo Messenger ICQ Number

PostPosted: Wed Mar 16, 2011 1:02 am     Reply with quote

In Sk40C there are two supply right? Vdd and Vin. Can you tell me which one is connected to Vs and which one connected to Vss.
FvM



Joined: 27 Aug 2008
Posts: 2337
Location: Germany

View user's profile Send private message

PostPosted: Wed Mar 16, 2011 1:15 am     Reply with quote

I guess, Vdd is the 5V processor supply. You have to find out yourself, if Vin is suitable as motor supply, we can't know.
amsyar



Joined: 15 Mar 2011
Posts: 9
Location: malaysia

View user's profile Send private message Yahoo Messenger ICQ Number

PostPosted: Wed Mar 16, 2011 2:09 am     Reply with quote

Can you share with me the source code to control DC motor? I am using MPLAB software. I have one more question. Did we need to connect ground to pin number 8 ?
FvM



Joined: 27 Aug 2008
Posts: 2337
Location: Germany

View user's profile Send private message

PostPosted: Wed Mar 16, 2011 2:30 am     Reply with quote

Pin 8 of L293D? Acording to my datasheet it's Vs (motor supply voltage).
amsyar



Joined: 15 Mar 2011
Posts: 9
Location: malaysia

View user's profile Send private message Yahoo Messenger ICQ Number

PostPosted: Wed Mar 16, 2011 6:24 am     Reply with quote

I know that we need to connect power supply to pin number 8. but in some datasheet, I found that we need to connect pin 8 to Vs and ground. Is it true
FvM



Joined: 27 Aug 2008
Posts: 2337
Location: Germany

View user's profile Send private message

PostPosted: Wed Mar 16, 2011 6:47 am     Reply with quote

Quote:
we need to connect pin 8 to Vs and ground

How and?
amsyar



Joined: 15 Mar 2011
Posts: 9
Location: malaysia

View user's profile Send private message Yahoo Messenger ICQ Number

PostPosted: Wed Mar 16, 2011 7:03 am     Reply with quote

So that's mean we do not need to connect to ground? can you forward the datasheet to me? my email is as below
busyra_amsyar@yahoo.com
thanks for your kindness
gpsmikey



Joined: 16 Nov 2010
Posts: 588
Location: Kirkland, WA

View user's profile Send private message

PostPosted: Wed Mar 16, 2011 12:55 pm     Reply with quote

You need to post a copy of your schematic -- frantically changing wires around is most likely to let the magic smoke out and there is no way to put it back in. To post an image, you need to have the image available on a public server. Then include the url to the image in your post and highlight the image url and click the "Img" button above the posting area. You will end up with the image as part of your post as below (this will date me - an old core memory card !! )



mikey
_________________
mikey
-- you can't have too many gadgets or too much disk space !
old engineering saying: 1+1 = 3 for sufficiently large values of 1 or small values of 3
temtronic



Joined: 01 Jul 2010
Posts: 9202
Location: Greensville,Ontario

View user's profile Send private message

PostPosted: Wed Mar 16, 2011 1:51 pm     Reply with quote

I put many of them into PDP-8s a long time ago.....
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group