Propeller servo board 28830 - help wanted


Closed Thread
Results 1 to 2 of 2
  1. #1
    Join Date
    Dec 2012
    Posts
    1

    Default Propeller servo board 28830 - help wanted

    Hi
    I am a new in this area. I have a Propeller servo controller 28830, a PICkit 2 with 16F690 PIC processor and trying to make a program to control a number of servos in a hobby project. The program is written in PICBasic (micro Engineering Labs) in MPLAB IDE. I have this far managed to successfully control the processors output pins and writing to a serial LCD. But when I am trying to write to the servo controller nothing happens.

    In the servo controller manual the example is written in BS2. The program sequence for BS2 looks like this:
    ch VAR Byte
    pw VAR Word
    ra VAR Byte

    Sdat CON 15
    baud CON 396
    ra = 7
    ch = 11

    Do
    pw = 1100
    SEROUT Sdat, baud+dollarsign8000, ("!SC", ch, ra, pw.lowbyte, pw.highbyte, CR) () = straight parantesis
    pause 1000
    etc

    I have in PIC basic written
    Symbol TrisC = dollarsign87 (I am lacking the dollarsign on the key board)
    Symbol PortC = 7
    Poke TrisC, 0

    Symbol ch = B2
    Symbol pw = B4
    Symbol ra = B3

    Main:
    loop
    pw = 1000
    ra = 62
    ch = 15 ( the servo is correctly plugged in at P15 on the board)
    Serout 7, T2400, ("!SC", ch, ra, pw, 13)
    pause 1000
    etc

    When is my mistake? Can anyone help?

    Best regards

  2. #2
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default Re: Propeller servo board 28830 - help wanted

    To start with.
    What do all of your "Symbol"s link back to?

    Have you tried the BS2 code? And you could try Shift+4 ;-)
    Dave
    Always wear safety glasses while programming.

Similar Threads

  1. Propeller Clock Advanced Design
    By Balachandar in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 21st June 2022, 20:38
  2. INT from SLEEP... not going where I wanted
    By Heckler in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 15th August 2011, 18:56
  3. Just wanted to be first
    By cncmachineguy in forum PBP & Amicus18
    Replies: 6
    Last Post: - 4th May 2011, 20:24
  4. Propeller Clock
    By yasser hassani in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 9th March 2006, 15:02
  5. Help wanted..
    By thrix in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 17th February 2004, 23:44

Members who have read this thread : 1

You do not have permission to view the list of names.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts