Log in

View Full Version : pic: 1726 Demo Bot


s_forbes
21-06-2007, 20:57
[cdm-description=photo]28756[/cdm-description]

Jeff 801
21-06-2007, 20:58
this is a way better rubber band firing mechanism
http://www.mocpages.com/moc.php/22386

bear24rw
21-06-2007, 21:24
pretty cool does it fire at the green target?

dbell
22-06-2007, 17:08
pretty nice.
are all 6 wheels powered?
how many drive motors?

s_forbes
22-06-2007, 19:09
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.

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
27-06-2007, 12:03
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
27-06-2007, 12:56
I found out how to connect the camera to the microcontroller via this post (http://www.chiefdelphi.com/forums/showpost.php?p=507128&postcount=7). 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...)