Shop OBEX P1 Docs P2 Docs Learn Events
mcp23016 issues with my bs2p24 :/ - Page 2 — Parallax Forums

mcp23016 issues with my bs2p24 :/

2»

Comments

  • NewzedNewzed Posts: 2,503
    edited 2005-01-13 20:42
    Lee, are you saying:

    Open relay - olat OK - reads state
    Close relay - olat OK - reads state
    Open relay - olat OK - reads state
    Close relay - olat OK - reads state
    and so on 6 or 7 more times, then all of a sudden olat dosn't return state?

    When olat fails, try reading it again after a pause 100.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Sid Weaver
    Do you have a Stamp Tester?

    http://hometown.aol.com/newzed/index.html
    ·
  • trendtrend Posts: 112
    edited 2005-01-13 20:48
    Yes, that is what I am saying.

    I will try that.

    be back in 5
  • trendtrend Posts: 112
    edited 2005-01-13 21:10
    Hmm.. well the solenoid open/close loop is working flawlessly now.. I ran it for a couple minutes (3 different uploads)

    I run the loop for the regular AC motors, and I get some fails, but now i set it up so if it fails to readback any data.. it just acts like nothing happens (and sets ports to output and dir =0) and it normally works.. if it doesn't work then, it might take 2 or 3 times of going through the loop. then it will work. This would be fine (sorta...), but in the past (yesterday) it would just start failing over and over eventually.

    Oh yeah, the solenoids need a rest now.. they are offly hot.

    What you'll think?
  • trendtrend Posts: 112
    edited 2005-01-13 21:12
    oh yeah.. and normally the error is with the DIR, not the olat.. but I have seen the problem with the olat verification
  • NewzedNewzed Posts: 2,503
    edited 2005-01-13 21:19
    Lee, if I remember correctly MCP2 and MCP3 are set to outputs and are never changed.· So there is no need to to read IODIR - the pins are always outputs and have no input function at all.

    Did you try the second olat read after a 100ms pause?

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Sid Weaver
    Do you have a Stamp Tester?

    http://hometown.aol.com/newzed/index.html
    ·
  • trendtrend Posts: 112
    edited 2005-01-13 21:21
    Oh yea.. also. Most of the times (90percent or maybe more.. I might just cannot hear well) when the verification fails, I hear the relay click.. but the motor doesn't work. Or about 2percent of the time (this happened 2times) the AC motor will jump a couple times (makes me think of the little engine that could).

    All of the above is when testing AC motor
  • trendtrend Posts: 112
    edited 2005-01-13 21:34
    Well.... I cannot get the DC solenoids to fail anymore :/

    On The AC, I did what you said (just try to reverify the mcp after pause 100 (instead of a re-set IODIR and olate) and this just cause a loop to go on forever saying that the settings were not verified)
Sign In or Register to comment.