setspeed

Adafruit Ethernet, Motor, Proto, Wave, Datalogger, GPS Shields - etc!

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
bobleuk
 
Posts: 3
Joined: Sat Aug 25, 2012 7:54 pm

setspeed

Post by bobleuk »

can you please adv the data type of the setspeed in the afmotor
is the rpm just int or can it be long nbr
I need to set the speed very slow but accurately
thnks
Bob

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

Re: setspeed

Post by adafruit_support_bill »

Stepper or DC motor?
For DC motors, it is an 8-bit integer between 0 and 255.
For steppers it is a 16 bit integer.
More details here:
http://learn.adafruit.com/adafruit-moto ... d/overview

bobleuk
 
Posts: 3
Joined: Sat Aug 25, 2012 7:54 pm

Re: setspeed

Post by bobleuk »

its for stepper motor
your link went 404 page not found

pls adv

thanks
bob

User avatar
adafruit_support_rick
 
Posts: 35092
Joined: Tue Mar 15, 2011 11:42 am

Re: setspeed

Post by adafruit_support_rick »

Link works here. Try again

Wody
 
Posts: 66
Joined: Thu Jul 12, 2012 5:19 pm

Re: setspeed

Post by Wody »

That link is 404 for me also, but the motorshield is at: http://www.ladyada.net/make/mshield/index.html and it doesn't redirect like other tutorials that have a tutorial on the learn-system.

The AFMotor reference is at: http://learn.adafruit.com/afmotor-library-reference

bobleuk
 
Posts: 3
Joined: Sat Aug 25, 2012 7:54 pm

Re: setspeed

Post by bobleuk »

Thanks for your help
I've got some reading to do.
Bob

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

Return to “Arduino Shields from Adafruit”