Shop OBEX P1 Docs P2 Docs Learn Events
NEWBIE: Reset pin problems — Parallax Forums

NEWBIE: Reset pin problems

MorrolanMorrolan Posts: 98
edited 2007-09-11 14:23 in BASIC Stamp
Hi guys, having great fun with my Basic Stamp BS2e, done some electronics in the past but I'm very rusty!

I'm using my BS2e on a custom board by a UK company called Milford Instruments - the board is designed to control 8 servo's for animatronics displays, and the stamp plugs into a normal 24 pin DIP socket.

My problem is, the board itself does not provide access for pin 22, the RES pin. I know that it will cause a reset when the supply to the stamp drops below 4.2 volts, and that it is possible to wire this up to a switch to provide a reset function, but I can't get to the pin to do it!

Is it possible to wire a normal IO pin to force RES low to make a reset button? I know that my code would have to check for this in a loop, but that isn't a problem.

Or, is there any other suggestions about how I could get access to this pin safely, without desoldering the board?

edit: Please see the attached image for photo of the board showing how pin 22 is not easily accessible.


Many Thanks in advance,
Morrolan

Post Edited (Morrolan) : 9/10/2007 12:38:58 PM GMT
980 x 735 - 133K

Comments

  • Chris SavageChris Savage Parallax Engineering Posts: 14,406
    edited 2007-09-10 15:00
    Hello,

    In order to use an I/O pin to reset the BASIC Stamp that I/O pin needs to be connected directly to the I/O pin. The I/O pin should stay in input mode until you’re ready to reset the BASIC Stamp. At that point you can make the I/O pin output LOW and the BASIC Stamp will reset, also returning the I/O pin to an input. I hope this helps. Take care.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Chris Savage
    Parallax Tech Support
  • MorrolanMorrolan Posts: 98
    edited 2007-09-10 16:12
    In order to use an I/O pin to reset the BASIC Stamp that I/O pin needs to be connected directly to the I/O pin. said...

    I'm sorry but I'm still a little confused - you say that the I/O pin needs to be connected directly to the I/O pin?. From that do you mean that the I/O pin should be directly connected to pin 22?

    Sorry if I'm still a little confused sad.gif



    Many thanks in advance,
    Morrolan
  • Chris SavageChris Savage Parallax Engineering Posts: 14,406
    edited 2007-09-10 16:55
    Whoops! the I/O pin needs to be connected directly to the RESET pin in order for it to initiate a reset.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Chris Savage
    Parallax Tech Support
  • Peter VerkaikPeter Verkaik Posts: 3,956
    edited 2007-09-10 17:01
    For safety I recommend to put a 470 ohm resistor between the
    I/O pin and the reset pin. Just in case the I/O pin is accidentally
    made a high output.

    regards peter
  • Beau SchwabeBeau Schwabe Posts: 6,568
    edited 2007-09-10 17:19
    Morrolan,
    You said...
    My problem is, the board itself does not provide access for pin 22, the RES pin.
    Do you have access to the ATN pin? (pin #3)· ...It's hard to tell from the picture of your board.

    Assuming that the capacitors are connected correctly between the ATN,VSS, and DTR of your serial connection,
    then forcing the ATN (pin #3) HIGH·will cause a complementary reset to the Reset (pin #22) on your Stamp.






    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Beau Schwabe

    IC Layout Engineer
    Parallax, Inc.
  • MorrolanMorrolan Posts: 98
    edited 2007-09-11 10:41
    I've decided to re-design their board and design my own simpler and dedicated board (the board I bought was for experimentation, I have since bought a dedicated IC to control the servo's I require), giving me access to every pin.

    Once I do this, how would I connect Pin 22 to a button to force a reset? Do I need a button or switch that is normally closed (push to break) switch connected to VDD to force the pin low?




    Kind Regards,

    Morrolan

    Post Edited (Morrolan) : 9/11/2007 1:08:42 PM GMT
  • Beau SchwabeBeau Schwabe Posts: 6,568
    edited 2007-09-11 14:23
    Morrolan,

    You'd follow the same schematic as in the BS2p Demoboard for the reset switch.· Use a Normally Open switch between Vss(Pin# 23·or Pin# 4)·and Reset (Pin# 22).

    http://www.parallax.com/dl/docs/prod/stamps/BS2pDemoCschem.pdf



    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Beau Schwabe

    IC Layout Engineer
    Parallax, Inc.
Sign In or Register to comment.