Hobbyist Toolkit

cancel
Showing results for 
Search instead for 
Did you mean: 

Linx+Arduino Wrong frequency output of digital square wave generator

Hello, 

 

  I am going to use linx to program a stepper motor control VI. The stepper motor driver I use is A4988 and TB6600. The stepper's rotating speed depends on the frequency of pulse inout to the driver, so i use a digital square wave generator in linx to attain this request.

But now the output frequency 60Hz(which is shown in an escilloscope) is not identical with the frequency 1Hz I input in my VI. I do not have any idea about this problem.

 

I am asking this question on behalf of someone else, any input is very much apprecated.

 square wave test.PNGswtest_1.PNG

Message 1 of 3
(1,366 Views)

Hi,

The LINX firmware calls the Arduino tone function.  

Here is a link to more information 

https://github.com/bhagman/Tone#ugly-details

 

It's possible that other channels may allow a lower frequency.  It would depend on the microcontroller on the Arduino board.

0 Kudos
Message 2 of 3
(1,330 Views)

ok thank you

0 Kudos
Message 3 of 3
(1,299 Views)