How do I give a radio control car autonomous control


Closed Thread
Results 1 to 40 of 191

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

    At or near the end of Microchips *.inc file.

    Can be found here
    C:\Program Files\Microchip\MPASM Suite

    This is the file that has pretty much everything about the chip in it.
    Dave
    Always wear safety glasses while programming.

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


    Did you find this post helpful? Yes | No

    Default It worked as would be expected. However

    The compiler did not like your @ line.

    It felt that three of the aliases were unknown.

    I commented out the whole line and the program compiled, programmed and worked exactly as I imagined it would.

    I guess I have to investigate the items in the @ line.

    Meanwhile I need to pick a light sensor chip for an incandescent light bulb. Got any suggestions? I have to purchase this on line. Our local Radio Shack has no such items.

    Ken

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


    Did you find this post helpful? Yes | No

    Default

    Did you get an "over writing previous address" error or something like that? If so then I bet the Lines in the PBP *.inc file need commented out. But setting the fuses in thae inc is good too, personal preference kind of thing.

    Light sensors. You should get a lot of feed back on that one.

    Off the top...
    I think you said that the car was going to look for a light. You may want to think about some small solar cells. Being a voltage is produced the ADC could read them directly, well it should if it is not so low a voltage as to not have a good resolution.
    Dave
    Always wear safety glasses while programming.

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


    Did you find this post helpful? Yes | No

    Default Yes, it was overwriting previous address

    Yes,

    It said something like overwriting previous address. It also did not like the comma in the @ line.

    Ken

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


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Kenjones1935 View Post
    Yes,

    It said something like overwriting previous address. It also did not like the comma in the @ line.

    Ken
    There is not a comma in the @ line... typo???
    The overwriting previous address is from not have the config lines in the PBP inc file commented.

    But if it is working...
    Dave
    Always wear safety glasses while programming.

  6. #6
    Join Date
    Jan 2009
    Location
    California, USA
    Posts
    323


    Did you find this post helpful? Yes | No

    Default

    Ken,
    If you just want to detect the direction of a light, I'd just get some generic CDS cells, similar to these:
    http://search.digikey.com/scripts/Dk...-p9001&x=0&y=0

    Take 6 or 8 of them and point them in different directions around your car and connect them to the ADC channels on your PIC. Scan the ADC channels to see which one is sucking up the most light...


    steve

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


    Did you find this post helpful? Yes | No

    Default I gotta get off my butt and start soldering.

    I have the bits and pieces. I have the help of this forum.

    Now I gotta settle my brain on a design and get to it.

    I am imagining the autonomous racer going out into the lobby through one door and returning through the only other door.

    Two choices come to my mind.

    1. Place a light bulb on the floor at the entrance door. Have the PIC driven car find the light source and follow its beam.

    2. Make sure all the doors in the lobby are closed. Have the PIC driven car follow the wall around the room until it finds the second open door.

    What do you all think? Got some better ideas?

    Thanks

    Ken

Similar Threads

  1. Car radio (Car radio and electronics support forum)
    By freewillover in forum Forum Requests
    Replies: 1
    Last Post: - 1st July 2009, 19:41
  2. Remote Car Starter Safety
    By CocaColaKid in forum General
    Replies: 8
    Last Post: - 22nd November 2005, 09:10

Members who have read this thread : 1

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

Tags for this Thread

Posting Permissions

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