1. Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.
    Dismiss Notice

18 servo controller

Discussion in 'Microcontrollers' started by Ambient, Dec 4, 2007.

  1. Nigel Goodwin

    Nigel Goodwin Super Moderator Most Helpful Member

    Joined:
    Nov 17, 2003
    Messages:
    39,228
    Likes:
    641
    Location:
    Derbyshire, UK
    ONLINE
    Yes I know, it will be fine!.
     
  2. Ambient

    Ambient New Member

    Joined:
    Jul 27, 2006
    Messages:
    376
    Likes:
    0
    Location:
    Massachusetts, USA
    Thanks Nigel. Looks like I have quite a few options then. I may just use a 5 cell NiMH 3300 GP pack, but was hoping to use a single large LiPo. But I can't seem to find an inexpensive DC-DC boost converter that would supply enough current. I figure with 6 legs at 3 servos each, there should be around 9 servos running at once. Stall current for these servos is 1.2-1.5A, + 3A for PIC, misc. So that comes out to around 16.5A @ 5V (or 6Vif I can find one). I will keep looking. For now I should probably just use a 5-cell and a modular design so I can change the PS later.
     
  3. Ambient

    Ambient New Member

    Joined:
    Jul 27, 2006
    Messages:
    376
    Likes:
    0
    Location:
    Massachusetts, USA
  4. dave

    Dave New Member

    Joined:
    Jan 12, 1997
    Messages:
    -
    Likes:
    0


     
  5. yanny_boy

    yanny_boy New Member

    Joined:
    Jun 6, 2008
    Messages:
    2
    Likes:
    0

    Hi,

    I know this has 2 different servo controllers in one thread... but I am trying to make a servo controller using an 18f4550 and this first 2 pages seem exactly what I want, is there a recommended schematic/pcb as I am new to pics and am not sure what resistors and capacitors I need where to make the clock and usart happy....

    any help would be great.

    thanks.
     
  6. threewire

    threewire New Member

    Joined:
    Oct 21, 2008
    Messages:
    14
    Likes:
    0
    Tried to compile the above code but I get the following errors:
    Code (text):

    error: 173  303 Identifier "USART_Init" was not declared    SERVO30.mbas
    error: 173  304 Syntax error: Expected "end" but "USART_Init" found SERVO30.mbas
    error: 173  304 Syntax error: Expected "." but "(" found    SERVO30.mbas
    error: 0    102 Finished (with errors): 02 Mar 2010, 15:05:12   SERVO30.mbppi

     
     
  7. Acetronics

    Acetronics New Member

    Joined:
    Jun 14, 2006
    Messages:
    115
    Likes:
    1
    Hi, 3W

    It seems you try to compile a MikroBasic file with the MikroBasic PRO compiler ...

    You have to IMPORT ( IDE function that translates automatically the project ) the full project before asking for compilation ...

    May be some lines to modify by hand ... but compiler will show the lines to be modded.

    Used libraries also must be hand choosen ( not automatic ... eh ! )

    Alain
     
    Last edited: Mar 2, 2010
  8. threewire

    threewire New Member

    Joined:
    Oct 21, 2008
    Messages:
    14
    Likes:
    0
    In Mikro C the code compiled fine.But,
    1)What is the format of the string that is to be sent to the PIC and
    2)What should the config bits be?
    3)How should I give the PIC 40 Mhz (will a 40 Mhz crystal connected to PIC do?The data sheet does not mention of a HS 40Mhz!!)
     
  9. threewire

    threewire New Member

    Joined:
    Oct 21, 2008
    Messages:
    14
    Likes:
    0
    People please advice..
     

Share This Page