I have built my first Arudino Mega 2560 robot and i have some problems installing the IR remove functionality to the robot. I tried to use the tutorial that you have on your website and the code doesn’t work. I keep getting some errors. This is the errors that i keep getting when i try to install the IR remote functionality:
Arduino: 1.6.9 (Windows 10), Board: “Arduino/Genuino Mega or Mega 2560, ATmega2560 (Mega 2560)”
C:\Users\ale3x\Desktop\sketch_jul31a\sketch_jul31a.ino:101:57: warning: missing terminating " character [enabled by default]
Serial.println("START " rawcommand " END" "
^
sketch_jul31a:101: error: missing terminating " character
Serial.println("START " rawcommand " END" "
^
C:\Users\ale3x\Desktop\sketch_jul31a\sketch_jul31a.ino:102:1: warning: invalid suffix on literal; C++11 requires a space between literal and identifier [-Wliteral-suffix]
" "Received string length = " rawcommand.length() "
^
C:\Users\ale3x\Desktop\sketch_jul31a\sketch_jul31a.ino:103:1: warning: invalid suffix on literal; C++11 requires a space between literal and identifier [-Wliteral-suffix]
" "End character > at index = " rawcommand.indexOf(’>’));
^
C:\Users\ale3x\Desktop\sketch_jul31a\sketch_jul31a.ino:103:33: warning: missing terminating " character [enabled by default]
" "End character > at index = " rawcommand.indexOf(’>’));
^
sketch_jul31a:103: error: missing terminating " character
" "End character > at index = " rawcommand.indexOf(’>’));
^
C:\Users\ale3x\Desktop\sketch_jul31a\sketch_jul31a.ino: In function ‘void chirp(int, int)’:
sketch_jul31a:85: error: expression cannot be used as a function
delayMicroseconds((355-i) (speedms*2));
^
sketch_jul31a:87: error: expression cannot be used as a function
delayMicroseconds((355-i) (speedms*2));
^
C:\Users\ale3x\Desktop\sketch_jul31a\sketch_jul31a.ino: In function ‘void getcommand()’:
sketch_jul31a:101: error: expected ‘)’ before ‘rawcommand’
Serial.println("START " rawcommand " END" "
^
sketch_jul31a:104: error: expected ‘;’ before ‘}’ token
}
^
sketch_jul31a:138: error: expected ‘)’ before numeric constant
times = rawcommand.substring(space1 1, space2).toInt();
^
sketch_jul31a:141: error: expected ‘)’ before numeric constant
speedms = rawcommand.substring(space2 1, rawcommand.indexOf('>')).toInt();
^
sketch_jul31a:146: error: expected ‘)’ before ‘command’
Serial.println("command = " command);
^
sketch_jul31a:148: error: expected ‘)’ before ‘times’
Serial.println("times = " times);
^
sketch_jul31a:150: error: expected ‘)’ before ‘speedms’
Serial.println("speedms = " speedms);
^
exit status 1
missing terminating " character