- With the software serial, is it possible to use any digital pin on the Arduino for serial communication?
- I've read the following about the WP controller: The default pins for RC mode are D0 and D1. As these are also the serial communications pins used for programming. You must disconnect cables connected to these pins when uploading a new program or usinging the serial port for diagnostics.So I can't upload sketches with a USB? I've read it here: http://sites.google.com/site/daguproducts/home/tutorials/understanding-wild-thumper
Control and Communications:The default settings in the sample code allow the controller to be controlled using a standard RC receiver. In this mode pulsewidths from the receiver are measured and converted to speed and direction for the two motors. The default pins for RC mode are D0 and D1. As these are also the serial communications pins used for programming. You must disconnect cables connected to these pins when uploading a new program or usinging the serial port for diagnostics. If you have spare I/O pins then you can redefine "RCleft" and "RCright" in the "IOpins.h" tab of the sample code. Other servos can be plugged directly into the RC receiver to create a fully radio controlled robot.
If you have spare I/O pins then you can redefine "RCleft" and "RCright" in the "IOpins.h" tab of the sample code.
#define LmotorA 3 // Left motor H bridge, input A#define LmotorB 11 // Left motor H bridge, input B#define RmotorA 5 // Right motor H bridge, input A#define RmotorB 6 // Right motor H bridge, input B#define RCleft 2 // Taking over servo 0 for RC receiver input#define RCright 4 // Taking over servo 1 for RC receiver input//#define S0 2 // Servo output 00 - NO LONGER AVAILABLE//#define S1 4 // Servo output 01 - NO LONGER AVAILABLE#define S2 7 // Servo output 02#define S3 8 // Servo output 03#define S4 9 // Servo output 04#define S5 10 // Servo output 05#define S6 12 // Servo output 06#define A1 1 // Analog input 01#define A2 2 // Analog input 02#define A3 3 // Analog input 03#define A4 4 // Analog input 04#define A5 5 // Analog input 05#define Battery 0 // Analog input 00#define RmotorC 6 // Analog input 06#define LmotorC 7 // Analog input 07#define Charger 13 // Low=ON High=OFF
Thanks for clearing that up!It is no problem for me to remove them when uploading a sketch.
Now for exemple, I want to use a switch on my transmitter to put spotlights on, on the UGV. Is this the right way to do it?:TX switch on > RX receives signal that switch is on > cable goes from the switch channel on the RX to WP controller digital pin(set as input) > code on WP controller detects that the switch is high, and sends with serial communcation a command to the second Arduino to turn the spotlights on, that are connected, for exemple, on digital pin 5(on the second Arduino).Am I thinking the right way about it?
Okay, I'm happy that I'm thinking right about!Thanks!Now, I do not really understand what you mean with "indirect" control?Can you explain that a little more, please?
You mean the following? :For exemple, I have currently connected a robot arm on channel 1. I'm not happy with it anymore, and I want to put an Airsoft gun on channel 1.Now, all I will have to do is go in the "menu"(that is displayed on a LCD), and select there to use channel 1 for an Airsoft gun, instead for a robot arm.
Nice explanation!I'll use 2.4Ghz for controlling the UGV, because FM radio controlling can get disturbed by other radio signals, and that is not the problem with 2.4Ghz.I'm going to make a summary of everything I know right now, and then see how I will put it all together.I've read that I can't use 2.4Ghz on my camera receiver if I'm already using 2.4Ghz for the UGV receiver, I think that isn't true, because 2.4Ghz signals can't get disturbed, as I mentioned above?
I'd be surprised if you could get 500m (1640ft) in clear air, let alone in a forest, but I'm not an expert, so if anyone knows better, I'd be interested to hear.