Shop OBEX P1 Docs P2 Docs Learn Events
Reseting the BOE with an I/O pin - any circuit examples available? — Parallax Forums

Reseting the BOE with an I/O pin - any circuit examples available?

r3b0r3b0 Posts: 8
edited 2007-04-27 20:38 in BASIC Stamp
i have a BOE with a eb500 in the x1 header, a relay board connected to pin 7, and an LED on pin 8.

after my code runs a random number of times, it locks up, and no longer does what it normally does so well. if i could make the board reset itself every 3 cycle of main, it could get me back to where i need be.

what i would like is a circuit example of how to connect the i/o pin to the rst pin. or maybe somone could browse my code and see if they can spot where it is hanging up?

Comments

  • allanlane5allanlane5 Posts: 3,815
    edited 2007-04-27 17:48
    Um, yeah, if you post your code. Edit your post, and use the 'Attachment" button.
  • Chris SavageChris Savage Parallax Engineering Posts: 14,406
    edited 2007-04-27 20:24
    Hello,

    You can reset your BASIC Stamp by connecting an I/O pin to the reset line and when you want to reset going from an input to LOW (output). This will reset the BASIC Stamp making the I/O pin an input again…That said, I would be more inclined to find the cause of the error in the program that is causing the lockup. Take care.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Chris Savage
    Parallax Tech Support
  • r3b0r3b0 Posts: 8
    edited 2007-04-27 20:38
    thanks chris, your a wiz! thats about what i was thinking, i just wanted to make sure switching from an input to a low output was not going to fry anything.

    thanks again, and have a good weekend everyone.

    Rebo
Sign In or Register to comment.