Shop OBEX P1 Docs P2 Docs Learn Events
IR detection using a BS2px — Parallax Forums

IR detection using a BS2px

SN96SN96 Posts: 318
edited 2008-12-24 00:44 in BASIC Stamp
Hello all,

I have a BS2px and I want to use simple IR detection, the same used on the boe-bot using one IR LED emitter and·one receiver module. My question is the speed difference between the BS2 and the 2px. Since the FREQOUT command is being used, I assume it will work the same as on the BS2. I'm using examples in chapter 7 & 8 in the "Robotics with the Boe-Bot Student Guide VERSION 2.2" book.

·


▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Mike



·

Comments

  • Chris SavageChris Savage Parallax Engineering Posts: 14,406
    edited 2008-12-23 17:06
    Mike,

    Please review the differences in the BASIC Stamp Manual or Help File. The values for FREQOUT will need to be changed for the BS2px since its units are different.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Chris Savage
    Parallax Engineering
  • SN96SN96 Posts: 318
    edited 2008-12-23 18:24
    Thanks Chris,

    I found the information in the syntax manual. The BS2 duration is 1ms and the BS2px is .166ms which is the speed I need to use.


    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Mike



    ·
  • edited 2008-12-23 21:53
    There are some examples (including IR detection) of updating Boe-Bot code from the BASIC Stamp 2 to the BASIC Stamp 2px here:

    Porting PBASIC Boe-Bot code from BS2 to BS2px

    Andy

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Andy Lindsay

    Education Department
    Parallax, Inc.

    Post Edited (Andy Lindsay (Parallax)) : 12/23/2008 9:58:38 PM GMT
  • SN96SN96 Posts: 318
    edited 2008-12-24 00:44
    Andy Lindsay (Parallax) said...
    There are some examples (including IR detection) of updating Boe-Bot code from the BASIC Stamp 2 to the BASIC Stamp 2px here:

    Porting PBASIC Boe-Bot code from BS2 to BS2px

    Andy

    Fantastic! Thanks a lot! This will be very helpful. smilewinkgrin.gif

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Mike



    ·
Sign In or Register to comment.