Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Categories > Micro Controllers


Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc.

Reply
 
Thread Tools Display Modes
Old 15th May 2008, 07:08 AM   (permalink)
Experienced Member
mesamune80 is on a distinguished road
Send a message via ICQ to mesamune80 Send a message via MSN to mesamune80 Send a message via Yahoo to mesamune80
Default

Ya i folow exactly what it said to drive the motor but i dunno what i missed out as my motor not moving
mesamune80 is offline   Reply With Quote
Old 15th May 2008, 07:20 AM   (permalink)
Experienced Member
 
ericgibbs is a splendid one to beholdericgibbs is a splendid one to beholdericgibbs is a splendid one to beholdericgibbs is a splendid one to beholdericgibbs is a splendid one to beholdericgibbs is a splendid one to beholdericgibbs is a splendid one to beholdericgibbs is a splendid one to behold
Default

Quote:
Originally Posted by mesamune80
Ya i folow exactly what it said to drive the motor but i dunno what i missed out as my motor not moving
hi,
Can you post ALL of the PIC program so that we can see the method that you are using.?

If its in 'C language' someone else will help out, I write in assembler.
__________________
Eric
"Good enough is Perfect"

PIC tutorials:
Nigel's: www.winpicprog.co.uk/
Gramo's: www.digital-diy.net/
Bill's: www.blueroomelectronics.com/
ericgibbs is offline   Reply With Quote
Old 15th May 2008, 07:25 AM   (permalink)
Experienced Member
mesamune80 is on a distinguished road
Send a message via ICQ to mesamune80 Send a message via MSN to mesamune80 Send a message via Yahoo to mesamune80
Default

this is my test program ,cos i want to make sure this motor can run 1st

Symbol pulse1 = PORTC.0 'pulse for m1
Symbol dir1 = PORTC.1 'direction for m1
Symbol pulse2 = PORTC.2
Symbol dir2 = PORTC.3 'direction for m2 vexta

TRISC = %11110000

loop:

dir2 = 1
High PORTC.2 'pulse M2
WaitUs 250
Low PORTC.2 'pulse M2
WaitUs 500

Goto loop

End
mesamune80 is offline   Reply With Quote
Old 15th May 2008, 09:06 AM   (permalink)
Experienced Member
 
ericgibbs is a splendid one to beholdericgibbs is a splendid one to beholdericgibbs is a splendid one to beholdericgibbs is a splendid one to beholdericgibbs is a splendid one to beholdericgibbs is a splendid one to beholdericgibbs is a splendid one to beholdericgibbs is a splendid one to behold
Default

Quote:
Originally Posted by mesamune80
this is my test program ,cos i want to make sure this motor can run 1st

Symbol pulse1 = PORTC.0 'pulse for m1
Symbol dir1 = PORTC.1 'direction for m1
Symbol pulse2 = PORTC.2
Symbol dir2 = PORTC.3 'direction for m2 vexta

TRISC = %11110000

loop:

dir2 = 1
High PORTC.2 'pulse M2
WaitUs 250
Low PORTC.2 'pulse M2
WaitUs 500

Goto loop

End
hi,
A quick look at the 'program' would suggest to me that it does not meet the requirements of the motor.!

Do you have a copy of the manufacturers software/program.?
__________________
Eric
"Good enough is Perfect"

PIC tutorials:
Nigel's: www.winpicprog.co.uk/
Gramo's: www.digital-diy.net/
Bill's: www.blueroomelectronics.com/
ericgibbs is offline   Reply With Quote
Old 15th May 2008, 09:24 AM   (permalink)
Experienced Member
mesamune80 is on a distinguished road
Send a message via ICQ to mesamune80 Send a message via MSN to mesamune80 Send a message via Yahoo to mesamune80
Default

i am using PIC uC PIC16F877 to control this motor ,software i am using PIC Simulator IDE (basic based)but according to the manual i need to power up the pulse pins and also the directional pin is it? i mean pin 1 and pin 3 i need to connect to 5VDC and pin 2 and 4 to pulse input pin (PORTC.2) and (PORTC.3) one output pulse signal and another one direction signal.
mesamune80 is offline   Reply With Quote
Old 15th May 2008, 09:29 AM   (permalink)
Experienced Member
 
ericgibbs is a splendid one to beholdericgibbs is a splendid one to beholdericgibbs is a splendid one to beholdericgibbs is a splendid one to beholdericgibbs is a splendid one to beholdericgibbs is a splendid one to beholdericgibbs is a splendid one to beholdericgibbs is a splendid one to behold
Default

Quote:
Originally Posted by mesamune80
i am using PIC uC PIC16F877 to control this motor ,software i am using PIC Simulator IDE (basic based)but according to the manual i need to power up the pulse pins and also the directional pin is it? i mean pin 1 and pin 3 i need to connect to 5VDC and pin 2 and 4 to pulse input pin (PORTC.2) and (PORTC.3) one output pulse signal and another one direction signal.
hi,
Quote:
Do you have a copy of the manufacturers software/program.?
You must meet the requirements of the motor as shown in the extract attached.

Do you have the controller and the motor.?
The controller expects to be driven from a MCU.
Attached Images
File Type: jpg screenhunter5.jpg (85.2 KB, 15 views)
__________________
Eric
"Good enough is Perfect"

PIC tutorials:
Nigel's: www.winpicprog.co.uk/
Gramo's: www.digital-diy.net/
Bill's: www.blueroomelectronics.com/
ericgibbs is offline   Reply With Quote
Old 16th May 2008, 12:36 AM   (permalink)
Experienced Member
mesamune80 is on a distinguished road
Send a message via ICQ to mesamune80 Send a message via MSN to mesamune80 Send a message via Yahoo to mesamune80
Default

ya i am driving the controller with PIC uC, it seem my motor are now working,as i though the controller is internally power up.after study the extract which you posted it need to connect to VDC because b 4 this i straight away connect the uC input to the corresponding pin without any power go in to the corresponding pin :-)

Last edited by mesamune80; 16th May 2008 at 07:49 AM.
mesamune80 is offline   Reply With Quote
Old 26th May 2008, 03:14 AM   (permalink)
Experienced Member
mesamune80 is on a distinguished road
Send a message via ICQ to mesamune80 Send a message via MSN to mesamune80 Send a message via Yahoo to mesamune80
Default

Hi eric now i have 1 issue ,the problem is my motor rotate in a slow speed how can i speed it up it is SLOW.....=_="
mesamune80 is offline   Reply With Quote
Old 26th May 2008, 06:30 AM   (permalink)
Experienced Member
 
ericgibbs is a splendid one to beholdericgibbs is a splendid one to beholdericgibbs is a splendid one to beholdericgibbs is a splendid one to beholdericgibbs is a splendid one to beholdericgibbs is a splendid one to beholdericgibbs is a splendid one to beholdericgibbs is a splendid one to behold
Default

Quote:
Originally Posted by mesamune80 View Post
Hi eric now i have 1 issue ,the problem is my motor rotate in a slow speed how can i speed it up it is SLOW.....=_="
hi,
Are you pulsing the motor as specified in the datasheet, ie 10uSec with a 50%duty cycle.

Have you checked the pulse waveform using an oscilloscope, also what supply voltage do you have to the motor.?
__________________
Eric
"Good enough is Perfect"

PIC tutorials:
Nigel's: www.winpicprog.co.uk/
Gramo's: www.digital-diy.net/
Bill's: www.blueroomelectronics.com/

Last edited by ericgibbs; 26th May 2008 at 06:31 AM.
ericgibbs is offline   Reply With Quote
Old 26th May 2008, 06:59 AM   (permalink)
Experienced Member
mesamune80 is on a distinguished road
Send a message via ICQ to mesamune80 Send a message via MSN to mesamune80 Send a message via Yahoo to mesamune80
Default

i am using pulse like

loop:

dir2 = 1
High PORTC.2
WaitUs 500
Low PORTC.2
WaitUs 500
Goto loop

the motor is geared so is 0.036 degree/pulse (basic step angle)

Gear ratio is 20:1

so all this will resulted in my very slow output.

my motor driver is powered with 24VDC.
mesamune80 is offline   Reply With Quote
Old 26th May 2008, 07:23 AM   (permalink)
Experienced Member
 
ericgibbs is a splendid one to beholdericgibbs is a splendid one to beholdericgibbs is a splendid one to beholdericgibbs is a splendid one to beholdericgibbs is a splendid one to beholdericgibbs is a splendid one to beholdericgibbs is a splendid one to beholdericgibbs is a splendid one to behold
Default

Quote:
Originally Posted by mesamune80 View Post
i am using pulse like

loop:

dir2 = 1
High PORTC.2
WaitUs 500
Low PORTC.2
WaitUs 500
Goto loop

the motor is geared so is 0.036 degree/pulse (basic step angle)

Gear ratio is 20:1

so all this will resulted in my very slow output.

my motor driver is powered with 24VDC.
Hi,
Looking at these figures, it will be slow, reduce the pulses to say 50uSec as a starting point.
If that works OK, reduce to 25usec and retest.

Lets know what you find.
__________________
Eric
"Good enough is Perfect"

PIC tutorials:
Nigel's: www.winpicprog.co.uk/
Gramo's: www.digital-diy.net/
Bill's: www.blueroomelectronics.com/
ericgibbs is offline   Reply With Quote
Old 26th May 2008, 07:33 AM   (permalink)
Experienced Member
mesamune80 is on a distinguished road
Send a message via ICQ to mesamune80 Send a message via MSN to mesamune80 Send a message via Yahoo to mesamune80
Default

okay i'll try it out this one.thanks.
mesamune80 is offline   Reply With Quote
Old 28th May 2008, 05:50 AM   (permalink)
Experienced Member
mesamune80 is on a distinguished road
Send a message via ICQ to mesamune80 Send a message via MSN to mesamune80 Send a message via Yahoo to mesamune80
Default

Eric sorry for late reply,i just tried out the timing just now ,i used 50us for 50% duty cycle pulse,the speed had improved but it still quite slow i do you think this is how far it can go?
mesamune80 is offline   Reply With Quote
Old 28th May 2008, 06:23 AM   (permalink)
Experienced Member
 
ericgibbs is a splendid one to beholdericgibbs is a splendid one to beholdericgibbs is a splendid one to beholdericgibbs is a splendid one to beholdericgibbs is a splendid one to beholdericgibbs is a splendid one to beholdericgibbs is a splendid one to beholdericgibbs is a splendid one to behold
Default

Quote:
Originally Posted by mesamune80 View Post
Eric sorry for late reply,i just tried out the timing just now ,i used 50us for 50% duty cycle pulse,the speed had improved but it still quite slow i do you think this is how far it can go?
hi,
Look at my May15 posted drawing... the limit is 5uSec, which should make it ten times faster than 50uSec, providing your motor is able to respond to 5uSec pulses...OK.

As I suggested, keep reducing the pulse time until you find the motors limit.
__________________
Eric
"Good enough is Perfect"

PIC tutorials:
Nigel's: www.winpicprog.co.uk/
Gramo's: www.digital-diy.net/
Bill's: www.blueroomelectronics.com/
ericgibbs is offline   Reply With Quote
Old 28th May 2008, 07:59 AM   (permalink)
Experienced Member
mesamune80 is on a distinguished road
Send a message via ICQ to mesamune80 Send a message via MSN to mesamune80 Send a message via Yahoo to mesamune80
Default

OK,i;ll try doing that hiope can get the motor fastest speed that i desired. thanks!!! ^_^
mesamune80 is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Latest
LCD Display karenhornby Electronic Projects Design/Ideas/Reviews 27 22nd February 2008 07:42 PM
Using Oscilloscopes mechie Electronic Theory 9 29th November 2007 09:48 PM
Output = Input - Problems adamthole Micro Controllers 20 24th April 2007 04:09 AM
uuffff how doess this stupid ting work lol cyprio7 General Electronics Chat 7 9th October 2005 06:55 PM
convert input resistance to different output, but how?! pcoghlan Electronic Projects Design/Ideas/Reviews 7 9th July 2004 09:59 PM



All times are GMT. The time now is 02:37 AM.


Electronic Circuits  |  Radio Controlled
Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.