Before logging an issue, please update to the latest release of Visual Micro from the Downloads Page.

When Logging a Support Issue in the Forum, please ensure you have also:-

  • Enabled vMicro > Compiler > Show Build Properties
  • Re-Compile your program with these settings enabled
 
Save the new Output to a Text File and....
  • Click the Reply button and attach as .txt file OR
  • Click here to Email us with the file attached, and a link to your post
Support requests without the output above may be impossible to answer, so please help us to help you
 
Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Need help for something simple. (Read 727 times)
TonnySmith
Newbies
*
Offline


Posts: 1
Joined: Nov 27th, 2019
Need help for something simple.
Nov 27th, 2019 at 12:33pm
Print Post  
Hello, for my senior project (small part of it) I need to do a simple stepper motor movement and I’m having an extremely hard time trying to figure out the code for it. I’m using a 14VDC stepper motor that has 200 steps per revolution and a A4988 stepper driver. I want to control it with an Arduino Nano Every. I have the electrical connections all set out but the logic isn’t there. What I need to happen; when the input pin is pulled low, I need the motor to turn about 1/3 a revolution and stay there until that same input is pulled high. When the input is pulled high, I need it to return to its original position. It sounds so simple but apparently I can’t wrap my head around it. I should probably also mention that I’ve never programmed on an Arduino before although I do have programming experience. If anyone can link any resources or lead me in the right direction, that would be awesome. I’ve been scouring the internet non stop for two days and have come up empty. All I’ve been able to gather is how to spin the motor and reverse direction which doesn’t do help much. Thanks in advance.https://myip.kim/ https://birthdaywishes.onl/ https://elecpay.in/tneb/


« Last Edit: Nov 28th, 2019 at 6:52am by TonnySmith »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12188
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Need help for something simple.
Reply #1 - Nov 27th, 2019 at 12:37pm
Print Post  
Why not just use a library such as the adafruit motor or stepper library?
  
Back to top
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12188
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Need help for something simple.
Reply #2 - Jun 27th, 2020 at 11:53pm
Print Post  
This Topic was moved here from General Board [move by] Visual Micro.
  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint