Shop OBEX P1 Docs P2 Docs Learn Events
IR link between BS2p and external programming PC — Parallax Forums

IR link between BS2p and external programming PC

ArchiverArchiver Posts: 46,084
edited 2003-06-05 16:01 in General Discussion
Hi
I am planning to build a IR link to replace the serial link (Sout &
Sin connections)between the BasicStamp (BS2p) and the external PC.

I saw the application "IrDA with the BASIC Stamp & the MAX3100" by
Tracy Allen. Can this circuit be used to connect the RS232 pins
Sout/Sin of BasicStamp rather than the TTL i/o pins of the stamp and
use only one of hte I/o pins for the SCLK.
( I will use electrical wires to load the program and only need the
IR link while running the program to monitor the progress and input
data)
Can this circuit be used at a distance of 2-3 foot?
What is the approximate current draw of this circuit?

Also, I found the following comment by Tracy Allen in reply to an
earlier post:

"Many PCs have an IRDA serial infrared port built in. You can use
that with the Stamp, if you provide the Stamp with an IrDA interface.
Here is one using the MAX3100:
http://www.emesys.com/BS2IrDA.htm

Another option might be the RS232<->IR chips from Rentron, or the new
IRbuddy from Parallax. Those modules use high frequency modulation
to achieve much greater range than is possible with IrDA."

I checked the Rentron website and found IR links based on 38KHzor
40KHz modulation and has a longer range, but has a low data rate of
2400 baud only. Does anyone know if the circuits given in RENTRON
website,(e.g. using AIRBYTE ASIC)can be made to operate at higher
baud, say 9600? Has anyone in this group used their AIRBYTE IC? I
noticed they sell the transceiver module not the individual IC? Do
anyone of you know if it is available elsewhere?

Comments

  • ArchiverArchiver Posts: 46,084
    edited 2003-06-03 22:28
    While I havn't yet used the 3100 as an IRDA interface,
    I have used it as a general purpose UART -- it's
    a very nice chip.

    However -- it is designed to interface with the
    Stamp as an 'SPI' interface. It wants 4 pins --
    DataIn, DataOut, Clock, and ChipSelect. On the
    good side, you can re-use the DataOut, DataIn, and
    Clock lines with another SPI device, as long
    as you don't select both SPI devices at the same
    time. You certainly can not talk to the chip
    from the Stamp with a 232 protocol.

    I've also used the IRBuddy. It has VERY low
    'baud rate' (100 Bits/Sec?) -- basically it
    acts as a send/receive TV Remote control --
    you can send and receive
    Phillips RC-5 codes (button presses) between the
    two modules, but with good range.

    For range: IRDA was designed for short ranges
    (<= 10 feet).

    --- In basicstamps@yahoogroups.com, "mohammedrasiq"
    <mohammedrasiq@y...> wrote:
    > Hi
    > I am planning to build a IR link to replace the serial link (Sout &
    > Sin connections)between the BasicStamp (BS2p) and the external PC.
    >
    > I saw the application "IrDA with the BASIC Stamp & the MAX3100" by
    > Tracy Allen. Can this circuit be used to connect the RS232 pins
    > Sout/Sin of BasicStamp rather than the TTL i/o pins of the stamp
    and
    > use only one of hte I/o pins for the SCLK.
    > ( I will use electrical wires to load the program and only need the
    > IR link while running the program to monitor the progress and input
    > data)
    > Can this circuit be used at a distance of 2-3 foot?
    > What is the approximate current draw of this circuit?
    >
    > Also, I found the following comment by Tracy Allen in reply to an
    > earlier post:
    >
    > "Many PCs have an IRDA serial infrared port built in. You can use
    > that with the Stamp, if you provide the Stamp with an IrDA
    interface.
    > Here is one using the MAX3100:
    > http://www.emesys.com/BS2IrDA.htm
    >
    > Another option might be the RS232<->IR chips from Rentron, or the
    new
    > IRbuddy from Parallax. Those modules use high frequency modulation
    > to achieve much greater range than is possible with IrDA."
    >
    > I checked the Rentron website and found IR links based on 38KHzor
    > 40KHz modulation and has a longer range, but has a low data rate of
    > 2400 baud only. Does anyone know if the circuits given in RENTRON
    > website,(e.g. using AIRBYTE ASIC)can be made to operate at higher
    > baud, say 9600? Has anyone in this group used their AIRBYTE IC? I
    > noticed they sell the transceiver module not the individual IC? Do
    > anyone of you know if it is available elsewhere?
  • ArchiverArchiver Posts: 46,084
    edited 2003-06-03 23:13
    The speed limitations are due to the max data rates of off the shelf
    IR detector modules. While these are great for reducing ambient
    interference, they also limit speeds.

    The Air-Byte IR transceiver & TX-IR serial communications IC can
    handle faster data rates, but you'll have a hard time finding 38-40KHz
    IR detector modules that can handle better than 2400 reliably.

    If you want high-speed IR, you'll need to look into Tracy's IRDA project.
    If you want killer distance with excellent noise rejection, then our TX-IR
    IC or Air-Byte with a simple IR detector module like the TSOP-1140 or
    1138 will do the trick.

    If you're looking for remote IR Stamp programming, wireless IR robot
    control + communications, then look into the SI-Pro IR wireless
    systems.

    Regards,

    -Bruce
    tech@r...
    http://www.rentron.com

    Original Message
    From: "mohammedrasiq" <mohammedrasiq@y...>
    To: <basicstamps@yahoogroups.com>
    Sent: Tuesday, June 03, 2003 2:56 PM
    Subject: [noparse][[/noparse]basicstamps] IR link between BS2p and external programming PC


    > Hi
    > I am planning to build a IR link to replace the serial link (Sout &
    > Sin connections)between the BasicStamp (BS2p) and the external PC.
    >
    > I saw the application "IrDA with the BASIC Stamp & the MAX3100" by
    > Tracy Allen. Can this circuit be used to connect the RS232 pins
    > Sout/Sin of BasicStamp rather than the TTL i/o pins of the stamp and
    > use only one of hte I/o pins for the SCLK.
    > ( I will use electrical wires to load the program and only need the
    > IR link while running the program to monitor the progress and input
    > data)
    > Can this circuit be used at a distance of 2-3 foot?
    > What is the approximate current draw of this circuit?
    >
    > Also, I found the following comment by Tracy Allen in reply to an
    > earlier post:
    >
    > "Many PCs have an IRDA serial infrared port built in. You can use
    > that with the Stamp, if you provide the Stamp with an IrDA interface.
    > Here is one using the MAX3100:
    > http://www.emesys.com/BS2IrDA.htm
    >
    > Another option might be the RS232<->IR chips from Rentron, or the new
    > IRbuddy from Parallax. Those modules use high frequency modulation
    > to achieve much greater range than is possible with IrDA."
    >
    > I checked the Rentron website and found IR links based on 38KHzor
    > 40KHz modulation and has a longer range, but has a low data rate of
    > 2400 baud only. Does anyone know if the circuits given in RENTRON
    > website,(e.g. using AIRBYTE ASIC)can be made to operate at higher
    > baud, say 9600? Has anyone in this group used their AIRBYTE IC? I
    > noticed they sell the transceiver module not the individual IC? Do
    > anyone of you know if it is available elsewhere?
    >
    >
    >
    >
    >
    > 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-06-04 00:58
    No, you cannot use the p16 RS232 pins with the MAX3100 circuit. The
    MAX3100 requires the SHIFTIN and SHIFTOUT instructions that are only
    possible on the TTL i/o pin.

    IrDA can work at 2-3 feet in normal room lighting, but it takes some
    care. You will need to drive the transmitting IR LED or even
    multiple LEDs with a lots of current via a transistor (not directly
    from a stamp pin) And you will need to use an amplifier like the
    Burr-Brown OPT101 that is suggested in the application note. It may
    need an infrared filter over the receiver, if there is much ambient
    light, and a collimator, and even an adaptive baseline amplifier to
    compensate for the quasi-static ambient level.

    The modules from Rentron or Parallax at 2400 baud will work at those
    distances and much more indoors with great ease, because of their
    high frequency modulation scheme.

    I think all infrared schemes have big trouble in bright sunlight.

    -- Tracy

    >Hi
    >I am planning to build a IR link to replace the serial link (Sout &
    >Sin connections)between the BasicStamp (BS2p) and the external PC.
    >
    >I saw the application "IrDA with the BASIC Stamp & the MAX3100" by
    >Tracy Allen. Can this circuit be used to connect the RS232 pins
    >Sout/Sin of BasicStamp rather than the TTL i/o pins of the stamp and
    >use only one of hte I/o pins for the SCLK.
    >( I will use electrical wires to load the program and only need the
    >IR link while running the program to monitor the progress and input
    >data)
    >Can this circuit be used at a distance of 2-3 foot?
    >What is the approximate current draw of this circuit?
    >
    >Also, I found the following comment by Tracy Allen in reply to an
    >earlier post:
    >
    >"Many PCs have an IRDA serial infrared port built in. You can use
    >that with the Stamp, if you provide the Stamp with an IrDA interface.
    >Here is one using the MAX3100:
    >http://www.emesys.com/BS2IrDA.htm
    >
    >Another option might be the RS232<->IR chips from Rentron, or the new
    >IRbuddy from Parallax. Those modules use high frequency modulation
    >to achieve much greater range than is possible with IrDA."
    >
    >I checked the Rentron website and found IR links based on 38KHzor
    >40KHz modulation and has a longer range, but has a low data rate of
    >2400 baud only. Does anyone know if the circuits given in RENTRON
    >website,(e.g. using AIRBYTE ASIC)can be made to operate at higher
    >baud, say 9600? Has anyone in this group used their AIRBYTE IC? I
    >noticed they sell the transceiver module not the individual IC? Do
    >anyone of you know if it is available elsewhere?
    >
    >
    >
    >
    >
    >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-06-05 00:25
    Thanks a lot Allan, Bruce@rentron, Tracey@emesytems for your useful
    information.


    --- In basicstamps@yahoogroups.com, Tracy Allen <tracy@e...> wrote:
    > No, you cannot use the p16 RS232 pins with the MAX3100 circuit.
    The
    > MAX3100 requires the SHIFTIN and SHIFTOUT instructions that are
    only
    > possible on the TTL i/o pin.
    >
    > IrDA can work at 2-3 feet in normal room lighting, but it takes
    some
    > care. You will need to drive the transmitting IR LED or even
    > multiple LEDs with a lots of current via a transistor (not directly
    > from a stamp pin) And you will need to use an amplifier like the
    > Burr-Brown OPT101 that is suggested in the application note. It
    may
    > need an infrared filter over the receiver, if there is much ambient
    > light, and a collimator, and even an adaptive baseline amplifier to
    > compensate for the quasi-static ambient level.
    >
    > The modules from Rentron or Parallax at 2400 baud will work at
    those
    > distances and much more indoors with great ease, because of their
    > high frequency modulation scheme.
    >
    > I think all infrared schemes have big trouble in bright sunlight.
    >
    > -- Tracy
    >
    > >Hi
    > >I am planning to build a IR link to replace the serial link (Sout &
    > >Sin connections)between the BasicStamp (BS2p) and the external PC.
    > >
    > >I saw the application "IrDA with the BASIC Stamp & the MAX3100" by
    > >Tracy Allen. Can this circuit be used to connect the RS232 pins
    > >Sout/Sin of BasicStamp rather than the TTL i/o pins of the stamp
    and
    > >use only one of hte I/o pins for the SCLK.
    > >( I will use electrical wires to load the program and only need the
    > >IR link while running the program to monitor the progress and input
    > >data)
    > >Can this circuit be used at a distance of 2-3 foot?
    > >What is the approximate current draw of this circuit?
    > >
    > >Also, I found the following comment by Tracy Allen in reply to an
    > >earlier post:
    > >
    > >"Many PCs have an IRDA serial infrared port built in. You can use
    > >that with the Stamp, if you provide the Stamp with an IrDA
    interface.
    > >Here is one using the MAX3100:
    > >http://www.emesys.com/BS2IrDA.htm
    > >
    > >Another option might be the RS232<->IR chips from Rentron, or the
    new
    > >IRbuddy from Parallax. Those modules use high frequency modulation
    > >to achieve much greater range than is possible with IrDA."
    > >
    > >I checked the Rentron website and found IR links based on 38KHzor
    > >40KHz modulation and has a longer range, but has a low data rate of
    > >2400 baud only. Does anyone know if the circuits given in RENTRON
    > >website,(e.g. using AIRBYTE ASIC)can be made to operate at higher
    > >baud, say 9600? Has anyone in this group used their AIRBYTE IC? I
    > >noticed they sell the transceiver module not the individual IC? Do
    > >anyone of you know if it is available elsewhere?
    > >
    > >
    > >
    > >
    > >
    > >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-06-05 15:34
    Thanks Bruce for your comments.
    I agree that i did not find any 38-40KHz IR detector modules for high
    speeds greater than 3000 or 4000.
    But I did find a IR detector operating upto 20000 baud. This is the
    Vishay's TSOP7000 but needs a carrier at 455KHz. Is it possible or
    not to program the TX-IR or make a version of AIRBYTE that can
    generate a carrier of 455KHz? Is that a limitation of the PIC based
    on which Tx-IR or AIRBYTE design is based or is it simply not yet
    done, but could be done?


    Thanks
    Mohammed

    --- In basicstamps@yahoogroups.com, <tech@r...> wrote:
    > The speed limitations are due to the max data rates of off the shelf
    > IR detector modules. While these are great for reducing ambient
    > interference, they also limit speeds.
    >
    > The Air-Byte IR transceiver & TX-IR serial communications IC can
    > handle faster data rates, but you'll have a hard time finding 38-
    40KHz
    > IR detector modules that can handle better than 2400 reliably.
    >
    > If you want high-speed IR, you'll need to look into Tracy's IRDA
    project.
    > If you want killer distance with excellent noise rejection, then
    our TX-IR
    > IC or Air-Byte with a simple IR detector module like the TSOP-1140
    or
    > 1138 will do the trick.
    >
    > If you're looking for remote IR Stamp programming, wireless IR robot
    > control + communications, then look into the SI-Pro IR wireless
    > systems.
    >
    > Regards,
    >
    > -Bruce
    > tech@r...
    > http://www.rentron.com
    >
    >
    Original Message
    > From: "mohammedrasiq" <mohammedrasiq@y...>
    > To: <basicstamps@yahoogroups.com>
    > Sent: Tuesday, June 03, 2003 2:56 PM
    > Subject: [noparse][[/noparse]basicstamps] IR link between BS2p and external
    programming PC
    >
    >
    > > Hi
    > > I am planning to build a IR link to replace the serial link (Sout
    &
    > > Sin connections)between the BasicStamp (BS2p) and the external PC.
    > >
    > > I saw the application "IrDA with the BASIC Stamp & the MAX3100"
    by
    > > Tracy Allen. Can this circuit be used to connect the RS232 pins
    > > Sout/Sin of BasicStamp rather than the TTL i/o pins of the stamp
    and
    > > use only one of hte I/o pins for the SCLK.
    > > ( I will use electrical wires to load the program and only need
    the
    > > IR link while running the program to monitor the progress and
    input
    > > data)
    > > Can this circuit be used at a distance of 2-3 foot?
    > > What is the approximate current draw of this circuit?
    > >
    > > Also, I found the following comment by Tracy Allen in reply to an
    > > earlier post:
    > >
    > > "Many PCs have an IRDA serial infrared port built in. You can use
    > > that with the Stamp, if you provide the Stamp with an IrDA
    interface.
    > > Here is one using the MAX3100:
    > > http://www.emesys.com/BS2IrDA.htm
    > >
    > > Another option might be the RS232<->IR chips from Rentron, or the
    new
    > > IRbuddy from Parallax. Those modules use high frequency
    modulation
    > > to achieve much greater range than is possible with IrDA."
    > >
    > > I checked the Rentron website and found IR links based on 38KHzor
    > > 40KHz modulation and has a longer range, but has a low data rate
    of
    > > 2400 baud only. Does anyone know if the circuits given in RENTRON
    > > website,(e.g. using AIRBYTE ASIC)can be made to operate at higher
    > > baud, say 9600? Has anyone in this group used their AIRBYTE IC? I
    > > noticed they sell the transceiver module not the individual IC?
    Do
    > > anyone of you know if it is available elsewhere?
    > >
    > >
    > >
    > >
    > >
    > > 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-06-05 16:01
    >Sent: Thursday, June 05, 2003 8:34 AM
    >Subject: [noparse][[/noparse]basicstamps] Re: IR link between BS2p and external programming PC


    > Thanks Bruce for your comments.
    > I agree that i did not find any 38-40KHz IR detector modules for high
    > speeds greater than 3000 or 4000.
    > But I did find a IR detector operating upto 20000 baud. This is the
    > Vishay's TSOP7000 but needs a carrier at 455KHz. Is it possible or
    > not to program the TX-IR or make a version of AIRBYTE that can
    > generate a carrier of 455KHz? Is that a limitation of the PIC based
    > on which Tx-IR or AIRBYTE design is based or is it simply not yet
    > done, but could be done?
    >
    >
    > Thanks
    > Mohammed

    It's definitely possible - just not something we have available at present. We
    are working on a higher speed IR link, but contact me off list for details.

    Regards,

    -Bruce
    tech@r...
    http://www.rentron.com
Sign In or Register to comment.