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 4
(1,894 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 4
(1,858 Views)

ok thank you

0 Kudos
Message 3 of 4
(1,827 Views)

 


Good afternoon friends.
I have the same problem of having 60Hz output, using LabView. Did you get to resolve this issue? How do I have to do it? Do I have to create a project within the Arduino IDE and write it to the Arduino UNO board before applying LabView? I confess that I was confused regardind how may I have to resolve this isue. I'm using LabView 2024 comunity. 

 

0 Kudos
Message 4 of 4
(475 Views)