Go Down

### Topic: Do Arduino Due' timers give us only low frequencies?! (Read 2007 times)previous topic - next topic

#### henrimontreal

##### Apr 30, 2013, 04:41 am
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!

#### PaulS

#1
##### Apr 30, 2013, 01:24 pm
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?

#### henrimontreal

#2
##### Apr 30, 2013, 03:12 pm

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?

#### ivanseidel

#3
##### Apr 30, 2013, 07:22 pm
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
Arduino DueTimer | https://github.com/ivanseidel/DueTimer

#### henrimontreal

#4
##### Apr 30, 2013, 07:27 pm

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

Error error error ...

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

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

#### ivanseidel

#5
##### Apr 30, 2013, 07:30 pm
Did you installed correcly the library? http://arduino.cc/en/Guide/Libraries

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

Ivan
Arduino DueTimer | https://github.com/ivanseidel/DueTimer

#### henrimontreal

#6
##### Apr 30, 2013, 08:14 pm

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

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

Ivan

Oh! I just did it! Many thanks!

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

#### ivanseidel

#7
##### May 01, 2013, 04:30 am
Nice!

Tell us if it worked or not...
Arduino DueTimer | https://github.com/ivanseidel/DueTimer

#### rmetzner49

#8
##### Jul 26, 2013, 08:30 pmLast Edit: Jul 26, 2013, 08:32 pm by rmetzner49 Reason: 1
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.

Go Up

Please enter a valid email to subscribe