How do I give a radio control car autonomous control


Closed Thread
Results 1 to 40 of 191

Hybrid View

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


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Kenjones1935 View Post
    I awoke this morning with the thought that those three and four capital letters in the upper left hand corner of the diagram could be significant. I went to page 8 then 9 and 10. That's it. What does TQFP and QFN stand for? At second glance I see one is for a printed circuit and the other is for a socket. Details! Details!

    DIP = Dual Inline Package
    TQFP = Thin Quad Flat Pack
    QFN = Quad Flat No-lead


    I wish I had an oscilloscope.
    (Oh for the good old days of upright analog Tektronix.) You'd think they'd be on the yard sale/antique market.
    Watch Craigslist. Maybe one will show up in your area..
    Say, where IS your approximate location? Maybe someone on the list is local to you and has one or knows of one you could get cheap.

    You can also put a resistive divider the line in jack on your sound card and use one of the many available O-scope programs for your computer...


    steve

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


    Did you find this post helpful? Yes | No

    Default

    The other Dave tells about the sound card trick here
    http://davehouston.net/learn.htm
    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 Hello, I am back.

    Mucho frustration.

    I could not get my DPDT mini-relay switches to work. I unwittingly purchased the "latching" kind with two coils. Neither I nor wikipedia know how these work. Today I ordered the same kind that http://letsmakeroborts.com/node/928 used. 5 to 10 days delivery by land.

    I have succeeded in separating the 6volt battery (powers the PICkit, the radio receiver, the steering servo and the proto board) and the 7.2 volt battery (powers the wheels and the electronic speed control). Under radio control the car still runs.

    Next step CCP1 and CCP2 pin outputs to the speed control and the servo.

    Ken

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


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Kenjones1935 View Post
    Mucho frustration.

    I could not get my DPDT mini-relay switches to work. I unwittingly purchased the "latching" kind with two coils. Neither I nor wikipedia know how these work.
    Wikipedia? Hmmm. I imagine the manufacturer has a data sheet available for them. Do they have a part #?


    Today I ordered the same kind that http://letsmakeroborts.com/node/928 used. 5 to 10 days delivery by land.
    I thought it was 1 if by land, 2 if by sea.
    Must be thinking of something else....

    steve

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


    Did you find this post helpful? Yes | No

    Default No details from manufacturer

    AXICOM, part of TYCO, has a 15 page .pdf file giving the specs to their P2 V23079 Relay product line. No where does it say how, exactly, a latching relay works. It must be common knowledge except hereabouts.

    I have never coded in BASIC. I know C and C++ and a few (if I could remember them) older languages. Today I wanted to see what is being INCLUDEd when at the beginning a program I see:
    "include 'M16F88x.INC' ; PM header" see below.

    Today my question is about PBP INCLUDE files. (see below example) Where are NOLIST and LIST and ifdef and XALL defined? Not, as far as I can find, in the smallish MicroEngineering Labs PICBASIC PRO Compiler booklet. Is there a more complete spec on the WEB? I assume there exists a well constructed public PBP library. Where do I find "intrc_osc_noclkout" (see below code)? When I was working each company I worked for maintained its own C libraries. Is that the way this world works?


    ;************************************************* ***************
    ;* 16F887.INC *
    ;* *
    ;* By : Leonard Zerman, Jeff Schmoyer *
    ;* Notice : Copyright (c) 2009 microEngineering Labs, Inc. *
    ;* All Rights Reserved *
    ;* Date : 07/02/09 *
    ;* Version : 2.60 *
    ;* Notes : *
    ;************************************************* ***************
    NOLIST
    ifdef PM_USED
    LIST
    include 'M16F88x.INC' ; PM header
    device pic16F887, intrc_osc_noclkout, wdt_on, mclr_on, lvp_off, protect_off
    XALL
    NOLIST
    else
    LIST
    LIST p = 16F887, r = dec, w = -302
    INCLUDE "P16F887.INC" ; MPASM Header
    __config _CONFIG1, _INTRC_OSC_NOCLKOUT & _WDT_ON & _MCLRE_ON & _LVP_OFF & _CP_OFF
    NOLIST
    endif
    LIST

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


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Kenjones1935 View Post
    AXICOM, part of TYCO, has a 15 page .pdf file giving the specs to their P2 V23079 Relay product line. No where does it say how, exactly, a latching relay works. It must be common knowledge except hereabouts.
    No, the data sheet isn't very specific about how it works. But it appears from this data sheet, that you energize one coil to "latch" the relay on, and enrgize the other coil to release it. Or you can reverse the polarity on a coil to reverse its effect (e.g., one polarity to latch, and reverse polarity to release.
    I think the
    http://relays.tycoelectronics.com/datasheets/p2.pdf

    At the bottom of pg 4, right hand most of the 3 diagrams, (where it says
    "Contacts in reset position. Both coils can be used either as set or reset coils.". I think that bit applies to your relays. You can either energize one coil to "set" the relay and the other coil to "release"..., or you can use one coil and hit it with one polarity to "set", and reverse polarity to release".


    steve

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


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Kenjones1935 View Post
    AXICOM, part of TYCO, has a 15 page .pdf file giving the specs to their P2 V23079 Relay product line. No where does it say how, exactly, a latching relay works. It must be common knowledge except hereabouts.

    I have never coded in BASIC. I know C and C++ and a few (if I could remember them) older languages. Today I wanted to see what is being INCLUDEd when at the beginning a program I see:
    "include 'M16F88x.INC' ; PM header" see below.

    Today my question is about PBP INCLUDE files. (see below example) Where are NOLIST and LIST and ifdef and XALL defined? Not, as far as I can find, in the smallish MicroEngineering Labs PICBASIC PRO Compiler booklet. Is there a more complete spec on the WEB? I assume there exists a well constructed public PBP library. Where do I find "intrc_osc_noclkout" (see below code)? When I was working each company I worked for maintained its own C libraries. Is that the way this world works?


    ;************************************************* ***************
    ;* 16F887.INC *
    ;* *
    ;* By : Leonard Zerman, Jeff Schmoyer *
    ;* Notice : Copyright (c) 2009 microEngineering Labs, Inc. *
    ;* All Rights Reserved *
    ;* Date : 07/02/09 *
    ;* Version : 2.60 *
    ;* Notes : *
    ;************************************************* ***************
    NOLIST
    ifdef PM_USED
    LIST
    include 'M16F88x.INC' ; PM header
    device pic16F887, intrc_osc_noclkout, wdt_on, mclr_on, lvp_off, protect_off
    XALL
    NOLIST
    else
    LIST
    LIST p = 16F887, r = dec, w = -302
    INCLUDE "P16F887.INC" ; MPASM Header
    __config _CONFIG1, _INTRC_OSC_NOCLKOUT & _WDT_ON & _MCLRE_ON & _LVP_OFF & _CP_OFF
    NOLIST
    endif
    LIST
    Hi Ken,
    Those are assembly language instructions, find them in PIC data sheets.
    Section 15.
    Last edited by Archangel; - 16th January 2010 at 05:22.
    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.

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


    Did you find this post helpful? Yes | No

    Default

    Ken,

    You will also want to look in the C:\Program Files (x86)\Microchip\MPASM Suite for the *.inc file for your chip. That is where you will find all of the config options, near the end of the file.

    To learn a little more about PBP and includes try this.

    Start a new project, leave it blank and compile ( you may have to put the configs in you code space if that is the way you are doing it, but nothing more).

    Looks at the ASM generated. PBP will do all of the setup from the default includes.

    Now add
    INCLUDE "modedefs.bas"
    to your code. Compile again and look at the ASM file.

    Dave
    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