Shop OBEX P1 Docs P2 Docs Learn Events
Can the Blinking LED code, pulse step/dir stepper motor drivers? — Parallax Forums

Can the Blinking LED code, pulse step/dir stepper motor drivers?

Bill C CooleyBill C Cooley Posts: 18
edited 2014-06-04 17:08 in General Discussion
Hello Everyone,

As I'm just beginning, I was doing the Blinking LED example, when it dawned on me that I am producing a square wave of sorts. Is this pulse or square wave able to run the stepper motor drivers looking for step and direction pulses? To be exact the 'Little Step-U' when in slave mode.

While my project does include some serial delivered locations, I also require a Jog mode.

My level is Beginner. I will include my crude code, and a schematic. (No I'm not, couldn't figure it out)

My project is a colored film between to rollers that scroll back and forth to position a color in front of a light. There is a metallic sticker on the film to locate home and 6 colored frames. The Jog function is to load the film.

Comments

  • LoopyBytelooseLoopyByteloose Posts: 12,537
    edited 2014-06-04 11:52
    You usually have 3 inputs -- DIRECTION, ENABLE, and PULSE. I am not familiar with the Little Step-U device you refer to. I'd have to read its documents. but it seems to use SERIAL code to control the motion, not 3 inputs.

    Like all Parallax products, it comes with good code examples...
    http://www.parallax.com/product/27938
  • Bill C CooleyBill C Cooley Posts: 18
    edited 2014-06-04 11:58
    G.Herzog,
    I have one with and one without the enable pin Little Step does not. But most tutorials say they don't use it. What does the enable input do?
    Bill
  • LoopyBytelooseLoopyByteloose Posts: 12,537
    edited 2014-06-04 12:06
    Well, a lot of devices have an Enable pin that will work pretty much the same as an on/off switch.

    If not Enabled, the device won't listen to instructions. If Enabled, it is active and ready to listen. You can just set it up to always be enabled... unless you have a good reason to disable (like saving battery power).

    Since you are just starting out, you might get better help in the LEARN forum.
  • PJAllenPJAllen Banned Posts: 5,065
    edited 2014-06-04 17:08
    The best use for Enable is when there are multiple devices sharing the comm lines.
Sign In or Register to comment.