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

    Can you tell us exactly what does not work? Do not take this the wrong way. Ut it could be a number of things.

    For starters you said in another post that the code compiled. Now it does not work at all???

    Are you using Micro Code Studio for the code editor?

    And who is "Microcode WEB" ? I hope you did not buy from someone that is not authorized.
    Dave
    Always wear safety glasses while programming.

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


    Did you find this post helpful? Yes | No

    Default

    Ken,
    I did not mean to sound harsh in the above post.

    I will pit together some screen shots tonight to help you get started.
    Make sure you have Pic Basic Pro, Micro Code Studio and MPLAB installed in the default directories and we will get you going. They should all be on the Pic Basic CD.

    What operating system are you running ?
    Dave
    Always wear safety glasses while programming.

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


    Did you find this post helpful? Yes | No

    Default Here's what is happening

    First I loaded the MPLAB code that came with PICkit 2 Debug Express. This was version 80. I also loaded Hi-Tech's C lite (free) C compiler.

    Every thing worked beautifully. I got an Assembly language bit to work and I got some C working. Both were examples that came with the package.

    Then I purchased PICBASIC PRO. Unbeknown to me this CD also had a MPLAB. It is version 83. I did the SETEUP.EXE from the PBP CD. Everything seemed hunky dorry until I tried to do a BASIC program per the manual. No good.

    I noticed that now two MPLAB's were installed on my machine. I tried but could not get the WINDOWS XP program remove tool to uninstall MPLAB version 80. Since then nothing has worked correctly.

    I have just done a complete new install with everything in their default directories. Let me see what is what.

    Ken

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


    Did you find this post helpful? Yes | No

    Default

    Ok, I am not home yet but maybe we can go ahead.

    Do you have Micro Code Studio installed? If not install it. Leave MPLAB alone and installed for now. You will need a part of it.

    Use for now MCS for your code editor.

    When you start MCS under the view button on the toolbar there will be compiler options. On the first tab tell it to find PBP if it has not already done so. On the second tab tell it to find MPASM there is a check box. Do not worry about the third tab.

    Now when you want to compile hit the F9 key. If no errors are found it will generate a HEX file.

    More later.
    Dave
    Always wear safety glasses while programming.

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


    Did you find this post helpful? Yes | No

    Default

    Here are a few screen shots that might help..
    This is the first thing you need to do when starting MCS.


    Then on the first tab click "Find Automatically". It should find PBP in the root directory. Do not check "Use PBPL", that is only good for 18Fs.


    Then on the "Assembler" tab check "Use MPASM" and click "Find Automatically". Check the other radio buttons as shown.


    Now you will be able to hit the F9 key to generate the *.hex file. Use the PicKit2 software to program the chip.

    Let us know your progress.
    Attached Images Attached Images    
    Dave
    Always wear safety glasses while programming.

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


    Did you find this post helpful? Yes | No

    Default OKAY so far...

    Thank you!!!!

    I have successfully done all so far. Is there someplace I could have/should have read this? It certainly is not in the paper manual that comes with PICBASIC PRO.

    I gotta go. Will be back later in the day.

    Ken

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


    Did you find this post helpful? Yes | No

    Default

    I am not sure where this is all documented anymore. The PBP manual deals with the command line for compiling, PBP is a command line program.

    Now that you are getting HEXes. Start the PicKit2 software.
    After it starts if you do not have it connected to a PIC or you change PICs you will need to check communications.


    Then import the HEX.


    Click the "Write" button to squirt the HEX to the PIC.

    Now to make this automated click the "Auto Import" button. This brings up the open dialog to select a HEX. If you do this, each time you compile by hitting the F9 key in MCS the PICKIT2 software will re-load the HEX and write the PIC. The power can be turned ON/OFF with out changing the settings. Click the "Auto Import" again to go back to normal.
    Attached Images Attached Images    
    Dave
    Always wear safety glasses while programming.

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