Arduino_Code_for_the_Tank:

include



#define RX_PIN 13
#define TX_PIN 12
AFSoftSerial TankSerial = AFSoftSerial(RX_PIN,TX_PIN);

void setup()
{
Serial.begin(9600);
TankSerial.begin(9600);
TankSerial.print(“THROTTLE|0|0;”);
TankSerial.print(“THROTTLE|0|0;”);
}

void loop()
{
// Check the Hardware Serial //
if (Serial.available())
{
TankSerial.print((char)Serial.read());
}

}




Edit History