Shop OBEX P1 Docs P2 Docs Learn Events
Basic Stamp 2 problem — Parallax Forums

Basic Stamp 2 problem

ArchiverArchiver Posts: 46,084
edited 2003-03-10 14:48 in General Discussion
First, FREQOUT only works (correctly) with frequency values up to
32,768. Second, the FREQOUT output stops before the next PBasic
statement begins, so you can't expect to continue seeing its effect
for long. Try rearranging your code like this:

Main:
freqout 6,1,40500
ir1 = in10
freqout 7,1,40500
ir2 = inll
debug ? ir1, ? ir2
goto main

So that the relevant input is sampled ASAP after the FREQOUT
terminates.

Steve

Comments

  • ArchiverArchiver Posts: 46,084
    edited 2001-01-19 22:39
    I have Basic Stamp 2 that normally works fine. Today it all of a sudden
    stopped working. I thought at first it was software but made a test
    application that is shone below. This program is used to sense the presence
    of objects using the infrared recievers on your web site.

    This program does not work. The variable ir2 always is 1 no matter if there
    is a object in front of it


    ir2 var bit
    ir1 var bit

    Main:
    freqout 6,1,40500
    freqout 7,1,40500
    ir1 = in10
    ir2 = inll
    debug ? ir2
    goto main



    When i change the program like below and comment out the ir1 = 0, the
    program works fine for the in11 side.



    ir2 var bit
    ir1 var bit

    Main:
    freqout 6,1,40500
    freqout 7,1,40500
    'ir1 = in10
    ir2 = inll
    debug ? ir2
    goto main


    I can also switch the variables, so ir1 = in11 and ir2 = in10, then the
    other side will work fine, but if i have both nothing works. I am positive
    it is not the electronic circuit because it works perfectly when i do
    comment out the first variable. Any help you guys could provide would be
    great, my idea is that it must be a problem with the stamp, perhaps static
    electricity, but i hope i can get some more suggestions.
  • ArchiverArchiver Posts: 46,084
    edited 2003-02-13 02:30
    Hello,
    I just got an email today back from Parallax saying that my BS2
    is testing good on all points. I sent it in because my computer was
    not able to program it at all. It could identity the stamp, but
    could not download a program, and the program that was downloaded
    previously was not running. Has anyone had this problem or anything
    like it?

    Thanks

    Bill
  • ArchiverArchiver Posts: 46,084
    edited 2003-02-13 17:13
    Why yes, I've had this identical problem.
    My laptop's serial port (Toshiba Satellite 2535,
    circa Jan 2000) refuses to recognize the BS2.
    As far as I know, the port is good, and looks good on a
    7-LED RS-232 break-out box. However, when I try to
    'Run' on the port 'Loopback' is 'Yes',
    'Echo' is 'No', and the Editor comes back with
    'Stamp Not Found'.

    I know the BS2 uses a couple of signals for the Editor
    to reset it, identify it, and then load it -- but the
    exact details of this I don't know yet.

    My solution was to get a USB-based serial port, which
    works with my Win-98 laptop. 'Identify' on this port
    says 'Loopback' is 'No', 'Echo' is 'Yes', and the
    Editor will program the part.

    --- In basicstamps@yahoogroups.com, "billakay <billak@f...>"
    <billak@f...> wrote:
    > Hello,
    > I just got an email today back from Parallax saying that my
    BS2
    > is testing good on all points. I sent it in because my computer was
    > not able to program it at all. It could identity the stamp, but
    > could not download a program, and the program that was downloaded
    > previously was not running. Has anyone had this problem or anything
    > like it?
    >
    > Thanks
    >
    > Bill
  • ArchiverArchiver Posts: 46,084
    edited 2003-02-13 18:46
    There are a few USB to serial adapters that can cause this. For example, my
    Belkin doesn't work, but an IOGEAR and the BAFO unit sold by Parallax work
    fin.
    Lee

    Original Message
    From: <allan.lane@h...>
    To: <basicstamps@yahoogroups.com>
    Sent: Thursday, February 13, 2003 12:13 PM
    Subject: [noparse][[/noparse]basicstamps] Re: BASIC Stamp 2 Problem


    > Why yes, I've had this identical problem.
    > My laptop's serial port (Toshiba Satellite 2535,
    > circa Jan 2000) refuses to recognize the BS2.
    > As far as I know, the port is good, and looks good on a
    > 7-LED RS-232 break-out box. However, when I try to
    > 'Run' on the port 'Loopback' is 'Yes',
    > 'Echo' is 'No', and the Editor comes back with
    > 'Stamp Not Found'.
    >
    > I know the BS2 uses a couple of signals for the Editor
    > to reset it, identify it, and then load it -- but the
    > exact details of this I don't know yet.
    >
    > My solution was to get a USB-based serial port, which
    > works with my Win-98 laptop. 'Identify' on this port
    > says 'Loopback' is 'No', 'Echo' is 'Yes', and the
    > Editor will program the part.
    >
    > --- In basicstamps@yahoogroups.com, "billakay <billak@f...>"
    > <billak@f...> wrote:
    > > Hello,
    > > I just got an email today back from Parallax saying that my
    > BS2
    > > is testing good on all points. I sent it in because my computer was
    > > not able to program it at all. It could identity the stamp, but
    > > could not download a program, and the program that was downloaded
    > > previously was not running. Has anyone had this problem or anything
    > > like it?
    > >
    > > Thanks
    > >
    > > Bill
    >
    >
    > 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 2003-02-13 23:54
    Allan,

    Try disabling the FIFO buffers. This is waht it took with my Toshiba laptop.

    Jonathan

    www.madlabs.info

    Original Message
    From: <allan.lane@h...>
    To: <basicstamps@yahoogroups.com>
    Sent: Thursday, February 13, 2003 9:13 AM
    Subject: [noparse][[/noparse]basicstamps] Re: BASIC Stamp 2 Problem


    > Why yes, I've had this identical problem.
    > My laptop's serial port (Toshiba Satellite 2535,
    > circa Jan 2000) refuses to recognize the BS2.
    > As far as I know, the port is good, and looks good on a
    > 7-LED RS-232 break-out box. However, when I try to
    > 'Run' on the port 'Loopback' is 'Yes',
    > 'Echo' is 'No', and the Editor comes back with
    > 'Stamp Not Found'.
    >
    > I know the BS2 uses a couple of signals for the Editor
    > to reset it, identify it, and then load it -- but the
    > exact details of this I don't know yet.
    >
    > My solution was to get a USB-based serial port, which
    > works with my Win-98 laptop. 'Identify' on this port
    > says 'Loopback' is 'No', 'Echo' is 'Yes', and the
    > Editor will program the part.
    >
    > --- In basicstamps@yahoogroups.com, "billakay <billak@f...>"
    > <billak@f...> wrote:
    > > Hello,
    > > I just got an email today back from Parallax saying that my
    > BS2
    > > is testing good on all points. I sent it in because my computer was
    > > not able to program it at all. It could identity the stamp, but
    > > could not download a program, and the program that was downloaded
    > > previously was not running. Has anyone had this problem or anything
    > > like it?
    > >
    > > Thanks
    > >
    > > Bill
    >
    >
    > 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 2003-02-18 19:23
    A thousand thanks, I assumed I had damaged my
    serial port by connecting it to some suspect
    equipment. I went in to control panel, System,
    Hardware, Device Manager, Serial Ports, and
    de-selected 'Use Fifo' on my laptop's port, and
    it now says Echo Yes, Loopback Yes, and is
    happy to talk to my BS2!

    Now, if only I had known that tip earlier.
    This still saves me having to carry that extra
    cable and USB device around all the time.

    --- In basicstamps@yahoogroups.com, "Jonathan Peakall"
    <jpeakall@m...> wrote:
    > Allan,
    >
    > Try disabling the FIFO buffers. This is what it took with my
    Toshiba laptop.
    >
    > Jonathan
    >
    > www.madlabs.info
    >
    >
    Original Message
    > From: <allan.lane@h...>
    > To: <basicstamps@yahoogroups.com>
    > Sent: Thursday, February 13, 2003 9:13 AM
    > Subject: [noparse][[/noparse]basicstamps] Re: BASIC Stamp 2 Problem
    >
    >
    > > Why yes, I've had this identical problem.
    > > My laptop's serial port (Toshiba Satellite 2535,
    > > circa Jan 2000) refuses to recognize the BS2.
    > > ... The rest deleted...
  • ArchiverArchiver Posts: 46,084
    edited 2003-02-18 20:59
    Allan,

    Glad it worked for you!

    Jonathan

    www.madlabs.info

    Original Message
    From: <allan.lane@h...>
    To: <basicstamps@yahoogroups.com>
    Sent: Tuesday, February 18, 2003 11:23 AM
    Subject: [noparse][[/noparse]basicstamps] Re: BASIC Stamp 2 Problem


    > A thousand thanks, I assumed I had damaged my
    > serial port by connecting it to some suspect
    > equipment. I went in to control panel, System,
    > Hardware, Device Manager, Serial Ports, and
    > de-selected 'Use Fifo' on my laptop's port, and
    > it now says Echo Yes, Loopback Yes, and is
    > happy to talk to my BS2!
    >
    > Now, if only I had known that tip earlier.
    > This still saves me having to carry that extra
    > cable and USB device around all the time.
    >
    > --- In basicstamps@yahoogroups.com, "Jonathan Peakall"
    > <jpeakall@m...> wrote:
    > > Allan,
    > >
    > > Try disabling the FIFO buffers. This is what it took with my
    > Toshiba laptop.
    > >
    > > Jonathan
    > >
    > > www.madlabs.info
    > >
    > >
    Original Message
    > > From: <allan.lane@h...>
    > > To: <basicstamps@yahoogroups.com>
    > > Sent: Thursday, February 13, 2003 9:13 AM
    > > Subject: [noparse][[/noparse]basicstamps] Re: BASIC Stamp 2 Problem
    > >
    > >
    > > > Why yes, I've had this identical problem.
    > > > My laptop's serial port (Toshiba Satellite 2535,
    > > > circa Jan 2000) refuses to recognize the BS2.
    > > > ... The rest deleted...
    >
    >
    >
    > 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 2003-03-10 13:12
    I had this problem with my Toshiba 320CDT Satellite. I didn't need
    to disable the Fifo entirely, I just moved the slider bar for
    receiving down a notch. That has seemed to help so far. Also, I
    tried the DOS stamp editor, and it downloaded flawlessly. In
    addition to that, the 15K executable is certainly lightweight!

    --- In basicstamps@yahoogroups.com, "Jonathan Peakall"
    <jpeakall@m...> wrote:
    > Allan,
    >
    > Glad it worked for you!
    >
    > Jonathan
    >
    > www.madlabs.info
    >
    >
    Original Message
    > From: <allan.lane@h...>
    > To: <basicstamps@yahoogroups.com>
    > Sent: Tuesday, February 18, 2003 11:23 AM
    > Subject: [noparse][[/noparse]basicstamps] Re: BASIC Stamp 2 Problem
    >
    >
    > > A thousand thanks, I assumed I had damaged my
    > > serial port by connecting it to some suspect
    > > equipment. I went in to control panel, System,
    > > Hardware, Device Manager, Serial Ports, and
    > > de-selected 'Use Fifo' on my laptop's port, and
    > > it now says Echo Yes, Loopback Yes, and is
    > > happy to talk to my BS2!
    > >
    > > Now, if only I had known that tip earlier.
    > > This still saves me having to carry that extra
    > > cable and USB device around all the time.
    > >
    > > --- In basicstamps@yahoogroups.com, "Jonathan Peakall"
    > > <jpeakall@m...> wrote:
    > > > Allan,
    > > >
    > > > Try disabling the FIFO buffers. This is what it took with my
    > > Toshiba laptop.
    > > >
    > > > Jonathan
    > > >
    > > > www.madlabs.info
    > > >
    > > >
    Original Message
    > > > From: <allan.lane@h...>
    > > > To: <basicstamps@yahoogroups.com>
    > > > Sent: Thursday, February 13, 2003 9:13 AM
    > > > Subject: [noparse][[/noparse]basicstamps] Re: BASIC Stamp 2 Problem
    > > >
    > > >
    > > > > Why yes, I've had this identical problem.
    > > > > My laptop's serial port (Toshiba Satellite 2535,
    > > > > circa Jan 2000) refuses to recognize the BS2.
    > > > > ... The rest deleted...
    > >
    > >
    > >
    > > 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 2003-03-10 14:48
    Fkerr,

    I'll try this. Does it really matter if the FIFO buffers are enabled? My
    laptop seems to run everything fine without, but then I only do micro
    programming with it.

    Jonathan

    www.madlabs.info

    Original Message
    From: "fkerr2003" <fkerr@u...>
    To: <basicstamps@yahoogroups.com>
    Sent: Monday, March 10, 2003 5:12 AM
    Subject: [noparse][[/noparse]basicstamps] Re: BASIC Stamp 2 Problem


    > I had this problem with my Toshiba 320CDT Satellite. I didn't need
    > to disable the Fifo entirely, I just moved the slider bar for
    > receiving down a notch. That has seemed to help so far. Also, I
    > tried the DOS stamp editor, and it downloaded flawlessly. In
    > addition to that, the 15K executable is certainly lightweight!
    >
    > --- In basicstamps@yahoogroups.com, "Jonathan Peakall"
    > <jpeakall@m...> wrote:
    > > Allan,
    > >
    > > Glad it worked for you!
    > >
    > > Jonathan
    > >
    > > www.madlabs.info
    > >
    > >
    Original Message
    > > From: <allan.lane@h...>
    > > To: <basicstamps@yahoogroups.com>
    > > Sent: Tuesday, February 18, 2003 11:23 AM
    > > Subject: [noparse][[/noparse]basicstamps] Re: BASIC Stamp 2 Problem
    > >
    > >
    > > > A thousand thanks, I assumed I had damaged my
    > > > serial port by connecting it to some suspect
    > > > equipment. I went in to control panel, System,
    > > > Hardware, Device Manager, Serial Ports, and
    > > > de-selected 'Use Fifo' on my laptop's port, and
    > > > it now says Echo Yes, Loopback Yes, and is
    > > > happy to talk to my BS2!
    > > >
    > > > Now, if only I had known that tip earlier.
    > > > This still saves me having to carry that extra
    > > > cable and USB device around all the time.
    > > >
    > > > --- In basicstamps@yahoogroups.com, "Jonathan Peakall"
    > > > <jpeakall@m...> wrote:
    > > > > Allan,
    > > > >
    > > > > Try disabling the FIFO buffers. This is what it took with my
    > > > Toshiba laptop.
    > > > >
    > > > > Jonathan
    > > > >
    > > > > www.madlabs.info
    > > > >
    > > > >
    Original Message
    > > > > From: <allan.lane@h...>
    > > > > To: <basicstamps@yahoogroups.com>
    > > > > Sent: Thursday, February 13, 2003 9:13 AM
    > > > > Subject: [noparse][[/noparse]basicstamps] Re: BASIC Stamp 2 Problem
    > > > >
    > > > >
    > > > > > Why yes, I've had this identical problem.
    > > > > > My laptop's serial port (Toshiba Satellite 2535,
    > > > > > circa Jan 2000) refuses to recognize the BS2.
    > > > > > ... The rest deleted...
    > > >
    > > >
    > > >
    > > > 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/
    > > >
    > > >
    > > >
    > > >
    >
    >
    > 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.