Serout to serial servo


Closed Thread
Results 1 to 21 of 21

Hybrid View

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


    Did you find this post helpful? Yes | No

    Default

    I glossed over the part about being a trouble. Everything Joe said and I will add...
    Pick a subject that you " think" you know. Then find someone that wants to learn it. Try teaching them or help them with a problem. You will quickly find out how much you really know. May not be as much as you thought.

    For me this forum is a learning tool. So keep trying new things and share your problems.
    Dave
    Always wear safety glasses while programming.

  2. #2
    Join Date
    Feb 2007
    Location
    Malaysia
    Posts
    49


    Did you find this post helpful? Yes | No

    Default

    Hi,

    Sorry for late reply.

    I check the batteries in fact I fully charge it and try it again with additional
    main: in the code but the problem remain the same.

    Actually I am hacking an Isobot Robot.

    Here's the video:

    By the way thanks to all who answered to this forum.

  3. #3
    Join Date
    Aug 2006
    Location
    Look, behind you.
    Posts
    2,818


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by azmax100 View Post
    Hi,


    Actually I am hacking an Isobot Robot.

    Here's the video:

    By the way thanks to all who answered to this forum.
    Hey isn't that Michael Jackson ? looks like it's ready to do some Kung Foo . . ., teach that thing to moonwalk . . . What was the problem again? Oh yeah, servo stalls. Maybe it is losing the data connection when it goes into those antics, bad wire, bad connection . . . Try enabling WDT in case micro is locking up. You have a lot of PAUSE 1000 in your code. I would change them to for next loops, or better yet make a subroutine for next with say 0 to 100 pause 10 and when you move on to using interrupts your code will respond much faster. In thinking about it, I would move those serial routines to use HSEROUT and hardware serial routines, instead of all those bit banging serout2 commands.
    Last edited by Archangel; - 7th August 2009 at 17:57.
    If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
    .
    Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
    .
    There simply is no "Happy Spam" If you do it you will disappear from this forum.

  4. #4
    Join Date
    Feb 2007
    Location
    Malaysia
    Posts
    49


    Did you find this post helpful? Yes | No

    Default

    Joe S,

    What do you mean WDT.Can you please elaborate more.

    If i use the Hserout do I have to use Include BS2defs.bas.

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


    Did you find this post helpful? Yes | No

    Default

    WDT. Watch Dog Timer. This is one of the config settings. Look at the PICs data sheet.
    You do not need the BS2 stuff with SEROUT2 or HSEROUT. In fact, being you still have that in you code might be causing some of the trouble. Not sure though.
    Dave
    Always wear safety glasses while programming.

  6. #6
    Join Date
    Aug 2006
    Location
    Look, behind you.
    Posts
    2,818


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by azmax100 View Post
    Joe S,

    What do you mean WDT.Can you please elaborate more.

    If i use the Hserout do I have to use Include BS2defs.bas.
    http://www.picbasic.co.uk/forum/showthread.php?t=543
    I strongly suggest everyone new to PICs read through all the posts in the FAQ section, really a lot of good things in there. WDT is what it it's name implies, it , like a watch dog, keeps an eye on your pic, and if allowed to time out, it resets it. After your code is perfect, turn it off if you like.
    If i use the Hserout do I have to use Include BS2defs.bas.
    I wouldn't put it in. It basically just redefines a bunch of stuff so you can use basic stamp syntax, it also includes modedefs.bas automatically, which you do not need to use hardware serial port either. You do need it (modedefs.bas) if using serout or serout2 and want to use the aliased baud notations like N9600 . . . instead of mode 396 . . . As far as BS2defs goes, I am assuming a 2 to 7 dollar PIC beats spending what . . . ? . . . 25 for a stamp ? I think you will not go back, so it's better to put that chapter behind you, with fond memories (of the money you spent), and get up to speed with PIC syntax. IMHO
    If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
    .
    Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
    .
    There simply is no "Happy Spam" If you do it you will disappear from this forum.

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