PBP projects for R/C models


Closed Thread
Results 1 to 40 of 772

Hybrid View

  1. #1
    Join Date
    Nov 2009
    Location
    Fitchburg, Mass
    Posts
    483


    Did you find this post helpful? Yes | No

    Default Here's the code that's in the video

    I don't think I have changed anything other than remove confusing comments.

    Ken
    Attached Files Attached Files

  2. #2
    Join Date
    Nov 2009
    Location
    Fitchburg, Mass
    Posts
    483


    Did you find this post helpful? Yes | No

    Default One more problem solved

    Part of the reason my car keeps hitting the wall is that it is responding too slowly for the speed it is traveling.

    Today I carefully calibrated my HPWM 2,xxx,50 commands.

    If xxx = 110 the car does not move.
    If xxx = 111 the car moves forward, but only on a non-carpeted floor.
    If xxx = 112 the car moves forward forcefully but not too fast

    xxx = 115 is too fast for my code.
    xxx = 125 is full speed which is very fast.

    Ken

  3. #3
    Join Date
    Nov 2009
    Location
    Fitchburg, Mass
    Posts
    483


    Did you find this post helpful? Yes | No

    Smile The car is working much better...

    Here's a video of our car running a hall in our house.

    http://video.yahoo.com/watch/7164676/18657928

    I moved the front sonic sensors closer to the front of the car and I figured out how to slow down the wheels a bit.

    Next thing, I think, is to build a better looking and stronger prototype using a car with more room to attach stuff. What other kinds of sensors should I try and what other kinds of tasks will they help the PIC do?

    Again, thank you for all your interest and help.

    Ken

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


    Did you find this post helpful? Yes | No

    Default

    Looking good Ken!

    Other sensors...
    IR - Probably not do much better than the sonic, but they can be setup to "see" light and dark colors. Line follower. Maybe see the white wall...

    Hall-effect - Have the car find and park or something on a metal plate, magnetic.

    Solar cell or photo diode - Light seeking. You mentioned this at the beginning.

    RFID - Place RFID tags along a path and have the car follow. (never done that myself)
    Dave
    Always wear safety glasses while programming.

  5. #5
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    4,132


    Did you find this post helpful? Yes | No

    Default

    Consider using PID control for your motors. This way your car will be less nervous in is reactions. Look for the routines by Henrik Olson at http://www.picbasic.co.uk/forum/showthread.php?t=5874

    Ioannis

  6. #6
    Join Date
    Nov 2009
    Location
    Fitchburg, Mass
    Posts
    483


    Did you find this post helpful? Yes | No

    Default I got to thinking...

    There is a large world wide subculture of robotics. Does it have a common higher level language? Are there some PIC's obviously better suited for certain kinds of sense and control tasks than others? Where can I read about such things? (I get SERVO magazine. I shall look more carefully for leads there. But where on the WEB?)

    Ken

  7. #7
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    4,132


    Did you find this post helpful? Yes | No

    Default

    Maybe C is what you mean?

    I think it's all in the software. Meaning the programmer.

    Sure a dsPIC may do better in signal processing or faster, but requires that the programmer can code in C or assembly.

    But generally speaking all micros can do more or less all sort of things.

    Did you look at the link I posted? I think isthe key to your nervou problems. PID does just that.

    Ioannis

Similar Threads

  1. PBP Book
    By Bruce in forum Off Topic
    Replies: 83
    Last Post: - 4th October 2021, 12:55
  2. PBP Extensions, What are they?
    By PJALM in forum PBP Extensions
    Replies: 9
    Last Post: - 28th September 2021, 11:26
  3. Compiler differences between PBP 2.33 & 2.46
    By nikopolis in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 2nd May 2006, 19:01
  4. Newby- PBP wont compile for 18F (MPLAB)
    By jd76duke in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 17th December 2005, 23:30
  5. Making PBP code more modular
    By forgie in forum General
    Replies: 30
    Last Post: - 25th October 2005, 16:24

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