Help with Servo Control Please!


Closed Thread
Results 1 to 8 of 8

Hybrid View

  1. #1
    Join Date
    Jun 2007
    Posts
    4


    Did you find this post helpful? Yes | No

    Default

    So proton uses pic basic then and not pic basic pro? I just got it today so am a little confused, thanks.

  2. #2
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by wireman22 View Post
    So proton uses pic basic then and not pic basic pro? I just got it today so am a little confused, thanks.
    Proton Basic <> PicBasicPro
    Different companies, different continents...

  3. #3
    Join Date
    May 2004
    Location
    NW France
    Posts
    3,653


    Did you find this post helpful? Yes | No

    Post

    Hi,

    No need to be a Proton expert to see the example is ... not so good !

    a closer look to your "Help file" example will show you there's some inconsistance ...

    1) Buttons are connected between inputs and ground, good ... BUT you must add 10k resistors between V+ and inputs to give some "pullup" ...

    2)

    Replace

    IF PORTA.0 = 0 Then IF Pos < 3000 Then Pos = Pos + 1 ' Move servo left
    IF PORTA.1 = 0 Then Pos = 1500 ' Centre servo
    IF PORTA.2 = 0 Then IF Pos > 0 Then Pos = Pos - 1 ' Move servo right

    by

    IF PORTA.0 = 0 Then IF Pos < 2200 Then Pos = Pos + 1 ' Move servo right
    IF PORTA.1 = 0 Then Pos = 1500 ' Centre servo
    IF PORTA.2 = 0 Then IF Pos > 800 Then Pos = Pos - 1 ' Move servo left

    This will prevent damaging your servo or having strange behaviour ... by overtravel !!!

    Alain
    ************************************************** ***********************
    Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
    ************************************************** ***********************
    IF there is the word "Problem" in your question ...
    certainly the answer is " RTFM " or " RTFDataSheet " !!!
    *****************************************

  4. #4
    Join Date
    Jun 2007
    Posts
    4


    Did you find this post helpful? Yes | No

    Default

    Thanks for all the help! even though i'm in the wrong forum :0. So any thoughts on which is better? Is proton a good software package. I got it without really knowing what else is out there? Thanks!

  5. #5
    malc-c's Avatar
    malc-c Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by wireman22 View Post
    Thanks for all the help! even though i'm in the wrong forum :0. So any thoughts on which is better? Is proton a good software package. I got it without really knowing what else is out there? Thanks!
    Asking that in a Picbasic pro forum... you're probably going to get a slightly bias answer

    There are several languages that allow you to program PIC's, and then several variants with in those. Most will allow you to get started, some will allow you to progress better than others, most have excellent support, either direct or via forums like this one.

    Some, like MicroBASIC are free up to a limit of 2K of code, others can cost upwards of £200 (like PicBasic Pro) but then you are using a "professional" application which is very strong.

    I'm sure if you lurk over on the correct forum and post your questions there you will get as much support as you need.

Similar Threads

  1. More Servo Woes
    By chrisshortys in forum mel PIC BASIC Pro
    Replies: 10
    Last Post: - 13th May 2009, 08:40
  2. Replies: 10
    Last Post: - 26th May 2008, 07:00
  3. Servo control woes
    By Eriswerks in forum mel PIC BASIC Pro
    Replies: 24
    Last Post: - 28th February 2006, 00:12
  4. Control RC servo via Parallax Servo Control
    By cibotsan in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 17th September 2005, 08:18
  5. Servo control with 12F629
    By achilles03 in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 23rd June 2005, 23:34

Members who have read this thread : 0

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