Forum Update - Announcement about May 10th, 2018 update and your password.

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
Basic Stamps,SX's and PIC's all share common characteristics.

'Are you ready to move up to an SX?'-Parallax

SX28 is drop in replacement for PIC16F57
300 x 218 - 27K

Comments

  • 16 Comments sorted by Date Added Votes
  • microcontrollerusermicrocontrolleruser Posts: 788
    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
    
    Basic Stamps,SX's and PIC's all share common characteristics.

    'Are you ready to move up to an SX?'-Parallax

    SX28 is drop in replacement for PIC16F57
  • davejamesdavejames Posts: 3,906
    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.
    Basic Stamps,SX's and PIC's all share common characteristics.

    'Are you ready to move up to an SX?'-Parallax

    SX28 is drop in replacement for PIC16F57
  • 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: 788
    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.

    Basic Stamps,SX's and PIC's all share common characteristics.

    'Are you ready to move up to an SX?'-Parallax

    SX28 is drop in replacement for PIC16F57
  • 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.
    Basic Stamps,SX's and PIC's all share common characteristics.

    'Are you ready to move up to an SX?'-Parallax

    SX28 is drop in replacement for PIC16F57

  • 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.
    Basic Stamps,SX's and PIC's all share common characteristics.

    'Are you ready to move up to an SX?'-Parallax

    SX28 is drop in replacement for PIC16F57

  • Okay. Startech show no loopback and no echo.

    Let's see what Parallax USB to serial does.
    Basic Stamps,SX's and PIC's all share common characteristics.

    'Are you ready to move up to an SX?'-Parallax

    SX28 is drop in replacement for PIC16F57

  • Okay.Parallax is no loopback and no echo.

    Maybe it's the board.

    It programs and debugs with terminal okay
    Basic Stamps,SX's and PIC's all share common characteristics.

    'Are you ready to move up to an SX?'-Parallax

    SX28 is drop in replacement for PIC16F57
  • 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?
    Basic Stamps,SX's and PIC's all share common characteristics.

    'Are you ready to move up to an SX?'-Parallax

    SX28 is drop in replacement for PIC16F57
  • Infernal Machine

  • Thank you Publison

    Never heard it called that before.

    Will take a look.
    Basic Stamps,SX's and PIC's all share common characteristics.

    'Are you ready to move up to an SX?'-Parallax

    SX28 is drop in replacement for PIC16F57
  • microcontrollerusermicrocontrolleruser Posts: 788
    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.
    Basic Stamps,SX's and PIC's all share common characteristics.

    'Are you ready to move up to an SX?'-Parallax

    SX28 is drop in replacement for PIC16F57

  • 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.
    Basic Stamps,SX's and PIC's all share common characteristics.

    'Are you ready to move up to an SX?'-Parallax

    SX28 is drop in replacement for PIC16F57
Sign In or Register to comment.