Serout to serial servo


Results 1 to 21 of 21

Threaded View

  1. #2
    Join Date
    May 2008
    Location
    Italy
    Posts
    825


    Did you find this post helpful? Yes | No

    Default

    With OPTION_REG.7 = 0 you have enabled the Weak Pull-UP's and this could disturb the serial connection.

    Tray this code:

    Code:
    INCLUDE "BS2DEFS.bas"
    DEFINE OSC 20
    
    ADCON1 = 7           ' all digitals
    CMCON = 7            ' all digitals
    
    TrisB = %00000000 'Setup port b as all outputs
    Lleg Var portB.0
    
    PAUSE 1000
    
    SEROUT2 Lleg,396,[255,5,125,101,181,154,126,182]' B6 'repeated 7X,
    SEROUT2 Lleg,396,[255,5,124,101,181,154,125,180]' B4 'raise leg at hip
    SEROUT2 Lleg,396,[255,5,124,101,181,154,124,179]' B3
    SEROUT2 Lleg,396,[255,5,123,101,181,154,124,178]' B2
    SEROUT2 Lleg,396,[255,5,123,101,181,154,123,177]' B1
    SEROUT2 Lleg,396,[255,5,122,101,181,154,122,175]' AF
    SEROUT2 Lleg,396,[255,5,121,101,181,154,122,174] ' AE
    SEROUT2 Lleg,396,[255,5,121,101,181,154,121,173]' AD
    SEROUT2 Lleg,396,[255,5,120,101,181,154,120,171]' AB
    SEROUT2 Lleg,396,[255,5,120,101,181,154,120,171]' AB
    SEROUT2 Lleg,396,[255,5,119,101,181,154,119,169]' A9
    SEROUT2 Lleg,396,[255,5,118,101,181,154,118,167]' A7 ' repeated 16X
    SEROUT2 Lleg,396,[255,5,116,102,182,154,118,167] 'other joints begin motion
    SEROUT2 Lleg,396,[255,5,113,103,184,154,118,167]' A7
    SEROUT2 Lleg,396,[255,5,111,103,184,154,118,165]
    SEROUT2 Lleg,396,[255,5,110,103,184,154,118,166]
    SEROUT2 Lleg,396,[255,5,109,103,184,154,118,165]
    SEROUT2 Lleg,396,[255,5,107,103,184,154,118,163]
    SEROUT2 Lleg,396,[255,5,120,73,184,154,120,146] ' 73 second servo
    SEROUT2 Lleg,396,[255,5,120,73,184,154,120,146]
    SEROUT2 Lleg,396,[255,5,120,73,184,154,120,146]
    SEROUT2 Lleg,396,[255,5,120,73,184,154,120,146]
    SEROUT2 Lleg,396,[255,5,120,73,184,154,120,146]
    SEROUT2 Lleg,396,[255,5,120,73,184,154,120,146]
    SEROUT2 Lleg,396,[255,5,120,73,184,154,120,146]

    ......... and see if it works.

    Al.
    Last edited by aratti; - 17th July 2009 at 16:43.
    All progress began with an idea

Similar Threads

  1. A Serial GLCD 128x64 Simple Project
    By Oldspring in forum Off Topic
    Replies: 0
    Last Post: - 8th March 2010, 20:58
  2. serial ports, the servo control.
    By m.nobre in forum Serial
    Replies: 0
    Last Post: - 7th December 2009, 16:16
  3. More Servo Woes
    By chrisshortys in forum mel PIC BASIC Pro
    Replies: 10
    Last Post: - 13th May 2009, 08:40
  4. Serial Servo Spider
    By gandora in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 21st May 2007, 06:48
  5. Keypad unlock (as in garage door possibly)
    By Fred in forum Code Examples
    Replies: 5
    Last Post: - 2nd April 2006, 04:26

Members who have read this thread : 1

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

Posting Permissions

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