Shop OBEX P1 Docs P2 Docs Learn Events
Hooking up an LED — Parallax Forums

Hooking up an LED

ArchiverArchiver Posts: 46,084
edited 2002-08-01 19:28 in General Discussion
I'm new to BASIC Stamps, and I have just recently received my BASIC Stamp
Rev. D. starter kit, and I want to know how I hook up an LED to the
prototyping area? I have an LED and a 470 ohm resistor (1/2 watt); however,
I don't see how I hook the resistor up to an I/O pin and then to the LED?
If someone could enlighten me on this process that would be great. Please
be as specific as possible as I am a newbie and admit my inferiority.

Thanks,
-Paul

_________________________________________________________________
Send and receive Hotmail on your mobile device: http://mobile.msn.com

Comments

  • ArchiverArchiver Posts: 46,084
    edited 2002-08-01 16:01
    I would sincerely suggest you get a copy of Scott Edwards' book: Programming
    And Customizing The BASIC Stamp Computer. Not only will it help you with
    programming, it has some good information on fundamental electronics AND it
    shows how to build connectors for those pesky pins. I'm assuming you don't
    want to do any soldering....

    -- Jon Williams
    -- Parallax

    In a message dated 8/1/02 9:25:08 AM Central Daylight Time,
    basic_stamp@h... writes:


    > I'm new to BASIC Stamps, and I have just recently received my BASIC Stamp
    > Rev. D. starter kit, and I want to know how I hook up an LED to the
    > prototyping area? I have an LED and a 470 ohm resistor (1/2 watt);
    > however,
    > I don't see how I hook the resistor up to an I/O pin and then to the LED?
    > If someone could enlighten me on this process that would be great. Please
    >




    [noparse][[/noparse]Non-text portions of this message have been removed]
  • ArchiverArchiver Posts: 46,084
    edited 2002-08-01 16:12
    You can make the connectors pretty easily. However, I prefer to buy
    them:
    http://www.elexp.com/bb_0mf1.htm

    The female to female will plug into those pins. A F/M will plug between
    a pin and a breadboard. Scott also sells these at www.seetron.com (see
    Connectamundos) but no F/M ones.

    Not our main thing anymore, but we still make the ASP-II
    (http://www.al-williams.com/awce/asp2.htm) that lets you build Stamp
    circuits on a breadboard which is a lot easier (although this if for the
    Stamp II).

    Al Williams
    AWC
    * NEW: PAK-VIa - Read PS/2 keyboards or mice -- double the buffer, lower
    current consumption.
    http://www.al-williams.com/awce/pak6.htm




    >
    Original Message
    > From: jonwms@a... [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=mcoB6IaXwMEpqouZSpHEqJSy7W-ECz-Q-C5KCR3Tj6tpzpi3yoS5sxRbQZPLPeifU8xz-Q]jonwms@a...[/url
    > Sent: Thursday, August 01, 2002 10:02 AM
    > To: basicstamps@yahoogroups.com
    > Subject: Re: [noparse][[/noparse]basicstamps] Hooking up an LED
    >
    >
    > I would sincerely suggest you get a copy of Scott Edwards'
    > book: Programming
    > And Customizing The BASIC Stamp Computer. Not only will it
    > help you with
    > programming, it has some good information on fundamental
    > electronics AND it
    > shows how to build connectors for those pesky pins. I'm
    > assuming you don't
    > want to do any soldering....
  • ArchiverArchiver Posts: 46,084
    edited 2002-08-01 19:18
    Excuse my ignorance but let me get this straight. I'm still not clear on
    how you would connect everything together.

    Basic Stamp I/O pin <- female-female -> 470 ohm resister <- female-female ->
    LED

    Where exactly do you connect everything to the prototyping area, and how?
    Al, you mentioned that a "...F/M will plug between a pin and a breadboard."
    That would work on my Basic Stamp Rev D, which just has a small prototyping
    area? Al, that site (http://www.elexp.com/bb_0mf1.htm) is great and has
    exactly what I need but you must spend a minimum of $20. Do you know of a
    better place to purchase jumper wires pre-assembled?

    Thanks,
    -Paul



    >From: "Al Williams" <alw@a...>
    >Reply-To: basicstamps@yahoogroups.com
    >To: <basicstamps@yahoogroups.com>
    >Subject: RE: [noparse][[/noparse]basicstamps] Hooking up an LED
    >Date: Thu, 1 Aug 2002 10:12:06 -0500
    >
    >You can make the connectors pretty easily. However, I prefer to buy
    >them:
    >http://www.elexp.com/bb_0mf1.htm
    >
    >The female to female will plug into those pins. A F/M will plug between
    >a pin and a breadboard. Scott also sells these at www.seetron.com (see
    >Connectamundos) but no F/M ones.
    >
    >Not our main thing anymore, but we still make the ASP-II
    >(http://www.al-williams.com/awce/asp2.htm) that lets you build Stamp
    >circuits on a breadboard which is a lot easier (although this if for the
    >Stamp II).
    >
    >Al Williams
    >AWC
    >* NEW: PAK-VIa - Read PS/2 keyboards or mice -- double the buffer, lower
    >current consumption.
    >http://www.al-williams.com/awce/pak6.htm
    >
    >
    >
    >
    > >
    Original Message
    > > From: jonwms@a... [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=I9KSyTalK7zmdPg48ejy_XasqWUvCGG8Hbus14JoyD-NB4rA2AJMzdPTLxAGfzy70Zpz9w]jonwms@a...[/url
    > > Sent: Thursday, August 01, 2002 10:02 AM
    > > To: basicstamps@yahoogroups.com
    > > Subject: Re: [noparse][[/noparse]basicstamps] Hooking up an LED
    > >
    > >
    > > I would sincerely suggest you get a copy of Scott Edwards'
    > > book: Programming
    > > And Customizing The BASIC Stamp Computer. Not only will it
    > > help you with
    > > programming, it has some good information on fundamental
    > > electronics AND it
    > > shows how to build connectors for those pesky pins. I'm
    > > assuming you don't
    > > want to do any soldering....
    >
    >
    >To UNSUBSCRIBE, just send mail to:
    > basicstamps-unsubscribe@yahoogroups.com
    >from the same email address that you subscribed. Text in the Subject and
    >Body of the message will be ignored.
    >
    >
    >Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/

    _________________________________________________________________
    MSN Photos is the easiest way to share and print your photos:
    http://photos.msn.com/support/worldwide.aspx
  • ArchiverArchiver Posts: 46,084
    edited 2002-08-01 19:28
    Unfortunately, I don't know any other places that sell these ready made.
    Most people make their own with heat shrink and "pins" that you can buy
    for making connectors.

    To answer your real question, there are at least 4 ways to hook up your
    LED. Old guys like me tend to wire the LED so it will turn on when the
    Stamp pin is low (there is a historical reason for this, but for the
    Stamp it really doesn't matter much). On the schematic for the LED the
    arrow points one way |< (left in this example). To make the LED light
    up, you need to provide a + voltage on the right side of the arrow going
    to a lower voltage (usually ground) on the left side of the arrow.
    However, if you just hooked, say, a 9V battery to the diode, it would
    quickly burn up because the LED would cause too much current to flow.

    So the answer is to use your resistor to limit the current. The resistor
    can go on either side of the diode, it doesn't really matter. So:

    Stamp pin ---- RRRRRR
    |< ---- +5V

    Or

    Stamp pin
    |<
    RRRRRRR --- +5V

    If you prefer to make the LED light on a high:

    Stamp pin ---->|
    RRRRRR ---- Ground

    Or

    Stamp pin ----RRRRRR--->|
    Ground

    You might enjoy the articles in the Stamp FAQ about lighting LEDs:
    http://www.wd5gnr.com/stampfaq.htm (yay! Back to the database format; I
    hope everyone likes it). Also read http://www.wd5gnr.com/basiccir.htm if
    you want to know WHY the resistor is sized as it is.

    By the way, we sell 5V LEDs (and you can get them at Radio Shack) that
    directly use 5V instead of needing a resistor. Very handy! They really
    have the resistor built in.

    Al Williams
    AWC
    * Easy RS-232 Prototyping
    http://www.al-williams.com/awce/rs1.htm




    >
    Original Message
    > From: Paul M [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=XCm6FCOMTFomXBchkdzKXUjh6-NvjI0Qou42Iv-snVN3NZ5-Uqkhf0XwYqFebn7qD-QWOyihWmwkisP18dYBlO0]basic_stamp@h...[/url
    > Sent: Thursday, August 01, 2002 1:19 PM
    > To: basicstamps@yahoogroups.com
    > Subject: RE: [noparse][[/noparse]basicstamps] Hooking up an LED
    >
    >
    > Excuse my ignorance but let me get this straight. I'm still
    > not clear on
    > how you would connect everything together.
    >
    > Basic Stamp I/O pin <- female-female -> 470 ohm resister <-
    > female-female ->
    > LED
    >
    > Where exactly do you connect everything to the prototyping
    > area, and how?
    > Al, you mentioned that a "...F/M will plug between a pin and
    > a breadboard."
    > That would work on my Basic Stamp Rev D, which just has a
    > small prototyping
    > area? Al, that site (http://www.elexp.com/bb_0mf1.htm) is
    > great and has
    > exactly what I need but you must spend a minimum of $20. Do
    > you know of a
    > better place to purchase jumper wires pre-assembled?
    >
    > Thanks,
    > -Paul
    >
    >
    >
    > >From: "Al Williams" <alw@a...>
    > >Reply-To: basicstamps@yahoogroups.com
    > >To: <basicstamps@yahoogroups.com>
    > >Subject: RE: [noparse][[/noparse]basicstamps] Hooking up an LED
    > >Date: Thu, 1 Aug 2002 10:12:06 -0500
    > >
    > >You can make the connectors pretty easily. However, I prefer to buy
    > >them:
    > >http://www.elexp.com/bb_0mf1.htm
    > >
    > >The female to female will plug into those pins. A F/M will
    > plug between
    > >a pin and a breadboard. Scott also sells these at
    > www.seetron.com (see
    > >Connectamundos) but no F/M ones.
    > >
    > >Not our main thing anymore, but we still make the ASP-II
    > >(http://www.al-williams.com/awce/asp2.htm) that lets you build Stamp
    > >circuits on a breadboard which is a lot easier (although this if for
    > >the Stamp II).
    > >
    > >Al Williams
    > >AWC
    > >* NEW: PAK-VIa - Read PS/2 keyboards or mice -- double the buffer,
    > >lower current consumption. http://www.al-williams.com/awce/pak6.htm
    > >
    > >
    > >
    > >
    > > >
    Original Message
    > > > From: jonwms@a... [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=fxQ2LortiqQUa6LkbO2zmuZIHCQDeBq9VGvMZSOScR97rx89o7Nj9Hsojl7obpNKQcgZw1k]jonwms@a...[/url
    > > > Sent: Thursday, August 01, 2002 10:02 AM
    > > > To: basicstamps@yahoogroups.com
    > > > Subject: Re: [noparse][[/noparse]basicstamps] Hooking up an LED
    > > >
    > > >
    > > > I would sincerely suggest you get a copy of Scott Edwards'
    > > > book: Programming
    > > > And Customizing The BASIC Stamp Computer. Not only will
    > it help you
    > > > with programming, it has some good information on fundamental
    > > > electronics AND it shows how to build connectors for those pesky
    > > > pins. I'm assuming you don't
    > > > want to do any soldering....
    > >
    > >
    > >To UNSUBSCRIBE, just send mail to:
    > > basicstamps-unsubscribe@yahoogroups.com
    > >from the same email address that you subscribed. Text in
    > the Subject
    > >and
    > >Body of the message will be ignored.
    > >
    > >
    > >Your use of Yahoo! Groups is subject to
    > >http://docs.yahoo.com/info/terms/
    >
    > _________________________________________________________________
    > MSN Photos is the easiest way to share and print your photos:
    > http://photos.msn.com/support/worldwide.aspx
    >
    >
    > To UNSUBSCRIBE, just send mail to:
    > basicstamps-unsubscribe@yahoogroups.com
    > from the same email address that you subscribed. Text in the
    > Subject and Body of the message will be ignored.
    >
    >
    > Your use of Yahoo! Groups is subject to
    http://docs.yahoo.com/info/terms/
Sign In or Register to comment.