(PLEASE HELP)Building a Star Tracker, a barn door style star tracker

149 views
Skip to first unread message

Marko Arsenic

unread,
Jan 4, 2014, 4:21:17 PM1/4/14
to accels...@googlegroups.com
I have been trying to fix my my problem for a month now, I am using and arduino uno and a dual step motor shield 1.1 to drive a four wire stepper motor, I need a simple program that will drive this motor precisely at 1 rpm, any time I try to load a program into arduino I get a message saying. 'accelstepper' doesn not name a type, I have given up as I have tried everything please please help.


Sandy Noble

unread,
Jan 4, 2014, 5:14:37 PM1/4/14
to accels...@googlegroups.com
Hello, it'd be good to let us know what you'd tried. It's worth knowing that the error "accelstepper does not name a type", or "does not name a type" generally usually means that the library you're trying to use isn't found, or is in the wrong place. So the arduino IDE can't find the accelstepper library. Make sure it's in the arduino sketchbook/libraries folder, in a subfolder called "AccelStepper".  (Short answer is this might not be a problem with Accelstepper yet, rather a general arduino installation issue.)

Googling that particular phrase ("accelstepper does not name a type") brings back https://groups.google.com/forum/#!topic/accelstepper/-f4WIy37WOI. I'm sure you have already read this, but maybe some other options from that search result set might help.


sn

Marko Arsenic

unread,
Jan 4, 2014, 8:19:42 PM1/4/14
to accels...@googlegroups.com
Ok so the files are in the proper place however I am still getting the same message, should I be able to access those examples directly from the compiler.

Marko Arsenic

unread,
Jan 4, 2014, 8:45:05 PM1/4/14
to accels...@googlegroups.com

Hey Sandy, ok one problem down, i have managed to successfully upload a script which is great now for a real newbie question, when I piggyback the motor shield to the arduino and I connect the motor how do I run the script so that motor moves right not I am not getting any movement.

Sandy Noble

unread,
Jan 4, 2014, 9:09:04 PM1/4/14
to accels...@googlegroups.com
Yep good work Marko, if you have correctly installed your accelstepper library, then you should be able to go to File -> Examples -> Accelstepper and see a list of accelstepper example sketches.

Open one (eg bounce), and see if it works. If you are using an Adafruit motorshield, try one of the examples that are prefixes with AFMotor_.

If you can't see any Accelstepper examples, then you need to move your accelstepper library folder around until it is visible to the arduino IDE program. It only looks for libraries once when it first loads, so you need to close it, and restart to search for new library folders. By default, you can find it's sketchbook path by looking in File->Preferences->Sketchbook location. And inside _that_ folder should be a folder called "libraries", and that should have a folder called "accelstepper" with the accelstepper files in it.

It's worth bearing in mind that nobody here has any idea what you have already tried (except for "everything"), so can't make guesses about what might work. Help you can supply will be useful.

sn


--
You received this message because you are subscribed to the Google Groups "accelstepper" group.
To unsubscribe from this group and stop receiving emails from it, send an email to accelstepper...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.



--
Sandy Noble
Reply all
Reply to author
Forward
0 new messages