Shop OBEX P1 Docs P2 Docs Learn Events
how much voltage does the bs2 put out? — Parallax Forums

how much voltage does the bs2 put out?

Jayguy5000Jayguy5000 Posts: 139
edited 2007-08-15 14:11 in BASIC Stamp
when the command

High1

is executed, how much voltage does the stamp put out? I need to use the stamp to put out 5v. If that doesn't do it what will?

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Actually I think Im going to add the whiskers to my tank and let it roam, just need to figure out where.

Comments

  • PJAllenPJAllen Banned Posts: 5,065
    edited 2007-08-11 01:11
    Got a voltmeter?
  • Jayguy5000Jayguy5000 Posts: 139
    edited 2007-08-11 01:14
    yea but its a wacky one that comes up with all different kinds of numbers. If it worked good enough I would rely on it, but I cant.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Actually I think Im going to add the whiskers to my tank and let it roam, just need to figure out where.
  • PJAllenPJAllen Banned Posts: 5,065
    edited 2007-08-11 01:23
    Open the dreaded PBASIC Help and refer to HIGH.
  • T&E EngineerT&E Engineer Posts: 1,396
    edited 2007-08-11 01:25
    Yes.
    HIGH pin will send out 5 volts dc.
    LOW pin will give 0 volts dc.
    Using a HIGH 1 command will provide 5 volts DC output on·pin P1·(which is actually pin·6 on the BS2). You should probably set a value to "1" (as it is misleading what pin you are sugesting).
    Pins P0 - P15 on the BS2 (actual pins 5-20) are either configured as Input pins or output pins.
    As the BS2 Help example states:
    ' HIGH_LOW.BS2' This simple program sets I/O pin 0 high for 1/2 second and low for' 1/2 second in an endless loop.  Connect an LED to P0 for a simple' blinker.' {$STAMP BS2}Main:  HIGH 0  PAUSE 500  LOW 0  PAUSE 500  GOTO Main  END
    

    Make sure you realize how "long" you want the 5 volts dc output voltage to be sent out of the pin.
    ·
  • Jayguy5000Jayguy5000 Posts: 139
    edited 2007-08-11 01:25
    but its so much less painfull to have some one else do the work for me!

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Actually I think Im going to add the whiskers to my tank and let it roam, just need to figure out where.
  • T&E EngineerT&E Engineer Posts: 1,396
    edited 2007-08-11 01:32
    It sounds like your meter has weak batteries and need to be replaced.

    Once you do this you should be able to switch the volt ohm meter·to VDC and touch the 2 leads (black and red) together and it should get close to 0 or 0.00 something.

    At this point you should be able to measure 5volts dc between actual·pins 6 (for I/O pin P1 - use red lead) and Vss ground (actual pin 4 - use black lead).
  • Mike GreenMike Green Posts: 23,101
    edited 2007-08-11 03:01
    The voltage range of any CMOS output (like those in the Stamp) is actually more like 4.7V down to 0.3V. The datasheet for the device will give a tested value (usually called Voh and Vol ... Voltage - output high and Voltage - output low). The 0.3V is the typical saturation voltage of an MOSFET like those in the output driver of the I/O pin.
  • Tom WalkerTom Walker Posts: 509
    edited 2007-08-14 18:21
    Also remember that while the pin might be reading almost 5 volts, it can only provide a relatively small amount of current. If this confuses you, then some more education might be needed before you destroy a pin.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Truly Understand the Fundamentals and the Path will be so much easier...
  • David H.David H. Posts: 78
    edited 2007-08-15 14:11
    jayguy5000; It's probably your digital meter takes a little bit to arrive at the correct reading, and if your pin is going high for a short period and then going low, it may not be giving your meter time to lock in on the correct reading.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    David


    There are 10 types of people in this world,...
    Those that understand binary numbers, and those that don't!!!
Sign In or Register to comment.