Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Extra Discussion (http://www.chiefdelphi.com/forums/forumdisplay.php?f=68)
-   -   pic: 1726 Demo Bot (http://www.chiefdelphi.com/forums/showthread.php?t=57960)

s_forbes 06-21-2007 08:57 PM

pic: 1726 Demo Bot
 

Jeff 801 06-21-2007 08:58 PM

Re: pic: 1726 Demo Bot
 
this is a way better rubber band firing mechanism
http://www.mocpages.com/moc.php/22386

bear24rw 06-21-2007 09:24 PM

Re: pic: 1726 Demo Bot
 
pretty cool does it fire at the green target?

dbell 06-22-2007 05:08 PM

Re: pic: 1726 Demo Bot
 
pretty nice.
are all 6 wheels powered?
how many drive motors?

s_forbes 06-22-2007 07:09 PM

Re: pic: 1726 Demo Bot
 
4 motor, all wheel drive, 1:1 ratio. The drive base was taken from a previous vex bot made to play our summer vex camp game.

Quote:

Originally Posted by bear24rw (Post 632551)
pretty cool does it fire at the green target?

It's programed to fire after it aims itself properly at the light. (The rubber bands make a cool *plink* sound when they hit it. :)) Our programmer finally got a hold of easy c, so he is having fun learning how to use it.

Doug G 06-27-2007 12:03 PM

Re: pic: 1726 Demo Bot
 
You can use the camera without connecting it to a TTL port on an RC? How do you feedback "pan" info to the Vex controller? I take it the drive platform is the camera's "pan" system. I have to admit I don't do a whole lot of camera programming, so please elaborate, I'm a bit confused.

TheOtherGuy 06-27-2007 12:56 PM

Re: pic: 1726 Demo Bot
 
I found out how to connect the camera to the microcontroller via this post. You basically connect the TTL port on the camera to the tx and rx ports on the vex microcontroller (which are on the same side as the ana/dig inputs). The camera does a lot of processing itself, and it returns a bunch of variables, including the pan angle for the pan servo and the center of the mass. Using EasyC Pro made getting the camera to work a breeze, all you have to do is make some unsigned characters and assign them to whatever the camera returns.

The pan system is only half of the drive system, you need the tilt to figure the disance from the object. The farther away, the lower the angle, the closer, the steeper the angle.

We got it so it'll drive arcade mode to drive up to the light, so it combines the two values and figures the value for each motor. We just made the rubber band gun fire when the robot was happy with it's position.

That's pretty much all there is to it! I found out vex doesn't work too well with the camera because the motors don't provide as much control as you want (ie adding a pid loop made the robot stop short of it's goal, and then 5 seconds later JUMP forward several inches. We never quite got it to accurately tell the distance...)


All times are GMT -5. The time now is 12:35 PM.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi