Shop OBEX P1 Docs P2 Docs Learn Events
Lprs er400 — Parallax Forums

Lprs er400

Kenneth_85Kenneth_85 Posts: 7
edited 2008-04-09 14:02 in BASIC Stamp
I have purchased a Basic Stamp 2p40 and i have purchased LPRS receiver ER400RS and tranceiver ER400TRS. Can anyone provide me a simple code to test these th. I am blur and need help for my project. Thanks.

Comments

  • FranklinFranklin Posts: 4,747
    edited 2008-04-07 19:34
    Use SEROUT and SERIN on the stamps to send and receive data. How do you have them hooked up to the stamps?

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    - Stephen
  • Kenneth_85Kenneth_85 Posts: 7
    edited 2008-04-07 21:07
    Yeap I hav hooked them up actually but not sure abt the connection. Sorry for the noobness. Is it just connect to the pin5 DATA OUT of the receiver and for the Transceiver just the pin 6 Serial Data In? The SEROUT command for the Transceiver is for the Pin 6 of the ER400TRS? SERIN for Pin 5 of the ER400RS?

    Thanks for your fast reply. I appriciate it a lot.
  • Kenneth_85Kenneth_85 Posts: 7
    edited 2008-04-09 14:01
    Thank you very much. I have made the th works. But now I need to program and run the HiModel GX Seires 30A ESC. Anyone know how to do that? Please teach me. I have posted a new topic on this.

    Here is the workable simple pbasic programming for the ER400 if anyone need it as reference in the future.

    The Transmitter Part:

    ' {$STAMP BS2p}
    ' {$PBASIC 2.5}

    x VAR Byte
    y VAR Word

    TX PIN 0
    BSY PIN 1
    But1 PIN 2
    L1 PIN 3

    n48 CON 188

    Main:
    x=00
    HIGH L1
    LOW BSY
    SEROUT TX,n48, [noparse][[/noparse]x,CR]
    PAUSE 500
    HIGH BSY

    x=11
    LOW L1
    LOW BSY
    SEROUT TX,n48, [noparse][[/noparse]x,CR]
    PAUSE 500
    HIGH BSY
    GOTO Main

    The receiver part:

    ' {$STAMP BS2p}
    ' {$PBASIC 2.5}

    RX PIN 0
    RDY PIN 1
    L1 PIN 2
    L2 PIN 3
    L3 PIN 4

    n48 CON 188
    x VAR Byte

    Main:
    LOW L2
    LOW L3
    HIGH L1
    LOW RDY
    SERIN RX,n48, [noparse][[/noparse]x]
    HIGH RDY

    IF x = 00 THEN
    HIGH L2
    PAUSE 1000
    ENDIF
    IF x = 11 THEN
    HIGH L3
    PAUSE 1000
    ENDIF
    GOTO Main
  • Kenneth_85Kenneth_85 Posts: 7
    edited 2008-04-09 14:02
    Hope someone could help me on the ESC Part. smile.gif
Sign In or Register to comment.