Do Arduino Due' timers give us only low frequencies?!

Hi All!

According to the the following thread:

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!

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?

PaulS:

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?

Hi,
Try using my library: GitHub - ivanseidel/DueTimer: ⏳ Timer Library fully implemented for Arduino DUE

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

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

Ivan

ivanseidel:
Hi,
Try using my library: GitHub - ivanseidel/DueTimer: ⏳ Timer Library fully implemented for Arduino DUE

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! :((

Error error error ...

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

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

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 :wink:

Ivan

ivanseidel:
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 :wink:

Ivan

Oh! I just did it! Many thanks! :slight_smile:

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

Nice!

Tell us if it worked or not...

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.