Wiring Forum
http://wiring.org.co/cgi-bin/yabb/YaBB.pl
Wiring Hardware >> Tangible computing >> understanding the stepper example and library
http://wiring.org.co/cgi-bin/yabb/YaBB.pl?num=1235084772

Message started by mga on 02/19/09 at 23:06:12

Title: understanding the stepper example and library
Post by mga on 02/19/09 at 23:06:12
Hi

I am trying to control a stepper motor and I am basing myself on the stepper example in http://www.wiring.org.co/learning/examples/stepper.html and I have a few questions:

1) why does the example diagram use pins 1-6 while those are not referenced in the code (the code uses digitalWrite to pins 0-3)?
2) if I am using a up to 12V motor, will the example show any behavior in the motor or will the motor just not move while powered by computer USB?
3) will it work in pins other than 1-6 and if so how would they be referenced when using digitalWrite?
4) how does the Stepper library change the diagram? is there an example diagram for a motor controlled via the Stepper library?

Thanks in advance

Title: Re: understanding the stepper example and library
Post by barragan on 02/20/09 at 02:00:30
The diagram was clarified http://wiring.org.co/learning/examples/stepper.html
This example doesn´t use the stepper library and shows how to use the stepper. For using the Stepper library wire the motor as in the diagram and the use the stepper commands like the example in the library reference: http://wiring.org.co/learning/libraries/Stepper/Stepper_.html

Title: Re: understanding the stepper example and library
Post by mga on 02/23/09 at 06:28:09
yes!

works nice

thanks

Wiring Forum » Powered by YaBB 2.5 AE!
YaBB Forum Software © 2000-2010. All Rights Reserved.