First timer...building a remote controlled vehicle


Closed Thread
Results 1 to 33 of 33

Hybrid View

  1. #1
    Join Date
    Jan 2009
    Posts
    20


    Did you find this post helpful? Yes | No

    Default

    Also, for my two 16F pics (not decoder/encoder, Tx/rx) I was wondering if I could make subroutines in the code that simplify the wireless communication part. Maybe have it do something like this (in English not in basic ) .

    -------16F in remote controller-----
    if porta.0 button is pressed (signifies forward) then goto send_forward
    send_forward:
    serout the letter "f"

    ------16F in car------
    serin "letter (can be F, B, L, R, and combinations of letters)

    if letter = F then goto foward
    foward:
    PWM on two back motors using hardware PWM
    ...or jsut make both pins connected to the + of the motors high?

    -------------------------------------


    Would something like that work? Also....I have some guides here (and the internet) on how to use the serin/out commands....I just need to learn the basics of what I can and cannot do. I cannot test anything right...I really don't want to mess anything up. For now...I want to collect as much info as i can and prepare myself with the knowledge that others have done this before me...that I should be able to as well.

    Regards,

    n0rig

  2. #2
    Join Date
    Apr 2005
    Location
    Virginia
    Posts
    65


    Did you find this post helpful? Yes | No

    Default

    .n0rig.,

    As much as I love to help, I'm a bit short on time this week. It looks like you're heading in the right direction. My only advice to you at this point is to put something together and try it. The worse case is it won't work - you're not going to blow anything up. Just make darn sure there are no shorts between the positive and negative power leads and that you don't switch the two going into your ICs before you apply power - those have been my biggest problems (thumping head against wall). Once you've put something together and tried out some code, let us know what you've done, where you're stuck and we'll do our best to help. Good luck!

  3. #3
    Join Date
    Jan 2009
    Posts
    20


    Did you find this post helpful? Yes | No

    Default

    I can't get the chips to communicate...

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


    Did you find this post helpful? Yes | No

    Default

    Try it without the transmitter, use a wired connection for trouble shooting.

    Post the non-working code!
    Dave
    Always wear safety glasses while programming.

Similar Threads

  1. Elapsed Timer Demo
    By Darrel Taylor in forum Code Examples
    Replies: 111
    Last Post: - 29th October 2012, 18:39
  2. Pulse Capture and byte building
    By boroko in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 21st July 2009, 02:59
  3. TV remote controlled RGB LEDs
    By idtat in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 22nd February 2009, 18:15
  4. Timer interrupt frequency
    By Samoele in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 18th January 2009, 00:49
  5. Need help building a simple IR learning remote with a PIC
    By JackPollack in forum mel PIC BASIC Pro
    Replies: 14
    Last Post: - 20th April 2006, 23:22

Members who have read this thread : 0

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

Posting Permissions

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