Shop OBEX P1 Docs P2 Docs Learn Events
Board of Education and BS2 — Parallax Forums

Board of Education and BS2

ArchiverArchiver Posts: 46,084
edited 2001-12-14 22:08 in General Discussion
I'm working on a robotics project in class and using the BS2 with the
Board of Education to control the robot, or at least planning to. I'm
using v1.2 of the stamp software, regular serial cable (not null
modem), ad 9V power supply. I'm pretty sure that I wiring a led
correctly to the board (to test if everything works) according to the
diagram in the manual and wrote the following program:

output0

blink:
out0=0
pause 1000
out0=1
pause 1000
goto blink

Rather than blinking, though, the led does not even turn on. I have
it wired in serial with a 470 ohm resistor from P0 to Vdd. I tried
reversing the led as well. I tried pressing the reset button.
Apparently when I run the program to the stamp it is
tokenized/downloaded successfully, but nevertheless the led remains
off. Could this be a faulty board? I tried two BS2's thinking that
one was broken but neither seemed to control the led. What could the
problem be?

- Chris

Comments

  • ArchiverArchiver Posts: 46,084
    edited 2001-12-14 15:50
    You can simplify your test program a bit and try it with different pins.
    Here's a test program like yours with a little extra feedback:

    LED CON 0 ' change to test other pins

    Blink:
    HIGH LED
    DEBUG "LED is on", CR
    PAUSE 1000
    LOW LED
    DEBUG "LED is off", CR
    PAUSE 1000
    GOTO Blink

    In the end, you might just have a bad LED -- it happens. Try connecting your
    LED/resistor circuit directly to Vdd to make sure it's working.

    -- Jon Williams
    -- Parallax



    In a message dated 12/14/01 2:56:08 AM Central Standard Time,
    apparatus@m... writes:


    > I'm working on a robotics project in class and using the BS2 with the
    > Board of Education to control the robot, or at least planning to. I'm
    > using v1.2 of the stamp software, regular serial cable (not null
    > modem), ad 9V power supply. I'm pretty sure that I wiring a led
    > correctly to the board (to test if everything works) according to the
    > diagram in the manual and wrote the following program:
    >
    > output0
    >
    > blink:
    > out0=0
    > pause 1000
    > out0=1
    > pause 1000
    > goto blink
    >
    > Rather than blinking, though, the led does not even turn on. I have
    > it wired in serial with a 470 ohm resistor from P0 to Vdd. I tried
    > reversing the led as well. I tried pressing the reset button.
    > Apparently when I run the program to the stamp it is
    > tokenized/downloaded successfully, but nevertheless the led remains
    > off. Could this be a faulty board? I tried two BS2's thinking that
    > one was broken but neither seemed to control the led. What could the
    >




    [noparse][[/noparse]Non-text portions of this message have been removed]
  • ArchiverArchiver Posts: 46,084
    edited 2001-12-14 18:09
    Hi,

    The first line

    Output0

    Is that a typing error?, you mean

    Output 0

    Without the space between output and 0
    It is interpreted as a label, i.e port 0 is never set to be an output.

    Regards peter


    Oorspronkelijk bericht
    Van: apparatus_1999 [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=lYRn36afm-RjkRBnVLymug-QhVGXIdP-9KIj61wDvnxDNaO3_8YWMizVSKCtd5OtRP8SccyESjon4zA1]apparatus@m...[/url
    Verzonden: vrijdag 14 december 2001 0:54
    Aan: basicstamps@yahoogroups.com
    Onderwerp: [noparse][[/noparse]basicstamps] Board of Education and BS2

    I'm working on a robotics project in class and using the BS2 with the
    Board of Education to control the robot, or at least planning to. I'm
    using v1.2 of the stamp software, regular serial cable (not null
    modem), ad 9V power supply. I'm pretty sure that I wiring a led
    correctly to the board (to test if everything works) according to the
    diagram in the manual and wrote the following program:

    output0

    blink:
    out0=0
    pause 1000
    out0=1
    pause 1000
    goto blink

    Rather than blinking, though, the led does not even turn on. I have
    it wired in serial with a 470 ohm resistor from P0 to Vdd. I tried
    reversing the led as well. I tried pressing the reset button.
    Apparently when I run the program to the stamp it is
    tokenized/downloaded successfully, but nevertheless the led remains
    off. Could this be a faulty board? I tried two BS2's thinking that
    one was broken but neither seemed to control the led. What could the
    problem be?

    - Chris


    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/
  • ArchiverArchiver Posts: 46,084
    edited 2001-12-14 22:08
    Verify that the LED is operating correctly. With the resistor in series with
    the LED place across the power supply output terminals momentarily and
    verify the LED illuminates. If it does reconnect it to the BS2 and use the
    example program in the Stamp manual of the blinking LED.
    Good luck, Steve
    Original Message
    From: "apparatus_1999" <apparatus@m...>
    To: <basicstamps@yahoogroups.com>
    Sent: Friday, December 14, 2001 12:54 AM
    Subject: [noparse][[/noparse]basicstamps] Board of Education and BS2


    > I'm working on a robotics project in class and using the BS2 with the
    > Board of Education to control the robot, or at least planning to. I'm
    > using v1.2 of the stamp software, regular serial cable (not null
    > modem), ad 9V power supply. I'm pretty sure that I wiring a led
    > correctly to the board (to test if everything works) according to the
    > diagram in the manual and wrote the following program:
    >
    > output0
    >
    > blink:
    > out0=0
    > pause 1000
    > out0=1
    > pause 1000
    > goto blink
    >
    > Rather than blinking, though, the led does not even turn on. I have
    > it wired in serial with a 470 ohm resistor from P0 to Vdd. I tried
    > reversing the led as well. I tried pressing the reset button.
    > Apparently when I run the program to the stamp it is
    > tokenized/downloaded successfully, but nevertheless the led remains
    > off. Could this be a faulty board? I tried two BS2's thinking that
    > one was broken but neither seemed to control the led. What could the
    > problem be?
    >
    > - Chris
    >
    >
    > 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.