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 2009
    Location
    Fitchburg, Mass
    Posts
    483


    Did you find this post helpful? Yes | No

    Default Thanks guys

    Microchip says that my order is 2nd day Fedex. It should arrive either tomorrow (Monday) or Tuesday. Once it arrives I will begin to know where I stand.

    Thanks Don for your pointer to the output circuits.

    We don't have FRY'S in Massachusetts. We do have YDI (You Do It) but it is a long drive from Fitchburg. Other than Radio Shack what other stores will support me in this project?

    My radio control car is not the one for the finished project. It is one I got for the correct price - free. It is a HPI Racing SPRINT 1/10 4WD Electric Touring. It is quite a beautiful little mechanism. It has two differentials. The four wheel drive makes in incovenient for the final vehicle. There is a drive belt the length of the chassis right where the PIC should go.

    Electronicly it contains:
    One radio receiver, one pretty hefty electronic speed control, one type 540 motor, one steering servo, one 7.2 volt Ni-Cd battery pack.

    I had an idea for narrowing the lens angle for my light detector. I could put it at the end of a toilet paper cardboard tube which sticks out the windshield of the vehicle. A reasonably designed 360 degree turn might just allow the 'correct' light sensor to react accurately from, say, thirty to forty feet. What is the correct light sensor assuming I am using a 100 watt incandescent bulb.

    Ken

  2. #2
    Join Date
    Feb 2006
    Location
    Gilroy, CA
    Posts
    1,530


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Kenjones1935 View Post
    We don't have FRY'S in Massachusetts. We do have YDI (You Do It) but it is a long drive from Fitchburg. Other than Radio Shack what other stores will support me in this project?
    There may be more surplus electronics stores around you, but I was able to find one that looks to be an hour away. http://smcelectronics.com/index.shtml

    For mail order:
    www.digikey.com
    www.sparkfun.com
    http://www.goldmine-elec.com/
    www.halted.com


    are nice. I notice that if I can't find it at the surplus stores, it is a LOT cheaper to get mail order than to get them at Radio Shack. Besides Radio Shack does not seem to stock half the parts they used to 5 or ten years ago.

  3. #3
    Join Date
    Feb 2009
    Posts
    36


    Did you find this post helpful? Yes | No

    Default

    I was able to find:

    HPI Racing Sprint 2 Flux RTR w/Ford Mustang GT-R

    Must be the same or similar. I looked at the specs and replacement parts and was able to find a picture of the ESC. Indeed it is a standard 3 wire servo cable config. So I assume the RX has the same 3 times 3 pin headers on it to plug the servo cables into it. This is good, cuz most (cheap) models have a custom control system to save cost and is next to impossible to figure out.

    You said the RX has 3 channels but only uses 2. That's also good. You can use the 3rd channel for auto/manual detection.

    The power to the RX is likely being provided by the servo cable from the ESC. The ground and power pins on the RX are on a bus. You only have to provide one channel to power all. So when you run the servo cable from the unused RX channel to the board, you will have 5 volts (check it) and ground available on the cable to power the board. This power should be fine in terms of conditioning. It is the raw main battery that is dirty.

    Here are some sites to look at for parts... there are many more:

    http://www.rentron.com/index.html
    http://www.sparkfun.com/commerce/categories.php
    http://www.parallax.com/
    http://www.pololu.com/

    Here is an overview of the ICSP I discussed.

    http://www.embedinc.com/picprg/icsp.htm

    Best,
    John
    Last edited by John_Mac; - 23rd November 2009 at 03:01.

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


    Did you find this post helpful? Yes | No

    Default You guys are great!

    I understand that my receiver gets its power from the ESC which in turn is fed by the 7.2volt Ni-Cd battery. Do you all feel that powering the whole kit and caboodle from that one battery is OKAY? If that is the case many of my (imagined) problems are solved. Will the voltage regulator in the ESC withstand the added amperage? If it will then other potential problems disappear.

    I still think I need two batteries. One to power the car. The other to power the microchip. The Ni-Cd runs dry after a few high speed runs of the car. It must be recharged. When used as I have been imagining by middle school students it will run down quickly. What happens to all the information in the PIC while I swap batteries?

    Ken

    I anxiously await the arrival of my PICkit.

    Ken

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


    Did you find this post helpful? Yes | No

    Default

    The program memory in the PIC will stay there forever. Any variables will be reset a power up if they are not written to EEPROM. I do not think you will need to worry about that for this project, at least not to start with.
    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 Adam aka Pic User

    You suggested I check out:
    http://www.picbasic.co.uk/forum/show...17&postcount=6

    I see the reference to latching relays. I found at Newark only 12 volt and greater versions. My mental image of my car/truck carries a 7.2 volt Ni-Cd and a 6 volt AA battery pack. Do you know of an appropriate latching DPDT switch?

    Ken

  7. #7
    Join Date
    Feb 2009
    Posts
    36


    Did you find this post helpful? Yes | No

    Default

    The ESC should work fine for both PIC and steering servo power. I would try it before loading up with separate battery packs. Typically the PIC will reset if you get a glitch on the power. You would see a short dead time while the PIC resets if this happens. You can also flash some LEDs in software on init if you want.

    Just look at the ESC output on a scope and see how good/bad it is.

  8. #8
    Join Date
    Apr 2006
    Location
    New Hampshire USA
    Posts
    298


    Did you find this post helpful? Yes | No

    Smile Keep going...

    Quote Originally Posted by Kenjones1935 View Post
    You suggested I check out:
    http://www.picbasic.co.uk/forum/show...17&postcount=6

    I see the reference to latching relays. I found at Newark only 12 volt and greater versions. My mental image of my car/truck carries a 7.2 volt Ni-Cd and a 6 volt AA battery pack. Do you know of an appropriate latching DPDT switch?

    Ken
    Hi Ken, John and Dave,

    I have seen some 5 V relays but it might be better to power a relay directly from your battery supply.
    Then control it with the 5 V signal from the PIC digital pin.
    You then, are not limited to the coil current of the PIC pin and more important, the electrical noise from the coil is outside the “inner sanctum” of the sensitive control circuit.
    You would need an additional 20 cent transistor driver.


    Here in the states these are some of the places that “mail order” electronic supplies.

    These are full price electronic part distributors.
    They generally have lots of choices and ship very quickly.:
    Jameco Electronics http://www.jameco.com/
    Mouser Electronics http://www.mouser.com/
    Newark Electronics http://www.newark.com/
    Digi-Key http://www.digikey.com/DigiHome.html
    Allied Electronics http://www.alliedelec.com

    These are surplus, few of a kind, less of a selection overstock type places.
    Stock quantities are limited and they ship a little slower:
    All Electronics Corp http://www.allelectronics.com/
    Electronic Goldmine http://www.goldmine-elec.com/
    BG Micro Electronics http://www.bgmicro.com/
    Marlin P. Jones & Assoc., Inc. http://www.mpja.com/
    Fair Radio Sales http://www.fairradio.com/
    Hosfelt Electronics, Inc. http://www.hosfelt.com/

    I buy most of my parts, to stock the parts bin, from eBay:
    eBay Inc. http://www.ebay.com/

    You guys are starting an interesting project for all the right reasons!
    -Adam aka Pic User-
    Ohm it's not just a good idea... it's the LAW !

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


    Did you find this post helpful? Yes | No

    Default

    Hey Adam,
    Do not be a stranger...
    I think Ken could really benifit from your insight on a project like this.
    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 : 0

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