From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Stepper motor oscilates in reverse using Arduino

Theoretically, there should be no difference.  They are both just numbers.  What numbers are coming in from the analog read?  Put an indicator, or better yet a waveform chart, to see what the analog values look like.

 

Is it possible that the act of turning on the motor is causing some noisy signal that is intefering with the analog reading and causing it to fluctuate between negative and positive?

0 Kudos
Message 11 of 12
(385 Views)

RavensFan,

 

Thanks for the suggestion. Find attached the signal charts and the vi used to produce them. The signal does flustuate a ltittle, but never enough to go positive and then negative. At start up oand shut down there is no spike in the signal either.

 

To produce this chart i started with the potentiometer set to give a negative signal, then increased it to positive, held it positive and then changed to a negative value. the second half of the samples was when there was no change of the potentiometer position, thus giving an idea of the level of signal fluctuation.

 

Does any one have any further ideas?

0 Kudos
Message 12 of 12
(370 Views)