Shop OBEX P1 Docs P2 Docs Learn Events
looking for propeller objects — Parallax Forums

looking for propeller objects

chris joneschris jones Posts: 391
edited 2009-10-26 21:09 in Propeller 1
Hello

i have been looking in the propeller objects section and can not find a few objects i need
Parallax 433 MHz RF Receiver
Parallax 433 MHz RF Transmiter
Parallax 4x20 Serial LCD (Backlit)

am i looking in the wrong place or do i have to use an existing object and make that work?

·

Comments

  • StefanL38StefanL38 Posts: 2,292
    edited 2009-10-26 21:09
    Hello Chris,

    all three "things" the 433MHz Receiver, Transmitter and 4x20 Display
    work together with any kind of serial drivers (like FullDuplexSerial, FullDuplexSerialPlus, Extended_FDSerial)

    One of these objects are the base. Objects are *.SPIN-files that contain all parts of a program that belong to the object.

    You DON'T have to change anything INSIDE the object
    For using the FullDUplexSerialPlus-object them together with the 433MHz Receiver, Transmitter or LCD you write your own
    code that calls parts of the code inside of the file FullDuplexSerialPlus.spin with suitable parameters

    example

    the 4x20 LCD works at baudrates 2400, 9600 or 19200 depending on DIP-Switchpositions
    If switch them to both to own the 4x20 LCD will work on 19200 baud
    Let's assume the LCD is connected with PIN no 16 of the propeller-chip

    So then you call the start-method of the FullDUplexSerialPlus-object with the following parameters
    xxx.start(0,16,0,19200)

    The 433 MHz Receiver/Transmitter work even transparent. Whatever bitbanging you "feed in" it will be transmitted an received.

    This means: to whatever kind of serial device you connect the transmitter/receiver as long as the voltage-levels match
    with the Receiver/Transmitter the datatransmission works. Up to 19200 baud.

    ATTENTION !
    As all three are 5V-devices you need to insert a current-limiting resistor to prevent the propeller-chip from getting damaged !
    The propeller-chip itself is a 3.3V device

    see this thread HOW TO SAFELY INTERFACE A 5V SIGNAL TO THE PROPELLER?

    I recommend using the FullDuplexSerialPlus-driver as this driver provides a lot of constants for the Parallax Serial Terminal PST.EXE
    and a lot of methods to convert numbers to ASCII-strings etc.

    This file is a little bit hided away.
    You will find it here: C:\Program Files\Parallax Inc\Propeller Tool v1.2.6\Examples\PE Kit\6 - Objects Lab\FullDuplexSerialPlus.spin

    best regards

    Stefan
Sign In or Register to comment.