Home \ Help \ Search \ Login RSS

Welcome, Guest. Please Login

This forum is now READ-ONLY! Please visit http://forum.wiring.co/ for the new forum.

Wiring ForumWiring HardwareTangible computing › understanding the stepper example and library

Page Index Toggle Pages: 1
understanding the stepper example and library (Read 4294 times)
02/19/09 at 23:06:12

mga   Offline
YaBB Newbies

Posts: 41
*
 
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
 
IP Logged
 
Reply #1 - 02/20/09 at 02:00:30

barragan   Offline
YaBB Administrator

Posts: 939
*****
 
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
 
IP Logged
 
Reply #2 - 02/23/09 at 06:28:09

mga   Offline
YaBB Newbies

Posts: 41
*
 
yes!

works nice

thanks
 
IP Logged
 
Page Index Toggle Pages: 1