Shop OBEX P1 Docs P2 Docs Learn Events
Pin state of prop after prog halts — Parallax Forums

Pin state of prop after prog halts

Toby SeckshundToby Seckshund Posts: 2,027
edited 2009-06-14 19:52 in Propeller 1
Playing with stepper motors I noticed that the motor current comes back on when the prog stops. I know that this is abnormal for a final system but is there some magic code that leaves the props outputs in a low state ? (apart from an endless loop escape)

Or should I adopt a negative logic for the motor drives

Comments

  • Clock LoopClock Loop Posts: 2,069
    edited 2009-06-13 20:24
    Can't you just use some 1k pull down resistors to get the desired state when the prop releases its outputs?
  • Phil Pilgrim (PhiPi)Phil Pilgrim (PhiPi) Posts: 23,514
    edited 2009-06-13 20:29
    Negative logic won't help. When the cog controlling the pins stops, the pins revert to inputs. Clock Loop has the right idea: you need to set the idle state with resistors, although I'd use a much higher value, say 10K.

    -Phil
  • Toby SeckshundToby Seckshund Posts: 2,027
    edited 2009-06-13 21:30
    It sounds like the darlington pairs are too good then. I'll try to mute the power stages.
  • Toby SeckshundToby Seckshund Posts: 2,027
    edited 2009-06-14 13:01
    4k7, down to deck, did the trick. I was thinking that they were going weak high rather than to I/Ps. Wrong breed of processor blush.gif

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔

    Style and grace : Nil point
  • LeonLeon Posts: 7,620
    edited 2009-06-14 13:11
    What processor does that?

    Leon

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Amateur radio callsign: G1HSM
    Suzuki SV1000S motorcycle
  • Toby SeckshundToby Seckshund Posts: 2,027
    edited 2009-06-14 14:31
    Probably just the one in my head

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Style and grace : Nil point
  • Toby SeckshundToby Seckshund Posts: 2,027
    edited 2009-06-14 19:52
    I think I have analysed the problem I had. Cider.

    On that note ...

    When are we going to stop all this high faluting mumo-jumbo of which programming language is "the one true language" and build the automatic lawm mower with navgation sight and ears.

    If it could be powered by empty bear cans ... BONUS !!

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Style and grace : Nil point
Sign In or Register to comment.