Shop OBEX P1 Docs P2 Docs Learn Events
Button Question — Parallax Forums

Button Question

Benbo231Benbo231 Posts: 26
edited 2009-01-14 21:36 in BASIC Stamp
I have the Electronics for Dummies book and in it is a schematic for a switch that hooks up to a USB Board of education

it looks like this:
What's the +V stand for???idea.gif
+V
O
l
l
l
O
······ /
··· /
·/
O
l
l
·········································O
TO BAsic Stamp I/O Pin 1
l
/
\
························ / 10 K Ohm Resistor
\
l
l
l
······
············ Ground
··

Post Edited (Benbo231) : 1/15/2009 10:36:20 PM GMT

Comments

  • JamesDoughertyJamesDougherty Posts: 48
    edited 2009-01-14 21:24
    You have·the ground (-/vss) and the voltage (+/vdd). Think of it from a battery standpoint. The - and + of the battery is the same thing here.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    James Dougherty

    Ariel Productions
    http://www.arielproductions.com/
  • Benbo231Benbo231 Posts: 26
    edited 2009-01-14 21:25
    Also, if you need 2 Btn variables in basic, how do you name them? Im building a robot that's got 2 switches and eyes and stuff
    jumpin.gif

    Post Edited By Moderator (Chris Savage (Parallax)) : 1/15/2009 5:14:08 PM GMT
  • MovieMakerMovieMaker Posts: 502
    edited 2009-01-14 21:25
    That stands for your voltage. Usually, + 5 volts regulated DC, if I am correct.
  • JamesDoughertyJamesDougherty Posts: 48
    edited 2009-01-14 21:31
    Name them however you want to name them. However, you may want to come up with a naming convention so your projects will have some kind of structure. Also, you may want to name them something meaningful too instead of just "Button1" and "Button2"... What do the buttons do? "btnSteerLeft", "btnSteerRight", etc.

    Button01 PIN 1

    Button02 PIN 2

    Btn1 PIN 1

    Btn2 PIN 2

    Etc.



    [noparse]/noparse][b]EDIT[/b

    On your circuit board schematics it will be "S1" and "S2"
    Benbo231 said...
    Also, if you need 2 Btn variables in basic, how do you name them? Im building a robot that's got 2 switches and eyes and stuff
    jumpin.gif

    Post Edited By Moderator (Chris Savage (Parallax)) : 1/15/2009 5:14:34 PM GMT
  • Benbo231Benbo231 Posts: 26
    edited 2009-01-14 21:36
    thanx i think i just got it working with 1 switch

    Btn1
    and
    Btn2

    i just need to wire up the second one

    does anyone know what all that stuff after

    Button does?

    (BUTTON 1,0,255,250,btn,0,noswitch)

    Post Edited (Benbo231) : 1/15/2009 11:42:40 AM GMT
Sign In or Register to comment.