Pages: [1]   Go Down
Author Topic: Do Arduino Due' timers give us only low frequencies?!  (Read 1469 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 29
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi All!

According to the the following thread:

http://arduino.cc/forum/index.php?topic=130423.0

I used CLOCK_4 and six Timers to have six Frequency in range of KHZ. Let's say 1KHZ 2KHZ and so on.

Using LED, it shows that it is blinking fast as if it is only On and does not blink. Unfortunately I don't have Oscilloscope and I don't really know
if this is 1KHZ 3 KHZ or so ...

but I have stepper motor and its driver.... When I install the whole system, the motor turns in 1KHZ 2KHZ but so slow

and higher frequency let's say 10KHZ it stops!

I have no idea but I know this is not just a voltage it is a frequency but it might be with not enough amplitude?!!!

I have no clue!

Do you know any ways to get a Kiloo Herz frequency to turn the motors?

Thank you!

Logged

Seattle, WA USA
Offline Offline
Brattain Member
*****
Karma: 644
Posts: 50452
Seattle, WA USA
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
Do you know any ways to get a Kiloo Herz frequency to turn the motors?
What kind of frequency do you need to turn a motor on? Once a century is high enough.

What are you really trying to do? Why aren't you doing it the conventional way?
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 29
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
Do you know any ways to get a Kiloo Herz frequency to turn the motors?
What kind of frequency do you need to turn a motor on? Once a century is high enough.

What are you really trying to do? Why aren't you doing it the conventional way?

I need a range of frequency between 1KHZ and 21KHZ. This Frequency will generate on the output of the Arduino Due and it passes over the driver to turn on the motors. What's the conventional way please?
Logged

Brasil
Offline Offline
Full Member
***
Karma: 4
Posts: 125
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi,
Try using my library: github.com/ivanseidel/DueTimer

It has an implementation to choose the BEST timer division, for every frequency...

Notify me if worked! (or not worked =])

Ivan
Logged


Offline Offline
Newbie
*
Karma: 0
Posts: 29
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi,
Try using my library: github.com/ivanseidel/DueTimer

It has an implementation to choose the BEST timer division, for every frequency...

Notify me if worked! (or not worked =])

Ivan

Ivan! I did used but I have problem to implement your libraries! smiley-sad(

Error error error ...

Even though the file is there but it cannot find the libraries!

I will try it again ...anyways...
Logged

Brasil
Offline Offline
Full Member
***
Karma: 4
Posts: 125
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Did you installed correcly the library? http://arduino.cc/en/Guide/Libraries

(Just add the unziped folder downloaded from gitHub, to your library folder (on your sketch folder, or, on the arduino software folder).

Note, that to the library be recognized, YOU MUST restart Arduino software smiley-wink

Ivan
Logged


Offline Offline
Newbie
*
Karma: 0
Posts: 29
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Did you installed correcly the library? http://arduino.cc/en/Guide/Libraries

(Just add the unziped folder downloaded from gitHub, to your library folder (on your sketch folder, or, on the arduino software folder).

Note, that to the library be recognized, YOU MUST restart Arduino software smiley-wink

Ivan

Oh! I just did it! Many thanks! smiley

Then now I need to drive the stepper with your timer! Wish me luck! smiley

Logged

Brasil
Offline Offline
Full Member
***
Karma: 4
Posts: 125
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Nice!

Tell us if it worked or not...
Logged


Offline Offline
Jr. Member
**
Karma: 3
Posts: 96
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

From my experience with Industrial Steppers you won't be able to get more than about 1kHz with just a voltage drive.  You would need to get a fairly expensive driver to go 5kHz or so.  Add to that, most steppers are 200 Steps per revolution, so your speed would be about 5 revs/sec or 300 RPM.  Remember you have to establish current in a fairly large inductance for every step.  If you had an oscilloscope, you could examine how many milliseconds it takes to establish current by measuring across a low-ohm resistor.  The voltage will definitely "lead" the current in any inductor.  The times are very motor and drive dependent.
« Last Edit: July 26, 2013, 01:32:15 pm by rmetzner49 » Logged

Pages: [1]   Go Up
Jump to: