Push Button Test Board and Basic Stamp 1


Same routine as LED Output board.

1 Figure out which way 10 pin IDC connector is oriented.

2 Test it

Here's link to the board. Will post picture of board.

http://www.futurlec.com/Input_Pushbutton.shtml



Input%20Test%20Board.jpg
300 x 218 - 27K
JUNIOR ENGINEER

AMATEUR ASSEMBLY PROGRAMMER

Comments

  • 16 Comments sorted by Date Added Votes
  • microcontrollerusermicrocontrolleruser Posts: 654
    edited April 10 Vote Up0Vote Down
    Figured out board is built to be active low

    Here's the code forum member Tom contributed to test the board.
    PB0       PIN    0
    Pushed    CON   0
    
    
    IF PB0 = Pushed THEN
    
    JUNIOR ENGINEER

    AMATEUR ASSEMBLY PROGRAMMER
  • davejamesdavejames Posts: 3,902
    edited April 10 Vote Up0Vote Down
    MCU,

    You might give a look at the "BUTTON" command in the Stamp Syntax and Reference Manual on pages 137 - 140.

    It comes in handy if you wish to debounce the switch.

    Also, page 139 has a sample program for the BS1.
    Well-written documentation requires no explanation.

  • Debounce!!!??

    Ooh! Make it go away!

    One tutorial for micro's Stamps are made from had big section on debouncing.

    It was nightmarish.Fortunately we are using a different book now.

    That other tutorial was college level.

    Current one just covers 'most' aspects of that micro and then you're ready to go fumble around on your own.

    Sort of equivalent to doing What's a Microcontroller all the way through.

    Not too light. Not too heavy.
    JUNIOR ENGINEER

    AMATEUR ASSEMBLY PROGRAMMER
  • If you are using a BS1, I think you have to use BASIC 1.0, which, I think, doesn't support PIN.
    Re-inventing the wheel is not a waste of time if, when you are done, you understand why it is round.
    Cool, CA, USA 95614
  • microcontrollerusermicrocontrolleruser Posts: 654
    edited April 10 Vote Up0Vote Down
    Yes.That's right.

    If you click on Pbasic 2 or 2.5 AND Stamp 1 it throws an error message.

    Been using PINS.

    Do we need PIN for something?

    Oh.I see.The Tom Crawford code.

    No worries.We can jump over to Stamp 2 board.

    Long as it tests for logic 0 on a pin.

    JUNIOR ENGINEER

    AMATEUR ASSEMBLY PROGRAMMER
  • microcontrolleruser,

    PIN is only supported by PBASIC 2.5 which the BS2 uses.

    I think the BS1 uses SYMBOL.

  • Thanks.

    Will sidestep that added process.

    Use Tom code with Stamp2 BOE.

    Took Stamp2 module off of breadboard and back onto BOE.

    Testing it now.

    9v battery is a good idea.Reduces cable clutter.
    JUNIOR ENGINEER

    AMATEUR ASSEMBLY PROGRAMMER

  • It identified good.

    Warning! Side project.

    Let me test Stamp 1 project board with Startech Serial to USB and Parallax one.

    This BOE showed yes Loopback and Echo.

    I think the Startech was zero on both.See if Parallax is better.
    JUNIOR ENGINEER

    AMATEUR ASSEMBLY PROGRAMMER

  • Okay. Startech show no loopback and no echo.

    Let's see what Parallax USB to serial does.
    JUNIOR ENGINEER

    AMATEUR ASSEMBLY PROGRAMMER

  • Okay.Parallax is no loopback and no echo.

    Maybe it's the board.

    It programs and debugs with terminal okay
    JUNIOR ENGINEER

    AMATEUR ASSEMBLY PROGRAMMER
  • Okay.Parallax is no loopback and no echo.

    Maybe it's the board.

    It programs and debugs with terminal okay

    See Table 3.5 in the BigYellowBook.

    Re-inventing the wheel is not a waste of time if, when you are done, you understand why it is round.
    Cool, CA, USA 95614

  • What is the Big Yellow Book?

    Can you say why the Stamp 1 project board shows Loopback no and Echo no?
    JUNIOR ENGINEER

    AMATEUR ASSEMBLY PROGRAMMER
  • Infernal Machine

  • Thank you Publison

    Never heard it called that before.

    Will take a look.
    JUNIOR ENGINEER

    AMATEUR ASSEMBLY PROGRAMMER
  • microcontrollerusermicrocontrolleruser Posts: 654
    edited April 17 Vote Up0Vote Down

    First order of business is to figure out pinout on push button board 10pin IDC socket.

    Probably upside down from the diagram like the LED board.

    It does have a lug on socket to orient cable but we're not using a cable.Using jumpers into it.

    Will work on code in a bit.
    JUNIOR ENGINEER

    AMATEUR ASSEMBLY PROGRAMMER

  • Push button experiment in 'What's a Microcontroller'.

    Nice 'build up' approach.

    Tests circuit electronically only without code.

    First code is debug pin routine.

    Then adds decision code to light LED out other pin.

    Nice tutorial.
    JUNIOR ENGINEER

    AMATEUR ASSEMBLY PROGRAMMER
Sign In or Register to comment.