Shop OBEX P1 Docs P2 Docs Learn Events
Help! BS2 New user! — Parallax Forums

Help! BS2 New user!

ArchiverArchiver Posts: 46,084
edited 2002-10-28 03:49 in General Discussion
I have been a BS1 user for years. I wanted to do a project with a BS2.

I cannot get the darn thing to work!

I did a very simple program of HIGH 7.
Pin 7 becomes high but I get this weird pulse every 2.5 seconds on the pin. It
then goes low for a blip. This is fustrating as heck! I only have the serial
port and power connected. I see this on all the pins. I can see it with a volt
meter and if I have an LED on the pin.

I am using a BS2 Rev E and the DOS BS2 program. Anythoughts????

This is another problem. I cannot get the 1.33 windows editor to recognise the
BS2. The DOS version works and so does the 1.04 version...odd if you ask me.

Thanks!

Steve

Comments

  • ArchiverArchiver Posts: 46,084
    edited 2002-10-27 00:55
    This might be completely unrelated but, I noticed a similar pulsing
    on my system when i fed Vin from the high leg of my 7805. I had it
    set up where I'd switch off the +5 supply to all my chips but the 9v
    was still going to the stamp. LEDs off my PCF8574 would actually be
    dimly lit and pulse as you describe. I figured out that I was
    actually powering everything through the stamp pins.

    I switched Vin over to 5v so it'd be turned off at the same time as
    the rest of the breadboard and the pulsing disappeared. My
    temperature sensors were jumping around a lot less too.


    --- In basicstamps@y..., s.monsey@a... wrote:
    > I have been a BS1 user for years. I wanted to do a project with a
    BS2.
    >
    > I cannot get the darn thing to work!
    >
    > I did a very simple program of HIGH 7.
    > Pin 7 becomes high but I get this weird pulse every 2.5 seconds on
    the pin. It
    > then goes low for a blip. This is fustrating as heck! I only have
    the serial
    > port and power connected. I see this on all the pins. I can see it
    with a volt
    > meter and if I have an LED on the pin.
    >
    > I am using a BS2 Rev E and the DOS BS2 program. Anythoughts????
    >
    > This is another problem. I cannot get the 1.33 windows editor to
    recognise the
    > BS2. The DOS version works and so does the 1.04 version...odd if
    you ask me.
    >
    > Thanks!
    >
    > Steve
  • ArchiverArchiver Posts: 46,084
    edited 2002-10-27 00:56
    When the BS2 does an "END" (like at the end of your program) it goes to
    sleep to conserve power. However, that makes it watchdog out every 2.5S
    and then it realizes it should be asleep so it goes to sleep again.
    Here's the trick:

    HIGH 7
    Iamdone:
    Goto Iamdone

    Al Williams
    AWC
    * 8 channels of PWM
    http://www.al-williams.com/awce/pak5.htm



    >
    Original Message
    > From: s.monsey@a... [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=5qqqMZ7bkksqvy9awFPLd6EYjxiaPCIlnkECst8kylY3nlU6Kyndb0eBMXX5LxstY6ERmmd76NkllA]s.monsey@a...[/url
    > Sent: Saturday, October 26, 2002 6:51 PM
    > To: basicstamps@yahoogroups.com
    > Subject: [noparse][[/noparse]basicstamps] Help! BS2 New user!
    >
    >
    > I have been a BS1 user for years. I wanted to do a project with a BS2.
    >
    > I cannot get the darn thing to work!
    >
    > I did a very simple program of HIGH 7.
    > Pin 7 becomes high but I get this weird pulse every 2.5
    > seconds on the pin. It
    > then goes low for a blip. This is fustrating as heck! I only
    > have the serial
    > port and power connected. I see this on all the pins. I can
    > see it with a volt
    > meter and if I have an LED on the pin.
    >
    > I am using a BS2 Rev E and the DOS BS2 program. Anythoughts????
    >
    > This is another problem. I cannot get the 1.33 windows editor
    > to recognise the
    > BS2. The DOS version works and so does the 1.04 version...odd
    > if you ask me.
    >
    > Thanks!
    >
    > Steve
    >
    >
    > 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 2002-10-27 00:59
    Yup. The code ends and the Stamp goes into sleep mode. It blips the pins
    every 2.5 seconds while its asleep. Put a loop with a pause in it after the
    high statement to keep the Stamp occupied:

    DEBUG "Hello World"

    HIGH 7

    Loop:

    PAUSE 500

    GOTO Loop

    **********


    > I have been a BS1 user for years. I wanted to do a project with a BS2.
    >
    > I cannot get the darn thing to work!
    >
    > I did a very simple program of HIGH 7.
    > Pin 7 becomes high but I get this weird pulse every 2.5 seconds on the
    pin. It
    > then goes low for a blip. This is fustrating as heck! I only have the
    serial
    > port and power connected. I see this on all the pins. I can see it with a
    volt
    > meter and if I have an LED on the pin.
    >
    > I am using a BS2 Rev E and the DOS BS2 program. Anythoughts????
  • ArchiverArchiver Posts: 46,084
    edited 2002-10-28 03:49
    Did you get the answer to this?

    Scott Edwards book "Programming and Customizing the Basic Stamp
    Computer" has a blurb in chapter 5 that suggests the problem has to
    do with serial-port buffering. I had the problem you describe on an
    old Toshiba laptop and found that the following solved it:

    1. From the Windows Start menu, select "Settings" - "Control Panel"
    2. Double-click the "System" icon and select the "Device Manager" tab.
    3. Click "Ports", the double-click the com port to which your stamp
    is connected.
    4. Select the "Port Settings" tab and click the "Advanced" button.
    5. Uncheck the box labeled "Use FIFO Buffers"
    6. Click the OK buttons on all the windows opened above.

    (The above was copied verbatim from Scott Edwards book)


    -Eric


    >
    > This is another problem. I cannot get the 1.33 windows editor to
    recognise the
    > BS2. The DOS version works and so does the 1.04 version...odd if
    you ask me.
    >
    > Thanks!
    >
    > Steve
Sign In or Register to comment.