Author Topic: my rc car  (Read 1262 times)

Offline Dcofer

  • Ω Allumnist Ω
  • *
  • Posts: 118
  • Post quality +1/-1
  • Gender: Male
  • Acidmods User
my rc car
« on: May 09, 2011, 06:03:57 PM »
So for school I have been coding and building an r/c vehicle that is controlled via any computer.  Currently it is a mess but all that matters to pass is functionality so I will make it look purdy later hehe.

A little about the project:

All the coding was done by me with MPLab on the Pickit 3 demo board (pic 18f45k20).  Gearbox currently at a 58:1 gearing (i believe, soon to be 203:1 for more torque to fix turning).  Camera mounted on the front using 2 servo motors for pan and tilt, transmits wireless to the computer.  Have GPS so it can drive itself though I  am having issues parsing the code to get the longitude and latitude, but all data is stored on the microcontroller.  also have infrared sensors on front and sides for when it is driving on its own to avoid objects.  No build pics due to it mainly being coding.  so here is the forward, reverse, and servo test.  Enjoy.

http://www.youtube.com/watch?v=ddWaRrRbnHM


Xbox 360 gamertag: EMERGENCY DODO
PS3 gamertag: Emergency_Dodo

Offline Sammy

  • BST BAN
  • Granny Spanker
  • *
  • Posts: 393
  • Post quality +15/-1
  • Gender: Male
Re: my rc car
« Reply #1 on: May 09, 2011, 06:33:02 PM »
Wow! pretty awesome!!!, cant wait to see it when you get it done.


Toad: Sam, You sound like your stoned out of your mind lol
Me: :D

Offline Dcofer

  • Ω Allumnist Ω
  • *
  • Posts: 118
  • Post quality +1/-1
  • Gender: Male
  • Acidmods User
Re: my rc car
« Reply #2 on: May 09, 2011, 08:04:21 PM »
me too haha, so gearing the gearbox to 203:1 seems to have fixed the turning problem, it stripped a plastic wheel though so I need to hot glue that bish then ill get a better video up.


Xbox 360 gamertag: EMERGENCY DODO
PS3 gamertag: Emergency_Dodo

Offline Monk3y

  • Amateur Modder
  • Granny Spanker
  • *
  • Posts: 392
  • Post quality +6/-0
  • Gender: Male
  • Acidmods User
Re: my rc car
« Reply #3 on: May 09, 2011, 08:07:49 PM »
really cool project you got going there, my volume was pretty crappy when watch the video though but is the car powered through your computer?

Offline Dcofer

  • Ω Allumnist Ω
  • *
  • Posts: 118
  • Post quality +1/-1
  • Gender: Male
  • Acidmods User
Re: my rc car
« Reply #4 on: May 09, 2011, 08:43:14 PM »
fixed the turning problem by gearing the motors to 203:1 which made it slower but much more functional.

http://www.youtube.com/watch?v=JDA1LT4wXRU

Basically you send commands through a terminal program then that sends via XBee wireless module which mine is a point to point module so it can only communicate with the one on the vehicle.  from there the commands are read by the pickit 3 via the USART and then based on the received command the TRISD register is changed to a designated value that dictates the direction for each track to move.  I prolly over explained it but thats the full communication sequence between the computer and my r/c car.  It is powered by 2x 9v batteries (one for camera and one dropped to 5v for the servos and H-Bridge logic levels) 7.2v 1600mA r/c car battery for the motor power and a 3v battery for the microcontroller, there are no wires between the computer and vehicle.  Hope that I was able to explain it well enough haha. 
« Last Edit: May 09, 2011, 08:44:58 PM by Dcofer »


Xbox 360 gamertag: EMERGENCY DODO
PS3 gamertag: Emergency_Dodo

 

SMF spam blocked by CleanTalk
SimplePortal 2.3.5 © 2008-2012, SimplePortal