Go Down

Topic: Starting my first UGV project - need some starting help (Read 16 times) previous topic - next topic

highrad

Very cool TiboJ. I have just started working on a wild thumper project too except I am using the 4 wheel version with 75:1 motors. I am also using the WT Robot Controller. I have a Spectrum DXi6 radio.

This is also very new to me. I noticed you were going to add a pan and tilt unit at some time. Have you done that? I purchased the Lynxmotion unit. (http://www.lynxmotion.com/p-707-micro-pan-and-tilt-kit-black.aspx). I am struggling on how to control (code) the PT.

I like the switch method that Chargrin noted:


Yes, it would be possible to utilize a switch to tell your Rover that the joysticks (speed and turn signals) control the camera. This would require additional programming on your part; you should look at the example code for the Wild Thumper Controller and make sure you understand it. in the RCMode() function you'll see it reading the speed/turn channels and here is where you'd have it read an additional channel to determine if those readings are for the camera or the wheel motors.

I'd suggest you also set the Rover's speed to zero whenever it detects you've flipped your switch to camera control.


How did you connect yours and can you share your code? Thanks!

jraskell

If you're using a 4+ channel transmitter/receiver with two joysticks, there's no reason to use a 'switch' method.  You can set up one stick to control the rover and one stick to control the pan/tilt.

Doesn't even have to require any code modification either.  Just connect the pan and tilt servos directly to the appropriate channels on the receiver.  Voila, you have pan/tilt and rover control without any switching required.

TiboJ


Very cool TiboJ. I have just started working on a wild thumper project too except I am using the 4 wheel version with 75:1 motors. I am also using the WT Robot Controller. I have a Spectrum DXi6 radio.

This is also very new to me. I noticed you were going to add a pan and tilt unit at some time. Have you done that? I purchased the Lynxmotion unit. (http://www.lynxmotion.com/p-707-micro-pan-and-tilt-kit-black.aspx). I am struggling on how to control (code) the PT.

I like the switch method that Chargrin noted:


Yes, it would be possible to utilize a switch to tell your Rover that the joysticks (speed and turn signals) control the camera. This would require additional programming on your part; you should look at the example code for the Wild Thumper Controller and make sure you understand it. in the RCMode() function you'll see it reading the speed/turn channels and here is where you'd have it read an additional channel to determine if those readings are for the camera or the wheel motors.

I'd suggest you also set the Rover's speed to zero whenever it detects you've flipped your switch to camera control.


How did you connect yours and can you share your code? Thanks!

Hello highrad,

Nice to know that you're also working on a similar project!
As I'm now busy with tweaking the range of the camera and the controls, I'm not yet started with a pan/tilt mechanism.
I'll do that after the range tweaking.
As jraskell said, you just need to plug the servos into the right channel into the receiver, that's all.
The 'switch' method is nice if you don't have enough channels on your transmitter, for exemple:
if I want to control a pan/tilt system and a robot arm, but I only have one stick left on my transmitter that already is in use for the pan/tilt. So when I toggle a switch on the transmitter, then the Arduino will 'tell' to use that stick for the robot arm, but not anymore for the pan/tilt.
That is what I'm planning to do.

Let me know about your progress, I'll do that also ;)


highrad

Thanks for the help jraskell and TiboJ!

I was able to control WT and the PT using the radio. This will allow me to fine tune the WT platform.

Now my application will require the WT to operate in a very thick steel wall vessel about 100 feet away from the operator so to solve the radio wave penatration and multipath issues, I will have to go wired vs. wireless. Let me know if you have any insight in eliminating the radio receiver and connecting directly to the WT Controller with a cable. 

BTW, I will keep you up to date with my project too!

TiboJ

#69
Jul 13, 2012, 09:32 pm Last Edit: Jul 14, 2012, 01:07 pm by TiboJ Reason: 1
Are you sure that a good 40Mhz(don't know if it's legal in your country) transmitter and receiver can't penetrate it?
If not, or if not want to use wireless, then it would surely be possible to control the WT with a wired controller, like a ps2 controller.
I think you would need to use the serial pins on the WP controller, not sure. I never did something like that before ;)
I'm sure that there is people out here that know much about that.

Go Up