Extracting file from Lib for motor shield

For other supported Arduino products from Adafruit: Shields, accessories, etc.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
rugger22
 
Posts: 10
Joined: Thu Nov 07, 2013 10:08 am

Extracting file from Lib for motor shield

Post by rugger22 »

I'm unable to get the cpp or the h file. I can put the file in my library and download all of the stepper files. I check it in the arduino IDE and it has several errors. I believe that the include file is the problem. It won't unzip. I have tried several different programs and multiple attempts. It's saying the file is archive or unable to open. Is there any help for me?

Jimmy Sikes
Baker College

User avatar
adafruit_support_bill
 
Posts: 88093
Joined: Sat Feb 07, 2009 10:11 am

Re: Extracting file from Lib for motor shield

Post by adafruit_support_bill »

What errors are you seeing? Post the exact text.

Make sure that your library is installed correctly. See this guide for details: http://learn.adafruit.com/adafruit-all- ... nstall-use

rugger22
 
Posts: 10
Joined: Thu Nov 07, 2013 10:08 am

Re: Extracting file from Lib for motor shield

Post by rugger22 »

This is how i downloaded it. I click on the gitbub link. I can upload the examples and run. .h and .ccp file will not extract at all. it won't let me open these two files at all. I've download it several time. I've been working on this since tuesday.

First Install the Arduino Library
Before you can use the Motor shield, you must install the AF_Motor Arduino library - this will instruct the Arduino how to talk to the Adafruit Motor shield, and it isn't optional!
First, grab the library from github
Uncompress the ZIP file onto your desktop
Rename the uncompressed folder AFMotor
Check that inside AFMotor is AFMotor.cpp and AFMotor.h files. If not, check the steps above
Place the AFMotor folder into your arduinosketchfolder/libraries folder. For Windows, this will probably be something like MY Documents/Arduino/libraries for Mac it will be something likeDocuments/arduino/libraries. If this is the first time you are installing a library, you'll need to create the libraries folder. Make sure to call it libraries exactly, no caps, no other name.
Check that inside the libraries folder there is the AFMotor folder, and inside AFMotor isAFMotor.cpp AFMotor.h and some other files
Quit and restart the IDE. You should now have a submenu called File->Examples->AFMotor->MotorParty

rugger22
 
Posts: 10
Joined: Thu Nov 07, 2013 10:08 am

Re: Extracting file from Lib for motor shield

Post by rugger22 »

L293D is what I'm trying to run on my mega board.

User avatar
adafruit_support_bill
 
Posts: 88093
Joined: Sat Feb 07, 2009 10:11 am

Re: Extracting file from Lib for motor shield

Post by adafruit_support_bill »

L293D is what I'm trying to run on my mega board.
Is your L293D on an Adafruit Motor Shield? Or are you trying to run it on a breadboard?

rugger22
 
Posts: 10
Joined: Thu Nov 07, 2013 10:08 am

Re: Extracting file from Lib for motor shield

Post by rugger22 »

motor shield attached to my mega. but all my lines are undefined. at this point it doesn't really matter until i can get the files to extract.

AFMotor_MultiStepper:14: error: 'AF_Stepper' does not name a type
AFMotor_MultiStepper:15: error: 'AF_Stepper' does not name a type
AFMotor_MultiStepper.pde: In function 'void forwardstep1()':
AFMotor_MultiStepper:20: error: 'motor1' was not declared in this scope
AFMotor_MultiStepper:20: error: 'FORWARD' was not declared in this scope
AFMotor_MultiStepper:20: error: 'SINGLE' was not declared in this scope
AFMotor_MultiStepper.pde: In function 'void backwardstep1()':
AFMotor_MultiStepper:23: error: 'motor1' was not declared in this scope
AFMotor_MultiStepper:23: error: 'BACKWARD' was not declared in this scope
AFMotor_MultiStepper:23: error: 'SINGLE' was not declared in this scope
AFMotor_MultiStepper.pde: In function 'void forwardstep2()':
AFMotor_MultiStepper:27: error: 'motor2' was not declared in this scope
AFMotor_MultiStepper:27: error: 'FORWARD' was not declared in this scope
AFMotor_MultiStepper:27: error: 'SINGLE' was not declared in this scope
AFMotor_MultiStepper.pde: In function 'void backwardstep2()':
AFMotor_MultiStepper:30: error: 'motor2' was not declared in this scope
AFMotor_MultiStepper:30: error: 'BACKWARD' was not declared in this scope
AFMotor_MultiStepper:30: error: 'SINGLE' was not declared in this scope
AFMotor_MultiStepper.pde: At global scope:
AFMotor_MultiStepper:34: error: 'AccelStepper' does not name a type
AFMotor_MultiStepper:35: error: 'AccelStepper' does not name a type
AFMotor_MultiStepper.pde: In function 'void setup()':
AFMotor_MultiStepper:39: error: 'stepper1' was not declared in this scope
AFMotor_MultiStepper:43: error: 'stepper2' was not declared in this scope
AFMotor_MultiStepper.pde: In function 'void loop()':
AFMotor_MultiStepper:52: error: 'stepper1' was not declared in this scope
AFMotor_MultiStepper:54: error: 'stepper1' was not declared in this scope
AFMotor_MultiStepper:55: error: 'stepper2' was not declared in this scope

rugger22
 
Posts: 10
Joined: Thu Nov 07, 2013 10:08 am

Re: Extracting file from Lib for motor shield

Post by rugger22 »

Can you send me a different file from the one in the library. Or possibly download it and see the problem. I've had two other people try to DL it with the same result, on two different CPU besides my own.

rugger22
 
Posts: 10
Joined: Thu Nov 07, 2013 10:08 am

Re: Extracting file from Lib for motor shield

Post by rugger22 »

`C:\users\jimmy\desktop\adafruit_Motor_Shield_v2_lib\adafruit_motorshield.h as archive is the error I'm getting when trying to extract it.

User avatar
adafruit_support_bill
 
Posts: 88093
Joined: Sat Feb 07, 2009 10:11 am

Re: Extracting file from Lib for motor shield

Post by adafruit_support_bill »

I just downloaded the library and had no problems extracting it. Please follow the instructions here: http://learn.adafruit.com/adafruit-all- ... nstall-use

rugger22
 
Posts: 10
Joined: Thu Nov 07, 2013 10:08 am

Re: Extracting file from Lib for motor shield

Post by rugger22 »

Amazing what instructions to follow. the install?

rugger22
 
Posts: 10
Joined: Thu Nov 07, 2013 10:08 am

Re: Extracting file from Lib for motor shield

Post by rugger22 »

There are many other libraries with useful functionality and device drivers for all sorts of hardware. These drivers are available from places like Arduino Playground, Github and Google Code. Adafruit provides over 100 libraries libraries supporting almost all of our Arduino compatible products. Most of our libraries are hosted on GitHub. Direct links are provided from the product description and/or tutorial pages.

rugger22
 
Posts: 10
Joined: Thu Nov 07, 2013 10:08 am

Re: Extracting file from Lib for motor shield

Post by rugger22 »

Where to install your library hyper link?

User avatar
adafruit_support_bill
 
Posts: 88093
Joined: Sat Feb 07, 2009 10:11 am

Re: Extracting file from Lib for motor shield

Post by adafruit_support_bill »

Amazing what instructions to follow. the install?
First read the section on where to install your libraries. The most common errors are installing libraries in the wrong location.
Then read the section on installing that pertains to the operating system you are using (Windows, Mac OSX or Linux).

Locked
Please be positive and constructive with your questions and comments.

Return to “Other Arduino products from Adafruit”