head tracking for remote paintball gun
zed of zardoz
Posts: 20
Hey yall,
I'm in the beginning stages of making a paintball tank and I have hit a problem. I want to make it a one man tank with a gun on top. I can always control it with a joystick, but I thought maybe I could use head tracking to minimize cluttering up the tank insides. Perhaps with the sensor attached to the inside or top of the paintball helmet.
I was thinking of using the "Memsic 2125 Dual-axis Accelerometer" to measure pan and tilt.
http://www.parallax.com/StoreSearchResults/tabid/768/List/0/SortField/4/ProductID/93/Default.aspx?txtSearch=Memsic+2125+Accelerometer
My question is how would I do this with a board of education if possible. Yes it would basically be the same as the shoulder gun the predator has. Just bigger.
thanks
I'm in the beginning stages of making a paintball tank and I have hit a problem. I want to make it a one man tank with a gun on top. I can always control it with a joystick, but I thought maybe I could use head tracking to minimize cluttering up the tank insides. Perhaps with the sensor attached to the inside or top of the paintball helmet.
I was thinking of using the "Memsic 2125 Dual-axis Accelerometer" to measure pan and tilt.
http://www.parallax.com/StoreSearchResults/tabid/768/List/0/SortField/4/ProductID/93/Default.aspx?txtSearch=Memsic+2125+Accelerometer
My question is how would I do this with a board of education if possible. Yes it would basically be the same as the shoulder gun the predator has. Just bigger.
thanks
Comments
The accelerometer could tell how much your head is tilted but it wouldn't be able to read how much it is turned side to side (pan). You could use the side to side tilting of your head as a pan command but it wouldn't be able to follow your natural head movements. You'd also need to incorporate a gyro if you wanted to sense the "pan" motion of your head.
"how would I do this with a board of education?" is a is pretty broad question. Do you have a BOE? Can you control a servo (or two) with it?
You'd need to read the sensors, perform the necessary calculation and control the servos.
I suppose this might all be possible with a BS2, but I'm not sure.
I'm going to order the Memsic 2125 and the parallax LISY300 Gyroscope Module and go from there as I'm trying to keep it compact.by having the sensors in a helmet and the board nearby connected via jumper wire.
I'm pretty sure the Memsic 2125 doesn't work up side down or at other extreme angles. I think a 3-axis gyro would be more versatile. It also costs less.
I don't intend on my head being more than 90 degrees off level in any direction while using the setup. If im upside down in the tank ive got bigger problems than if the sensor works.
If you're going to track a remote head you need a Kinect. If you want to track your own head, Duane hath spoken, check out the wii nunchuck. A good reason to use a nunchuck is other people have and you'll be on your way quickly. It would also be cool to see a Nintendo sticker on a tank, just a thought.
Don't drive your tank down a public road to the paint ball game though mkay?
Actually, you might want to remove the joystick.
A Nunchuck has a 3-axis accelerometer and is relatively easy to interface a Nunchuck to a microcontroller. It's the accelerometer that you'd be after. Besides being easy to use, Nunchucks are relatively inexpensive.
Here are some pictures of the PCB inside a generic Nunchuck before I removed the joystick.
I used a couple of resistors in place of the joystick since I'm not sure it will work without some resistance where the joystick had been (based on a post by Cluso99).
I personally no longer buy generic game controllers. I've found many generic game controllers don't have the precision as the original controllers.
I believe the generic Nunchuck's accelerometer has fewer bits of precision than the original Wii Nunchuck.
A generic PS2 controller I've used, only has 5-bits precision on its joysticks while a Sony controller has 8-bits of precision.
How would I tell if its a real nunchuck in that case, instead of a 5-bit copy if im looking to buy it online? I.e. ebay.
There are lots of stores that should be selling the real thing. I think Amazon would be a good place to purchase a Nunchuck, or Gadget Gangster (theirs looks like the real thing anyway).
You local retailers should be selling real Wii Nunchucks if they are clearly marked as such.
@tobdec:do you and your friend have a thread on your attempt?
If you don't want to save the joystick and you can get to the pins, the easiest way to remove it would be to cut it off (a X-acto knife might be able to fit between board and the joystick).
If you want to save the joystick then the easiest way would be to use Chipquik. A heat gun might also work. (I bet it would be a lot easier to just cut the joystick off. Joysticks that size are not very expensive.)
Once you get the joystick off, you might need to add some resistors so it looks like there is a joystick to the microcontroller in the Nunchuck. I used four 5K resistors but I bet resistors between 3K and 10K would work. solder the resistors between the first and middle holes left by joystick. You'll also need resistors between the third and middle holes.
@Duane Is there anything sensitive under the joystick? I'll try the chipquik or equivalent product.
UPDATE: Joystick removed with extreme prejudice.
Good to hear.
I just saw your update after refreshing this thread. I was about to upload some "before" and "after" photos of my Nunchuck's PCB. I found it yesterday and took some pictures.
I'll just upload the "after" pictures now.
This is the side that had the joystick.
It also has a small crystal. I wanted this side of the PCB to be bare (to make easier to attach to things) so I moved the crystal to the other side of the PCB.
Cluso99 had once said something about needing to replace the joystick with resistors so I added some 5.1K resistors to the other side.
I hope you keep us updated on your progress.