I'm currently building a FPV Rc car and I was just wondering how could I progrmam with an arduino, motor shield, and a xbee shield, to communicate together. I would like to control the Rc car with a PS3 Controller with the xbee pro. Be able to move forward, backward with the right joystick and move a servo (for Steering) with the left joystick. Also to be able to turn on an LED by pressing the Triangle button. and Is this possible?
Mizuel:
I'm currently building a FPV Rc car and I was just wondering how could I progrmam with an arduino, motor shield, and a xbee shield, to communicate together. I would like to control the Rc car with a PS3 Controller with the xbee pro. Be able to move forward, backward with the right joystick and move a servo (for Steering) with the left joystick. Also to be able to turn on an LED by pressing the Triangle button. and Is this possible?
- What does 'FPV' mean?
- What do you mean by controlling your car with ps3 controller with xbee pro.
Do you mean you want to control the car with both ps3 joystick and some other device using xbee pro?
I recommend using a wireless ps2 joystick. You can use this library.
-> Here's a detailed tutorial with source code Digitalduino: Interfacing a PlayStation 2 (PS2) Controller with Arduino
@Mizuel, please do not cross-post. (Duplicate removed.)
For the others here, FPV stand for First Person View. In the RC world this means that a camera is placed on the vehicle that streams the video back to the pilot so they can see from their model's view.
One more question for you. I am assuming your computer can recognize a ps3 controller via USB or something similar? If this is the case then you could write a small computer program that converts your control movements into a series of commands for the car. These commands could them be sent over the xbee serial link to the car that could interpret them. You will want to make sure that the xbee and motor shields don't need any of the same pins because it would cause you a lot of issues if they do.
If you can do the things above the LED will be trivial.
I've have the same problem. Once you have the serial printing how can you isolate each joystick axes and convert to a pwm signal on a output pin?
Elephant_Logger:
I've have the same problem. Once you have the serial printing how can you isolate each joystick axes and convert to a pwm signal on a output pin?
The Servo library would be used by an Arduino to command an RC servo or ESC.