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 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

  2. #2
    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

  3. #3
    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.

  4. #4
    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.

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


    Did you find this post helpful? Yes | No

    Default Looks like I've got to do some studying....

    You all posted in the "PBP projects for R/C models" thread code specifically for the 12F675. My PIC is a 16F887.

    I am at a loss to translate from one PIC to the other. My PBP compiler (set up for 16F887) has no idea what to do with GPIO.x references. When I set it for 12F675 it is happy, but the resulting code is useless to my PICkit2.

    Is it my job to read about the 12F675 and try to figure out which register in my 16F887 is equivalent? That would be an excellent homework assignment.

    Ken

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


    Did you find this post helpful? Yes | No

    Default

    Yup, pretty much your job to pull the data sheet and compare pin/port assingments.
    Even if you found code for the PIC you are using the pin assingments would probably be different from your setup.

    The ADC and other built in hardware things can be confusing from PIC to PIC. So when those kind of things come up we can help you there.
    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