Shop OBEX P1 Docs P2 Docs Learn Events
Stamp control of 2.4GHz LAN/Sender unit for ATV — Parallax Forums

Stamp control of 2.4GHz LAN/Sender unit for ATV

ArchiverArchiver Posts: 46,084
edited 2003-01-08 00:30 in General Discussion
Has anyone used a Stamp BS2-IC for frequency control of a 2.4GHz
Wireless LAN/Video sender for multi-channel use on ATV (Ham -
Amateur Television)? I've seen external controller circuits using a
PIC16F84 with a 1X16LCD Display together with some code to step
through the entire tuning range in 250KHz, 500KHz or 1MHz steps. I
would think that the Stamp is purpose made for the job (easier to
upload the program)! Any help, particularly with programming will
most welcome.

(Typical Unit using a PIC can be found here:
http://lea.hamradio.si/~s51kq/UNI.HTM click on UNI13P (UK Flag)

Bye for now – Steve/G4MJW
http://www.skylites.freeserve.co.uk

Comments

  • ArchiverArchiver Posts: 46,084
    edited 2003-01-07 12:38
    Steve,

    These cans use a SP5055 I2C controlled PLL. Pretty simple to program, remove
    the SCL and SDA lines form the OEM control board. I have found that these
    lines will need to be pulled up to +5vdc using a 10k resistor. Connect these
    lines to your micro, if it does do I2C. The PLL needs 5 bytes and are
    programmed in 125khz steps. Here's a sample program I wrote in BASCOM-AVR
    for a 90s2313 chip. It should be pretty easy to modify it to work with the
    stamp.

    The formula for frequency is "Desired_Frequency" * 8 = "PLL WORD"

    9976 / 8 = 1.247Ghz

    Note: This is for the 23cm version of the can. THE SAME PRINCIPALS APPLY to
    the 23cm cans.
    Also be careful these modules will transmit out of the Amateur Band.

    ' ATV RF Module:
    '
    '
    ' Note: The Module's SCL and SDL lines requires a 10k pull up resistor
    for
    ' each line to +5vdc. The module uses a Mitel SP5055 2.6GHz
    ' Bi-directional I2C BUS Controlled Synthesizer, for frequency
    ' generation. See the data sheet for more info.
    '
    ' Pin 1 Audio/Left
    ' Pin 2 Audio/Right
    ' Pin 3 +12 - 15 VDC
    ' Pin 4 Video
    ' Pin 5 I2C SDA, Clock Pin 9 - PortD.5
    ' Pin 6 I2C SCL, Data Pin 8 - PortD.4
    ' CASE Ground
    ' SMA RF out
    '
    '***** Compiler Setup:
    ********************************************************
    '
    $regfile = "2313DEF.dat" ' define chip type
    $baud = 19200 ' configure com port for
    19200,8,N,1
    $crystal = 7372800 ' set crystal to 7.3728 MHz
    Config Sda = Portd.5 ' SDA is connected to Port D pin 4
    Config Scl = Portd.4 ' SCL is connected to Port D pin 5
    '
    '***** Define Variables:
    ******************************************************
    Dim Status As Byte ' module status
    Dim Freq_msb As Byte ' I2C MSB byte holder for Freq
    Dim Freq_lsb As Byte ' I2C LSB byte holder for Freq
    Dim Freq As Word ' 23cm frequency * 8
    Dim Pll As Byte ' PLL status byte
    Dim Fail_cnt As Byte ' # of times the PLL is out of
    lock
    Const Address_write = 194 ' slave write address
    Const Address_read = 195 ' slave read address
    Const Charge_pump = 142 ' default value for SP5055
    Const Control_bit = 0 ' default value for SP5055
    '
    '***** Main Program Starts:
    ***************************************************
    Ddrd = &B01001110 ' Set port d's direction
    Gosub Can_off ' make sure module is off

    Begin: ' start of main program loop
    Waitms 20 ' wait for everything to power up
    Freq = 9976 ' set transmit frequency to 1.247
    Ghz
    Gosub Wt_can ' program frequency to module
    End ' Something blew-up if we're here!
    '
    '***** Subroutines Below:
    *****************************************************
    '

    Can_off: ' set frequency to 0 and fall
    through
    Status = 0 ' set status
    Freq = 0 ' frequency equals 0


    Wt_can: ' write frequency to module
    Status = 1 ' set status byte
    Freq_msb = High(freq) ' get high byte
    Freq_lsb = Low(freq) ' get low byte
    I2cstart ' generate start to I2C bus
    I2cwbyte Address_write ' write address byte of module
    I2cwbyte Freq_msb ' write msb of freq word to module
    I2cwbyte Freq_lsb ' write lsb pf freq word to module
    I2cwbyte Charge_pump ' write control code byte
    I2cwbyte Control_bit ' write control code byte
    Waitms 20 ' wait 20ms for I2C to finish
    return
    End

    '***** EOF
    ********************************************************************

    Hope this helps,

    Mike - kd5dhu

    Original Message
    From: g4mjw <catweazle@s...>
    [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=FoUzaKo5y37-wrLsYnv36EYhuCe71GfdzE9JEbVPyWeQxZWL37QUHApvsicym1SfZSI2NOWR9Upr_pU5zQJkv7FeKNE7j7NUZw]catweazle@s...[/url
    Sent: Tuesday, January 07, 2003 6:00 AM
    To: basicstamps@yahoogroups.com
    Subject: [noparse][[/noparse]basicstamps] Stamp control of 2.4GHz LAN/Sender unit for ATV


    Has anyone used a Stamp BS2-IC for frequency control of a 2.4GHz
    Wireless LAN/Video sender for multi-channel use on ATV (Ham -
    Amateur Television)? I've seen external controller circuits using a
    PIC16F84 with a 1X16LCD Display together with some code to step
    through the entire tuning range in 250KHz, 500KHz or 1MHz steps. I
    would think that the Stamp is purpose made for the job (easier to
    upload the program)! Any help, particularly with programming will
    most welcome.

    (Typical Unit using a PIC can be found here:
    http://lea.hamradio.si/~s51kq/UNI.HTM click on UNI13P (UK Flag)

    Bye for now – Steve/G4MJW
    http://www.skylites.freeserve.co.uk



    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-01-08 00:30
    Hi Mike and thanks for all the info.

    I have both the original BS-1 and a BS2-IC. Neither have I2C but I
    think there is something in the handbook abt adding it. I've only
    ever "Stepped" motors for moving Lights at outside light shows

    The BS-1 is a real veteran! I've just removed it from an automated
    Skyskanner (Searchlight)which I fitted about 4 years ago. It's been
    at Shows all over the world. It stepped a pair of large stepper
    motors (Pan+Tilt). The 25V 80A switching PSU failed and most of the
    wiring burnt up . . . . but the STAMP survived.

    In reality, the two TX/RX units will "Live" on 2432MHz RX and
    2346.5MHz on TX.

    I will put something together and then work on translating yr prog.

    Thanks again - Bye for now - Steve/G4MJW


    --- In basicstamps@yahoogroups.com, "Mike Cook" <kd5dhu@a...> wrote:
    > Steve,
    >
    > These cans use a SP5055 I2C controlled PLL. Pretty simple to
    program, remove
    > the SCL and SDA lines form the OEM control board. I have found
    that these
    > lines will need to be pulled up to +5vdc using a 10k resistor.
    Connect these
    > lines to your micro, if it does do I2C. The PLL needs 5 bytes and
    are
    > programmed in 125khz steps. Here's a sample program I wrote in
    BASCOM-AVR
    > for a 90s2313 chip. It should be pretty easy to modify it to work
    with the
    > stamp.
    >
    > The formula for frequency is "Desired_Frequency" * 8 = "PLL WORD"
    >
    > 9976 / 8 = 1.247Ghz
    >
    > Note: This is for the 23cm version of the can. THE SAME PRINCIPALS
    APPLY to
    > the 23cm cans.
    > Also be careful these modules will transmit out of the
    Amateur Band.
    >
    > ' ATV RF Module:
    > '
    > '
    > ' Note: The Module's SCL and SDL lines requires a 10k pull up
    resistor
    > for
    > ' each line to +5vdc. The module uses a Mitel SP5055
    2.6GHz
    > ' Bi-directional I2C BUS Controlled Synthesizer, for
    frequency
    > ' generation. See the data sheet for more info.
    > '
    > ' Pin 1 Audio/Left
    > ' Pin 2 Audio/Right
    > ' Pin 3 +12 - 15 VDC
    > ' Pin 4 Video
    > ' Pin 5 I2C SDA, Clock Pin 9 - PortD.5
    > ' Pin 6 I2C SCL, Data Pin 8 - PortD.4
    > ' CASE Ground
    > ' SMA RF out
    > '
    CUT CUT CUT CUT
Sign In or Register to comment.