First timer...building a remote controlled vehicle


Closed Thread
Results 1 to 33 of 33

Hybrid View

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


    Did you find this post helpful? Yes | No

    Default

    .n0rig.,

    Ahh, okay. It's been years since I worked on an IR project, so I did a quick search on the forum under 'infrared' and found some postings you might want to check out:

    http://www.picbasic.co.uk/forum/show...light=infrared

    http://www.picbasic.co.uk/forum/show...light=infrared

    Now, by all accounts, everyone said Bruce was the man on IR and to check out the solutions on his website. These are both inexpensive and relatively easy to implement.

    http://www.rentron.com/Infrared_Communication.htm

    http://www.rentron.com/remote.htm

    http://rentron.com/PicBasic/IR_Chips.htm

    If you'd consider using a universal TV remote programmed with Sony signals, as a backup plan - I'm not encouraging you to abandon your plans for making your own remote - then: http://www.rentron.com/remote_control/IR-D15A.htm

    Hope this helps and good luck!

  2. #2
    Join Date
    Jan 2009
    Posts
    20


    Did you find this post helpful? Yes | No

    Default

    okay, after spending about an hour reading through rentron's articles...I have come to the conclusion that I will need to generate the signal, run that through my IR transceiver and then collect it again at the transceiver in the car. I have three transceiver here that have an in and out for RF communication. I am sure I will not need to encode the data stream, right?

    Well, I have two of these:
    http://www.mouser.com/search/Product...CYV8QSMg%3D%3D

    100+ 12F683 I/P
    ~6 16F683 I/P
    ~3 16F616
    1 18F2550
    ~500 tact switches
    ~3000 ft kynar wire (30 awg)
    no oscilloscope
    1 voltimeter
    and soldering iron and glue
    other basics

    Soo...I am not sure if this is what all I may need to make an IR link between two chips. I just need your guidance guys in all of this. I will post pictures of it if I finish it
    Last edited by .n0rig.; - 18th January 2009 at 03:35.

  3. #3
    Join Date
    Jan 2009
    Posts
    20


    Did you find this post helpful? Yes | No

    Default

    Found this at rentron and going to see if I can make my own encoder and decoder. Ok...I know I will need this to minimize "noise" that may be from cells and stuff like that at the competition. sooo, what exactly will me connecting my 16F to the encoder pic to the transceiver which will transmit to the tranceiver at the car, decoded by the decoder pic, and forwarded to the 16F in the car do to my remote controlling abilities. Is this required and what are the benefits. And...is my concept above wrong? Does the data go through the transceivers and get picked up by the other transceiver?

    This is seriously the first ever pic basic code that I have done for wireless or "serin/serout" communication. I have some good knowledge of a pic but it is just novice to intermediate knowledge. But anyways, the link is here:

    http://www.rentron.com/PicBasic/IR_Chips.htm

    Also, I will be trying to test some serout/serin commands with my 16F684 tonight to see if I can get a pin on the receiving pic to go high and turn on an LED. If I can do this...maybe using the pulse command can control the DC motors? Then I can incorporate this to the IR transceivers.

    Any tips and help is appreciated by all viewing...
    Last edited by .n0rig.; - 18th January 2009 at 03:50.

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

  5. #5
    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!

  6. #6
    Join Date
    Jan 2009
    Posts
    20


    Did you find this post helpful? Yes | No

    Default

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

  7. #7
    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, 17:39
  2. Pulse Capture and byte building
    By boroko in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 21st July 2009, 01:59
  3. TV remote controlled RGB LEDs
    By idtat in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 22nd February 2009, 17:15
  4. Timer interrupt frequency
    By Samoele in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 17th January 2009, 23: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, 22: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