Hi Guys
I decided to upgraded this Transmitter and RC MonsterTruck with some arduino extras, the build was seamless with little problems, the software however as you well know...
i've been debuggin this project for over a week trying to get it working and i have rewritten the code many times, i think that my problem might be that struggling for so long with the same problem might have made me blind to the solution, so I'm hoping someone has some new insight for me.
Here's the setup:
Tansmitter
Monster Truck
Close-up showing the components
Pretty coool huh...
Transmitter:
The Transmitter is made up of an Arduino Mini and an Arduino UNO R3
The Arduino UNO is not connected at the moment as it is for display only
The Arduino Mini is connected to:
Pot X1 //Pin A0
Pot X2 //Pin A1
Pot Y1 //Pin A2
Pot Y2 //Pin A3
Switch 1 //Pin 8
Switch 2 //Pin 7
Switch 3 //Pin A7
Switch 4 //Pin A5
Switch 5 //Pin 5
Switch 6 //Pin 3
LED1 //Pin 2
LED2 //Pin 4
LED3 //Pin 13
-433MHz short range transmitter //Pin 11 Short range TX is NOT connected!!
http://www.seeedstudio.com/wiki/433Mhz_RF_link_kit
-433.92MHz long range transmitter //Pins 3, 5, 6, 9 Long range TX IS connected
http://www.seeedstudio.com/wiki/index.php?title=2KM_Long_Range_RF_link_kits_w/_encoder_and_decoder
and
The Arduino UNO is connected to:
-LCD Shield
-Serial Port
Monster Truck Receiver
The Monstertruck setup consists of only one Arduino Nano built onto a UNO type board layout so that it is compatible with motor shield
The Arduino Nano is connected to:
LED Pins //2, 3, 10, 13
-Monster Moto Shield //Pins 4, 5, 6, 7, 8, 9, A0, A1, A2, A3
-433.92MHz long range receiver //Pins 0, 1, A4, A5
http://www.seeedstudio.com/wiki/index.php?title=2KM_Long_Range_RF_link_kits_w/_encoder_and_decoder
-Servo //Pin 11
Ok so that's how it's set up, now i want to ask: "How do i do this?"
I've sucessfully transferred data between the two using VirtualWire as a test but i require the use of a Servo as well and THIS is where my problems come in...
I then tried Software Servo but could not get that working on Arduino IDE 1.0.2 (SoftwareServo compiling error digitalWrite was not declared blah blah...)
I then moved on to EasyTranster, then to SoftEasyTransfer then SoftwareSerial (Still no luck)
Then i tried writing super simple code directly to the transmitter pins ie: digitalWrite for two switches and AnalogWrite for one X and one Y axis, this also didn't work however the VT LED that is hardwired to the receiver does blink indicating that it is receiving something, just not passing the informtion along correctly i suspect...
Ok so with all that said, i can post the code as well if anyone is interested however i think it might be time i try a different approach to Radio Control with Arduino, if youu would like to know anything specific jusst ask
Any Suggestions and/or advice is most welcome
Thanking you all in advance
Best Regards
Renier