Shop OBEX P1 Docs P2 Docs Learn Events
IR Communication — Parallax Forums

IR Communication

ArchiverArchiver Posts: 46,084
edited 2003-09-08 03:31 in General Discussion
IR Communication

I'm just not able to nail this thing down. I'm following the application note #11 in the Basic Stamp Manual (in the Stamp I section). I bought Radio Shack's 276-137 (GP1U52X).

I'm not able to figure why the receiver is not able to receive the values from the transmitter. I do not know if the transmitter is working at all in the first place.

Please advise, the following is what I've got.

Any help is greatly appreciated.

Thanks a lot in advance.
nagi




The Transmitter: Using one BSII.
······· 555 Timer output (p3) is connected to the base of the 2n2222 transistor, the emitter is connected to the IR emitter's cathode lead. 555's reset (p4) is hooked upto BSII's Pin 0. Also the timer is set at 40Khz. I'm not using a potentiometer. Instead, I'm using a couple of resistors that produce 40Khz (+/- 100).


······· ' 555's reset pin on BSII's pin 0
······· Low 0
·······
······· m:
······· ······· ' 1200 baud
······· ······· serout 0, 17197, [noparse][[/noparse]"X"]
······· ······· pause 500
······· goto m



The receiver: Using the second Basic stamp II
······· pin 1 from IR Receiver is hooked up to pin 0 in BSII and with a 470R is also connected to Vdd.
······· pin 2 from IR Receiver is hooked up to Vdd
······· pin 3 from IR Receiver is hooked up to Vss

·······
······· Code:

······· x······ var···· byte
······· m:
······· ······· serin 0, 17197, 2000, No_data, [noparse][[/noparse]x]
······· ······· debug home, dec x, "················· "
······· goto m

······· No_Data:
······· ······· debug home, "No Data······· "
······· goto m

Comments

  • ArchiverArchiver Posts: 46,084
    edited 2000-10-23 14:34
    I've got a PCB designed to use the GP as an IR Proximity Detector. It's
    also a part of my BS/L book. Send me a SASE and I'll send you a PCB to try
    out.

    Paul


    I'm just not able to nail this thing down. I'm following the application
    note #11 in the Basic Stamp Manual (in the Stamp I section). I bought Radio
    Shack's 276-137 (GP1U52X).
    I'm not able to figure why the receiver is not able to receive the values
    from the transmitter. I do not know if the transmitter is working at all in
    the first place.
    Please advise, the following is what I've got.
    Any help is greatly appreciated.
    Thanks a lot in advance.
    nagi
  • ArchiverArchiver Posts: 46,084
    edited 2000-10-23 14:38
    RE: [noparse][[/noparse]basicstamps] IR Communication

    Hey Paul,

    Where can I find more info on your book ? and what is a SASE (sorry I did not get that word - I guess I took off too early from school when they were covering that section of english [noparse]:)[/noparse]

    thanks Paul

    nagi




    Original Message

    From: Paul Verhage [noparse]/noparse][url=mailto:pverhage@sd131.k12.id.us]mailto[noparse]:p[/noparse]verhage@sd131.k12.id.us[/url
    Sent: Monday, October 23, 2000 8:34 AM
    To: 'basicstamps@egroups.com'
    Subject: RE: [noparse][[/noparse]basicstamps] IR Communication


    I've got a PCB designed to use the GP as an IR Proximity Detector.· It's
    also a part of my BS/L book.· Send me a SASE and I'll send you a PCB to try
    out.

    Paul


    I'm just not able to nail this thing down. I'm following the application
    note #11 in the Basic Stamp Manual (in the Stamp I section). I bought Radio
    Shack's 276-137 (GP1U52X).
    I'm not able to figure why the receiver is not able to receive the values
    from the transmitter. I do not know if the transmitter is working at all in
    the first place.
    Please advise, the following is what I've got.
    Any help is greatly appreciated.
    Thanks a lot in advance.
    nagi
  • ArchiverArchiver Posts: 46,084
    edited 2000-10-23 14:44
    A SASE is a stamped, addressed envelope. My address is 207 Crestline #3,
    Caldwell, ID 83605

    My book and board is undergoing beta testing. If you would like to test it,
    send me $15 and I'll send you a set.

    Paul


    Hey Paul,
    Where can I find more info on your book ? and what is a SASE (sorry I did
    not get that word - I guess I took off too early from school when they were
    covering that section of english [noparse]:)[/noparse]
    thanks Paul
    nagi
    nagi
  • ArchiverArchiver Posts: 46,084
    edited 2000-10-23 14:49
    RE: [noparse][[/noparse]basicstamps] IR Communication

    I'd love to. I shall do that tonight.

    Thanks yet again Paul.

    nagi


    Original Message

    From: Paul Verhage [noparse]/noparse][url=mailto:pverhage@sd131.k12.id.us]mailto[noparse]:p[/noparse]verhage@sd131.k12.id.us[/url
    Sent: Monday, October 23, 2000 8:45 AM
    To: 'basicstamps@egroups.com'
    Subject: RE: [noparse][[/noparse]basicstamps] IR Communication


    A SASE is a stamped, addressed envelope.· My address is 207 Crestline #3,
    Caldwell, ID 83605

    My book and board is undergoing beta testing.· If you would like to test it,
    send me $15 and I'll send you a set.

    Paul


    Hey Paul,
    Where can I find more info on your book ? and what is a SASE (sorry I did
    not get that word - I guess I took off too early from school when they were
    covering that section of english [noparse]:)[/noparse]
    thanks Paul
    nagi
    nagi
  • ArchiverArchiver Posts: 46,084
    edited 2000-10-23 14:52
    Not to butt in, but SASEs are almost impossible to use overseas. If you want
    to send an "SASE" overseas (to the US or from the US) go to your post office
    and buy 1 or 2 IRCs (International Reply Coupons). Send these with your
    envelope. The recipient can trade these at his post office for local
    postage. One should do surface but with two you can probably send it air.
    Some of the smaller US post offices don't have any idea what these are, but
    they do exist and a real post office can sell them to you.

    Regards,

    Al Williams
    AWC
    *Floating point math for the Stamp, PIC, SX, or any microcontroller:
    http://www.al-williams.com/awce/pak1.htm


    >
    Original Message
    > From: Paul Verhage [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=hD9PT4sr40fV6RfGWKZW180W6kfbz8_sXc-D5UQO-zJnf7ZeVdevk3YHWEIoG-A2KiryWLTmcjbIiMusBM0]pverhage@s...[/url
    > Sent: Monday, October 23, 2000 8:45 AM
    > To: 'basicstamps@egroups.com'
    > Subject: RE: [noparse][[/noparse]basicstamps] IR Communication
    >
    >
    > A SASE is a stamped, addressed envelope. My address is 207 Crestline #3,
    > Caldwell, ID 83605
    >
    > My book and board is undergoing beta testing. If you would like
    > to test it,
    > send me $15 and I'll send you a set.
    >
    > Paul
    >
    >
    > Hey Paul,
    > Where can I find more info on your book ? and what is a SASE (sorry I did
    > not get that word - I guess I took off too early from school when
    > they were
    > covering that section of english [noparse]:)[/noparse]
    > thanks Paul
    > nagi
    > nagi
    >
    >
  • ArchiverArchiver Posts: 46,084
    edited 2000-10-23 14:56
    RE: [noparse][[/noparse]basicstamps] IR Communication

    Thanks Al.




    Original Message

    From: Al Williams [noparse]/noparse][url=mailto:alw@al-williams.com]mailto:alw@al-williams.com[/url
    Sent: Monday, October 23, 2000 8:52 AM
    To: basicstamps@egroups.com
    Subject: RE: [noparse][[/noparse]basicstamps] IR Communication


    Not to butt in, but SASEs are almost impossible to use overseas. If you want
    to send an "SASE" overseas (to the US or from the US) go to your post office
    and buy 1 or 2 IRCs (International Reply Coupons). Send these with your
    envelope. The recipient can trade these at his post office for local
    postage. One should do surface but with two you can probably send it air.
    Some of the smaller US post offices don't have any idea what these are, but
    they do exist and a real post office can sell them to you.

    Regards,

    Al Williams
    AWC
    *Floating point math for the Stamp, PIC, SX, or any microcontroller:
    http://www.al-williams.com/awce/pak1.htm


    >
    Original Message

    > From: Paul Verhage [noparse]/noparse][url=mailto:pverhage@sd131.k12.id.us]mailto[noparse]:p[/noparse]verhage@sd131.k12.id.us[/url
    > Sent: Monday, October 23, 2000 8:45 AM
    > To: 'basicstamps@egroups.com'
    > Subject: RE: [noparse][[/noparse]basicstamps] IR Communication
    >
    >
    > A SASE is a stamped, addressed envelope.· My address is 207 Crestline #3,
    > Caldwell, ID 83605
    >
    > My book and board is undergoing beta testing.· If you would like
    > to test it,
    > send me $15 and I'll send you a set.
    >
    > Paul
    >
    >
    > Hey Paul,
    > Where can I find more info on your book ? and what is a SASE (sorry I did
    > not get that word - I guess I took off too early from school when
    > they were
    > covering that section of english [noparse]:)[/noparse]
    > thanks Paul
    > nagi
    > nagi
    >
    >
  • ArchiverArchiver Posts: 46,084
    edited 2000-10-23 16:41
    RE: [noparse][[/noparse]basicstamps] IR Communication

    as a followup question, I thought somebody mentioned in this newsgroup that the Radio Shack's 276-137 part had some problems and that we had to buy another part from them - somthing along the lines of "276-137B" ?

    any thoughts ?

    tbanks
    nagi


    Original Message

    From: Paul Verhage [noparse]/noparse][url=mailto:pverhage@sd131.k12.id.us]mailto[noparse]:p[/noparse]verhage@sd131.k12.id.us[/url
    Sent: Monday, October 23, 2000 8:34 AM
    To: 'basicstamps@egroups.com'
    Subject: RE: [noparse][[/noparse]basicstamps] IR Communication


    I've got a PCB designed to use the GP as an IR Proximity Detector.· It's
    also a part of my BS/L book.· Send me a SASE and I'll send you a PCB to try
    out.

    Paul


    I'm just not able to nail this thing down. I'm following the application
    note #11 in the Basic Stamp Manual (in the Stamp I section). I bought Radio
    Shack's 276-137 (GP1U52X).
    I'm not able to figure why the receiver is not able to receive the values
    from the transmitter. I do not know if the transmitter is working at all in
    the first place.
    Please advise, the following is what I've got.
    Any help is greatly appreciated.
    Thanks a lot in advance.
    nagi
  • ArchiverArchiver Posts: 46,084
    edited 2000-10-23 18:12
    The part I use is 276-137A.
    Its worked for me in the past.

    Paul

    as a followup question, I thought somebody mentioned in this newsgroup that
    the Radio Shack's 276-137 part had some problems and that we had to buy
    another part from them - somthing along the lines of "276-137B" ?
    any thoughts ?
    tbanks
    nagi
    nagi
  • ArchiverArchiver Posts: 46,084
    edited 2000-10-24 14:04
    RE: [noparse][[/noparse]basicstamps] IR Communication

    Paul,

    I have sent the SASE and the $15 this morning. Also, I had a question for you on your board and the book. Can the board be used to demonstrate the IR Tr/Rx ?

    thanks
    nagi




    Original Message

    From: Paul Verhage [noparse]/noparse][url=mailto:pverhage@sd131.k12.id.us]mailto[noparse]:p[/noparse]verhage@sd131.k12.id.us[/url
    Sent: Monday, October 23, 2000 12:12 PM
    To: 'basicstamps@egroups.com'
    Subject: RE: [noparse][[/noparse]basicstamps] IR Communication


    The part I use is 276-137A.
    Its worked for me in the past.

    Paul

    as a followup question, I thought somebody mentioned in this newsgroup that
    the Radio Shack's 276-137 part had some problems and that we had to buy
    another part from them - somthing along the lines of "276-137B" ?
    any thoughts ?
    tbanks
    nagi
    nagi
  • ArchiverArchiver Posts: 46,084
    edited 2000-10-24 14:28
    Paul,
    I have sent the SASE and the $15 this morning. Also, I had a question for
    you on your board and the book. Can the board be used to demonstrate the IR
    Tr/Rx ?
    thanks
    nagi

    The board I have is actually several boards. One is for the robot
    controller and the others are for various sensors. There is one sensor for
    proximity sensing. The BS-2IC controls the pulsing of two IREDs. The GP
    then detects the reflection of the IR beams. I haven't tried it, but it
    would proably work to send small packets of data over IR with it. You will
    need to play with the aiming of the IREDs and GP.

    Paul
  • ArchiverArchiver Posts: 46,084
    edited 2003-09-08 03:31
    Hi there,
    I am currently using the BS2 in a project in which a program
    written in Visual Basic 6.0 communicates with the stamp, provides it
    with parameters, and signals it to start a process. The computer on
    which I am running it communicates with the stamp via a serial
    cable. I would like to port this over to my Pocket PC, and have it
    work via infared. What would I need to attach to my stamp to enable
    it to communicate with the IR port on my handheld?

    Thanks

    Bill
Sign In or Register to comment.