Continuing the discussion from About the Programming Questions category:
Hey guys, need help with me trying out a stepper, it keeps saying can not find stepper in library, wondering if anyone could help thanks a bunch
Continuing the discussion from About the Programming Questions category:
Hey guys, need help with me trying out a stepper, it keeps saying can not find stepper in library, wondering if anyone could help thanks a bunch
try harder. some day it will give up and then find stepper.
Please show your code and error code so we can tell which stepper library you are trying to use.
You may need to try this:
https://docs.arduino.cc/software/ide-v2/tutorials/ide-v2-installing-a-library/
No such message. Screen grabs only.
Your error was probably...
Stepper.h not found in library
To resolve this, use your IDE to find TOOLS >> INCLUDE LIBRARIES >> MANAGE LIBRARIES then enter Stepper... you will see Stepper by Arduino... click "install" and when it is complete, try compiling your sketch again.
You are working on an informatic project.And what is needed most in an informatic project is information.
Your error is pointing to the extra "motorspeed" inside the parenthesis on line 7.
You didn't posted your sketch as a
It is seen as a very bad habit on this forum to post screenshots.
Seems you want to play a snapchat short messages ping-pong game of
posting a single sentence waiting for a single-sentence answer.
Sure if you like this way. Making your code run will take weeks.
I'm pretty sure that you agree and will follow the way how to solve your problem mimimum 200 minutes faster.
This requires to invest 20 minutes of your precious time to read how to speedup solving your problems.
Directly after registering you got presented informations how to speed up solving your problem.
You should really read it.
best regards Stefan
I'll be very Direct and say I Struggle With my Traumatic Brain injury from an accident and cant route my learning to learn as I used to.. it won't seam like it with the way I write, I do rely on people a lot, please dont bother to accuse me of "trying to play "snap-chat ping pong games games" and if that seams to bother you, I have no apology for you, as that is a you problem not a me problem. but if you're wiling to understand then we are on mutual ground, on which I'm thankful. I will Try my best to learn the link which you have attached but as I very slowly do so I will very much so probaly continue(at my best minimum) continue to over ask this way, I don't know weather to apologise for that or not?
Not.
Pro-tip: If you are tired of hearing from someone, (1) in the upper-right of the page (2) mouse-click your avatar (3) click "profile" (4) click "preferences" (5) click "users"... you will see (6) ignore and (7) mute. You can "un-see" anyone you choose by selecting their username.
Check answer #8 and the syntax of the line that the compiler highlighed in the screenshot you posted.
What do you expect that line to do?
My eyes suck and I can barely read the code and error in your post #8.
If, instead of a screenshot of the code, you cut and pasted the actual code and error message, it would help folks help you.
If I squint hard, it looks like this line is ill formed:
It looks like myStepper.setSpeed(motorSpeed 20);
is confusing things. I'd try either
myStepper.setSpeed(motorSpeed);`
or
myStepper.setSpeed(20);`
depending on what you are trying to accomplish.
Do you have an #include <stepper.h>
line in there somewhere? Try proven code from the
examples in File/Examples/Stepper/
Very important information to understand your situation.
I am sorry if my former post offended you.
So shall your code be a simple test if the stepper-motor runs?
If you follow this click-path
file - examples - stepper - one revolution
you will find this demo-code
/*
Stepper Motor Control - one revolution
This program drives a unipolar or bipolar stepper motor.
The motor is attached to digital pins 8 - 11 of the Arduino.
The motor should revolve one revolution in one direction, then
one revolution in the other direction.
Created 11 Mar. 2007
Modified 30 Nov. 2009
by Tom Igoe
*/
#include <Stepper.h>
const int stepsPerRevolution = 200; // change this to fit the number of steps per revolution
// for your motor
// initialize the stepper library on pins 8 through 11:
Stepper myStepper(stepsPerRevolution, 8, 9, 10, 11);
void setup() {
// set the speed at 60 rpm:
myStepper.setSpeed(60);
// initialize the serial port:
Serial.begin(9600);
}
void loop() {
// step one revolution in one direction:
Serial.println("clockwise");
myStepper.step(stepsPerRevolution);
delay(500);
// step one revolution in the other direction:
Serial.println("counterclockwise");
myStepper.step(-stepsPerRevolution);
delay(500);
}
to make your stepper-motor rotate.
Did you do compile and upload some other basic codes?
Like blinking the onboard LED?
ahh Thank you so muchly, I'm in and out of hospital haha and have brought quite litrally have about $300 worth of hardware with me for the next week! lets see what can ve made!
I'll s
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.